Saturday 25 August 2012

DirtiesContext

Test annotation which indicates that the ApplicationContext associated with a test is dirty and should be closed:
  • after the current test, when declared at the method level
  • after each test method in the current test class, when declared at the class level with class mode set to AFTER_EACH_TEST_METHOD
  • after the current test class, when declared at the class level with class mode set to AFTER_CLASS
Read more here: http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/test/annotation/DirtiesContext.html

No comments: