spring-framework / org.springframework.test.context.junit4.statements / RunAfterTestExecutionCallbacks / evaluate

evaluate

open fun evaluate(): Unit

Evaluate the next Statement in the execution chain (typically an instance of RunBeforeTestExecutionCallbacks), catching any exceptions thrown, and then invoke TestContextManager#afterTestExecution supplying the first caught exception (if any).

If the invocation of afterTestExecution() throws an exception, that exception will also be tracked. Multiple exceptions will be combined into a MultipleFailureException.