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.SingleTestExecutorencapsulates 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 interfaceSingleTestExecutor.ExecutableDeprecated.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 TestExecutionResultexecuteSafely(SingleTestExecutor.Executable executable)Deprecated.Execute the suppliedSingleTestExecutor.Executableand return aTestExecutionResultbased on the outcome.
-
-
-
Method Detail
-
executeSafely
public TestExecutionResult executeSafely(SingleTestExecutor.Executable executable)
Deprecated.Execute the suppliedSingleTestExecutor.Executableand return aTestExecutionResultbased on the outcome.If the
Executablethrows a blacklisted 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
-
-