Moved tests from testsuite to context.support
This commit is contained in:
		
							parent
							
								
									dc2ca51f4e
								
							
						
					
					
						commit
						4ad4aad271
					
				|  | @ -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"); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue