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:
executeSafely(Executable)
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Deprecated.Functional interface for a single test to be executed bySingleTestExecutor
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionexecuteSafely(SingleTestExecutor.Executable executable)
Deprecated.Execute the suppliedSingleTestExecutor.Executable
and return aTestExecutionResult
based on the outcome.
-
Constructor Details
-
SingleTestExecutor
public SingleTestExecutor()Deprecated.
-
-
Method Details
-
executeSafely
Deprecated.Execute the suppliedSingleTestExecutor.Executable
and return aTestExecutionResult
based on the outcome.If the
Executable
throws an unrecoverable exception — for example, anOutOfMemoryError
— this method will rethrow it.- Parameters:
executable
- the test to be executed- Returns:
- aborted if the
Executable
throws aTestAbortedException
; failed if any otherThrowable
is thrown; and successful otherwise
-
ThrowableCollector.execute(org.junit.platform.engine.support.hierarchical.ThrowableCollector.Executable)
andThrowableCollector.toTestExecutionResult()
instead.