Ensure TestContextManager always tracks after-class exception
This commit fixes a minor bug introduced in 0adc4921ed.
Issue: SPR-14447
			
			
This commit is contained in:
		
							parent
							
								
									3c14911401
								
							
						
					
					
						commit
						813108a928
					
				| 
						 | 
					@ -366,9 +366,9 @@ public class TestContextManager {
 | 
				
			||||||
				if (logger.isWarnEnabled()) {
 | 
									if (logger.isWarnEnabled()) {
 | 
				
			||||||
					logger.warn("Caught exception while allowing TestExecutionListener [" + testExecutionListener +
 | 
										logger.warn("Caught exception while allowing TestExecutionListener [" + testExecutionListener +
 | 
				
			||||||
							"] to process 'after class' callback for test class [" + testClass + "]", ex);
 | 
												"] to process 'after class' callback for test class [" + testClass + "]", ex);
 | 
				
			||||||
					if (afterTestClassException == null) {
 | 
									}
 | 
				
			||||||
						afterTestClassException = ex;
 | 
									if (afterTestClassException == null) {
 | 
				
			||||||
					}
 | 
										afterTestClassException = ex;
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue