{anchor:configure default context}
h3. How to configuration the default test application context
The annotation
@ContextConfiguration(locations = {"classpath:applicationContext-csf-unit-tests-default.xml"})
is used to set the default application context for all the junit tests which extend the AbstractIntegrationTestBase .java class.
If the project was created using the es-project-template (for either the jar or war) then applicationContext-csf-unit-tests-default.xml file can be found it the project's src/test/resources directory.
If the was not created using the es-project-template, then the applicationContext-cstcsf-unit-tests-default.xml must be created in the projects srsrc/test/resources directory. To download the applicationContext-csf-unit-tests-default.xml file, [right click on this link | ^applicationContext-csf-unit-tests-default.xml] and select *Save file as...*.
|