Moved tests from testsuite to context.support

This commit is contained in:
Arjen Poutsma 2008-10-30 21:49:52 +00:00
parent dc2ca51f4e
commit 4ad4aad271
13 changed files with 5 additions and 8 deletions

View File

@ -38,14 +38,11 @@ import org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver;
*/
public abstract class AbstractJasperReportsTests extends TestCase {
protected static final String COMPILED_REPORT =
"org/springframework/ui/jasperreports/DataSourceReport.jasper";
protected static final String COMPILED_REPORT = "/org/springframework/ui/jasperreports/DataSourceReport.jasper";
protected static final String UNCOMPILED_REPORT =
"org/springframework/ui/jasperreports/DataSourceReport.jrxml";
protected static final String UNCOMPILED_REPORT = "/org/springframework/ui/jasperreports/DataSourceReport.jrxml";
protected static final String SUB_REPORT_PARENT =
"org/springframework/ui/jasperreports/subReportParent.jrxml";
protected static final String SUB_REPORT_PARENT = "/org/springframework/ui/jasperreports/subReportParent.jrxml";
protected static boolean canCompileReport;

View File

@ -194,7 +194,7 @@ public abstract class AbstractJasperReportsViewTests extends AbstractJasperRepor
model.put("SubReportData", getProductData());
Properties subReports = new Properties();
subReports.put("ProductsSubReport", "org/springframework/ui/jasperreports/subReportChild.jrxml");
subReports.put("ProductsSubReport", "/org/springframework/ui/jasperreports/subReportChild.jrxml");
AbstractJasperReportsView view = getView(SUB_REPORT_PARENT);
view.setReportDataKey("dataSource");

View File

@ -149,7 +149,7 @@ public class ExporterParameterTests extends AbstractJasperReportsTests {
}
private void setViewProperties(AbstractJasperReportsView view) {
view.setUrl("org/springframework/ui/jasperreports/DataSourceReport.jasper");
view.setUrl("/org/springframework/ui/jasperreports/DataSourceReport.jasper");
StaticWebApplicationContext ac = new StaticWebApplicationContext();
ac.setServletContext(new MockServletContext());
ac.addMessage("page", Locale.GERMAN, "MeineSeite");