[SPR-5640] polishing

This commit is contained in:
Sam Brannen 2009-07-06 19:24:34 +00:00
parent eb69e7574b
commit eef6fd3f09
2 changed files with 4 additions and 2 deletions

View File

@ -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 + "].");
}

View File

@ -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());
}