[SPR-5640] polishing
This commit is contained in:
parent
eb69e7574b
commit
eef6fd3f09
|
|
@ -83,8 +83,8 @@ public class DirtiesContextTestExecutionListener extends AbstractTestExecutionLi
|
||||||
ClassMode classMode = classDirtiesContext ? classDirtiesContextAnnotation.classMode() : null;
|
ClassMode classMode = classDirtiesContext ? classDirtiesContextAnnotation.classMode() : null;
|
||||||
|
|
||||||
if (logger.isDebugEnabled()) {
|
if (logger.isDebugEnabled()) {
|
||||||
logger.debug("After test method: context [" + testContext + "], class-level dirtiesContext ["
|
logger.debug("After test method: context [" + testContext + "], class dirties context ["
|
||||||
+ classDirtiesContext + "], class mode [" + classMode + "], method-level dirtiesContext ["
|
+ classDirtiesContext + "], class mode [" + classMode + "], method dirties context ["
|
||||||
+ methodDirtiesContext + "].");
|
+ methodDirtiesContext + "].");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -95,6 +95,8 @@ public class ClassLevelDirtiesContextTests {
|
||||||
ContextCache contextCache = TestContextManager.contextCache;
|
ContextCache contextCache = TestContextManager.contextCache;
|
||||||
contextCache.clear();
|
contextCache.clear();
|
||||||
contextCache.clearStatistics();
|
contextCache.clearStatistics();
|
||||||
|
cacheHits.set(0);
|
||||||
|
cacheMisses.set(0);
|
||||||
assertCacheStats("BeforeClass", 0, cacheHits.get(), cacheMisses.get());
|
assertCacheStats("BeforeClass", 0, cacheHits.get(), cacheMisses.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue