Class ThrowableCollector
java.lang.Object
org.antublue.test.engine.internal.util.ThrowableCollector
Class to implement ThrowableCollector
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(org.junit.jupiter.api.function.Executable executable) Method to execute an ExecutableMethod to get the list of ThrowablesbooleanisEmpty()Method to return if the ThrowableCollector has any ThrowablesbooleanMethod to return if the ThrowableCollector has any Throwablesorg.junit.platform.engine.TestExecutionResultMethod to convert the first Throwable to a TestExecutionResult
-
Constructor Details
-
ThrowableCollector
public ThrowableCollector()Constructor
-
-
Method Details
-
execute
public void execute(org.junit.jupiter.api.function.Executable executable) Method to execute an Executable- Parameters:
executable- executable
-
isEmpty
public boolean isEmpty()Method to return if the ThrowableCollector has any Throwables- Returns:
- true if there are no Throwables, else false
-
isNotEmpty
public boolean isNotEmpty()Method to return if the ThrowableCollector has any Throwables- Returns:
- true if there are Throwables, else false
-
getThrowables
Method to get the list of Throwables- Returns:
- the list of Throwables
-
toTestExecutionResult
public org.junit.platform.engine.TestExecutionResult toTestExecutionResult()Method to convert the first Throwable to a TestExecutionResult- Returns:
- a TestExecutionResult
-