Skip to content

Commit eef6fd3

Browse files
committed
[SPR-5640] polishing
1 parent eb69e75 commit eef6fd3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ public void afterTestMethod(TestContext testContext) throws Exception {
8383
ClassMode classMode = classDirtiesContext ? classDirtiesContextAnnotation.classMode() : null;
8484

8585
if (logger.isDebugEnabled()) {
86-
logger.debug("After test method: context [" + testContext + "], class-level dirtiesContext ["
87-
+ classDirtiesContext + "], class mode [" + classMode + "], method-level dirtiesContext ["
86+
logger.debug("After test method: context [" + testContext + "], class dirties context ["
87+
+ classDirtiesContext + "], class mode [" + classMode + "], method dirties context ["
8888
+ methodDirtiesContext + "].");
8989
}
9090

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

+2
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ public static void verifyInitialCacheState() {
9595
ContextCache contextCache = TestContextManager.contextCache;
9696
contextCache.clear();
9797
contextCache.clearStatistics();
98+
cacheHits.set(0);
99+
cacheMisses.set(0);
98100
assertCacheStats("BeforeClass", 0, cacheHits.get(), cacheMisses.get());
99101
}
100102

0 commit comments

Comments
 (0)