Class RootFactory

java.lang.Object
org.opentest4j.reporting.events.root.RootFactory

public class RootFactory extends Object
Factory for elements of the events namespace.
  • Method Details

    • started

      public static Factory<Started> started(String id, Instant time, String name)
      Create a factory for Started elements.
      Parameters:
      id - test id (unique within the test run)
      time - time of the event
      name - test name
      Returns:
      Started factory
    • reported

      public static Factory<Reported> reported(String id, Instant time)
      Create a factory for Reported elements.
      Parameters:
      id - test id (must match id of previous Started element)
      time - time of the event
      Returns:
      Reported factory
    • finished

      public static Factory<Finished> finished(String id, Instant time)
      Create a factory for Finished elements.
      Parameters:
      id - test id (must match id of previous Started element)
      time - time of the event
      Returns:
      Finished factory