Versions Compared

Key

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

...

Panel
Wiki Markup
{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-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 | ^applicationContext-csf-unit-tests-default.xml] and select *Save filetarget as...*.  {color:red}Be sure to save the file in the project's src/test/resources directory.{color}

Panel

Anchor
override default context
override default context

How to override for the default test application context