Browse Source

Ensure TestContextManager always tracks after-class exception

This commit fixes a minor bug introduced in 0adc4921ed.

Issue: SPR-14447
pull/1106/head
Sam Brannen 9 years ago
parent
commit
629b95bd5c
  1. 6
      spring-test/src/main/java/org/springframework/test/context/TestContextManager.java

6
spring-test/src/main/java/org/springframework/test/context/TestContextManager.java

@ -366,9 +366,9 @@ public class TestContextManager { @@ -366,9 +366,9 @@ public class TestContextManager {
if (logger.isWarnEnabled()) {
logger.warn("Caught exception while allowing TestExecutionListener [" + testExecutionListener +
"] to process 'after class' callback for test class [" + testClass + "]", ex);
if (afterTestClassException == null) {
afterTestClassException = ex;
}
}
if (afterTestClassException == null) {
afterTestClassException = ex;
}
}
}

Loading…
Cancel
Save