Class ThrowableCollector

java.lang.Object
org.antublue.test.engine.internal.util.ThrowableCollector

public class ThrowableCollector extends Object
Class to implement ThrowableCollector
  • 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
    • getThrowables

      public List<Throwable> getThrowables()
      Method to get the list of Throwables
      Returns:
      the list of Throwables
    • 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
    • toTestExecutionResult

      public org.junit.platform.engine.TestExecutionResult toTestExecutionResult()
      Method to convert the first Throwable to a TestExecutionResult
      Returns:
      a TestExecutionResult