Package org.verifyica.api
Class Runner
java.lang.Object
org.verifyica.api.Runner
Deprecated.
Class to implement Runner
Deprecated - @see Trap
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceDeprecated.Interface to implement Task -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Asserts no Throwables have been collected.clear()Deprecated.Removes any collected Throwablesstatic Runner.TaskDeprecated.Creates a Task to close a Closeable object if not nullDeprecated.Get the first ThrowablebooleanisEmpty()Deprecated.Check if any Task threw a ThrowablebooleanDeprecated.Check if any Task threw a Throwableperform(Collection<Runner.Task> tasks) Deprecated.Perform a Collection of Tasks.perform(Runner.Task task) Deprecated.Perform a Task.perform(Runner.Task... tasks) Deprecated.Perform an array of Tasks.Deprecated.Get the List of Throwables
-
Constructor Details
-
Runner
public Runner()Deprecated.Constructor
-
-
Method Details
-
perform
Deprecated.Perform a Task. If a Throwable occurs, collect it- Parameters:
task- task- Returns:
- this
-
perform
Deprecated.Perform an array of Tasks. For each task, if a Throwable occurs, collect it- Parameters:
tasks- tasks- Returns:
- this
-
perform
Deprecated.Perform a Collection of Tasks. For each task, if a Throwable occurs, collect it- Parameters:
tasks- tasks- Returns:
- this
-
isEmpty
public boolean isEmpty()Deprecated.Check if any Task threw a Throwable- Returns:
- true if no Throwables have been collected, else false
-
isNotEmpty
public boolean isNotEmpty()Deprecated.Check if any Task threw a Throwable- Returns:
- true if no Throwables have been collected, else false
-
throwables
Deprecated.Get the List of Throwables- Returns:
- a List of Throwables
-
firstThrowable
Deprecated.Get the first Throwable- Returns:
- if a Throwable was thrown, an Optional that contains the first Throwable, else Optional.empty()
-
assertSuccessful
Deprecated.Asserts no Throwables have been collected. If any Throwables have been collected, throw the first Throwable- Returns:
- this
- Throws:
Throwable- Throwable
-
clear
Deprecated.Removes any collected Throwables- Returns:
- this
-
closeTask
Deprecated.Creates a Task to close a Closeable object if not null- Parameters:
closeable- closeable- Returns:
- a Task
-