spring-framework/src
Sam Brannen e086a637d5 Introduce BEFORE METHOD/CLASS modes in @DirtiesContext
Prior to this commit, @DirtiesContext could only be used to close a
test ApplicationContext after an entire test class or after a test
method; however, there are some use cases for which it would be
beneficial to close a test ApplicationContext before a given test class
or test method -- for example, if some rogue (i.e., yet to be
determined) test within a large test suite has corrupted the original
configuration for the ApplicationContext.

This commit provides a solution to such testing challenges by
introducing the following modes for @DirtiesContext.

 - MethodMode.BEFORE_METHOD: configured via the new methodMode attribute

 - ClassMode.BEFORE_CLASS and ClassMode.BEFORE_EACH_TEST_METHOD: both
   configured via the existing classMode attribute

Issue: SPR-12429
2015-03-22 21:33:20 +01:00
..
api Update javadoc to conform to JDK8 styling 2014-02-10 15:07:34 -06:00
asciidoc Introduce BEFORE METHOD/CLASS modes in @DirtiesContext 2015-03-22 21:33:20 +01:00
dist Change gopivotal.com to pivotal.io 2014-10-05 18:12:50 +02:00
eclipse Update Eclipse JDT settings for Java 8 2015-02-27 21:41:52 +01:00
idea Add first draft of IDEA code formatting 2014-03-10 11:43:19 +01:00
test Harmonize resources location 2015-02-28 10:32:40 +01:00