Moved tests from testsuite to context.support

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@225 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Arjen Poutsma
2008-10-30 21:49:52 +00:00
parent 1a58fde8ce
commit 34de5e0f55
13 changed files with 5 additions and 8 deletions
@@ -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;
@@ -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");
@@ -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");