Ensure TestContextManager always tracks after-class exception

This commit fixes a minor bug introduced in 0adc4921ed.

Issue: SPR-14447
This commit is contained in:
Sam Brannen 2016-07-10 16:00:30 +02:00
parent 966d951329
commit 629b95bd5c
1 changed files with 3 additions and 3 deletions

View File

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