Browse Source

[SPR-5640] polishing

conversation
Sam Brannen 16 years ago
parent
commit
eef6fd3f09
  1. 4
      org.springframework.test/src/main/java/org/springframework/test/context/support/DirtiesContextTestExecutionListener.java
  2. 2
      org.springframework.test/src/test/java/org/springframework/test/context/ClassLevelDirtiesContextTests.java

4
org.springframework.test/src/main/java/org/springframework/test/context/support/DirtiesContextTestExecutionListener.java

@ -83,8 +83,8 @@ public class DirtiesContextTestExecutionListener extends AbstractTestExecutionLi @@ -83,8 +83,8 @@ public class DirtiesContextTestExecutionListener extends AbstractTestExecutionLi
ClassMode classMode = classDirtiesContext ? classDirtiesContextAnnotation.classMode() : null;
if (logger.isDebugEnabled()) {
logger.debug("After test method: context [" + testContext + "], class-level dirtiesContext ["
+ classDirtiesContext + "], class mode [" + classMode + "], method-level dirtiesContext ["
logger.debug("After test method: context [" + testContext + "], class dirties context ["
+ classDirtiesContext + "], class mode [" + classMode + "], method dirties context ["
+ methodDirtiesContext + "].");
}

2
org.springframework.test/src/test/java/org/springframework/test/context/ClassLevelDirtiesContextTests.java

@ -95,6 +95,8 @@ public class ClassLevelDirtiesContextTests { @@ -95,6 +95,8 @@ public class ClassLevelDirtiesContextTests {
ContextCache contextCache = TestContextManager.contextCache;
contextCache.clear();
contextCache.clearStatistics();
cacheHits.set(0);
cacheMisses.set(0);
assertCacheStats("BeforeClass", 0, cacheHits.get(), cacheMisses.get());
}

Loading…
Cancel
Save