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

evaluate

open fun evaluate(): Unit

Evaluate the next Statement in the execution chain (typically an instance of org.junit.internal.runners.statements.RunAfters), catching any exceptions thrown, and then invoke TestContextManager#afterTestMethod(Object, Method, Throwable) supplying the first caught exception (if any).

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