Module org.junit.platform.engine
Class SingleTestExecutor
- java.lang.Object
-
- org.junit.platform.engine.support.hierarchical.SingleTestExecutor
-
@Deprecated @API(status=DEPRECATED, since="1.2") public class SingleTestExecutor extends Object
Deprecated.SingleTestExecutor
encapsulates the execution of a single test wrapped in anSingleTestExecutor.Executable
.- Since:
- 1.0
- See Also:
executeSafely(Executable)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
SingleTestExecutor.Executable
Deprecated.Functional interface for a single test to be executed bySingleTestExecutor
.
-
Constructor Summary
Constructors Constructor Description SingleTestExecutor()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description TestExecutionResult
executeSafely(SingleTestExecutor.Executable executable)
Deprecated.Execute the suppliedSingleTestExecutor.Executable
and return aTestExecutionResult
based on the outcome.
-
-
-
Method Detail
-
executeSafely
public TestExecutionResult executeSafely(SingleTestExecutor.Executable executable)
Deprecated.Execute the suppliedSingleTestExecutor.Executable
and return aTestExecutionResult
based on the outcome.If the
Executable
throws a blacklisted 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
-
-