Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel

Anchor
configure default context
configure default context

How to configuration the default test application context

The annotation

Code Block

@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-csf-unit-tests-default.xml must be created in the projects src/test/resources directory.  To download the applicationContext-csf-unit-tests-default.xml file, right click on this link and select Save target as....  Be sure to save the file in the project's src/test/resources directory.

...