Module org.junit.platform.engine
Class SingleTestExecutor
java.lang.Object
org.junit.platform.engine.support.hierarchical.SingleTestExecutor
Deprecated.
SingleTestExecutor encapsulates the execution of a single test
wrapped in an SingleTestExecutor.Executable.- Since:
- 1.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceDeprecated.Functional interface for a single test to be executed bySingleTestExecutor. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecuteSafely(SingleTestExecutor.Executable executable) Deprecated.Execute the suppliedSingleTestExecutor.Executableand return aTestExecutionResultbased on the outcome.
-
Constructor Details
-
SingleTestExecutor
public SingleTestExecutor()Deprecated.
-
-
Method Details
-
executeSafely
Deprecated.Execute the suppliedSingleTestExecutor.Executableand return aTestExecutionResultbased on the outcome.If the
Executablethrows an unrecoverable exception — for example, anOutOfMemoryError— this method will rethrow it.- Parameters:
executable- the test to be executed- Returns:
- aborted if the
Executablethrows aTestAbortedException; failed if any otherThrowableis thrown; and successful otherwise
-
ThrowableCollector.execute(org.junit.platform.engine.support.hierarchical.ThrowableCollector.Executable)andThrowableCollector.toTestExecutionResult()instead.