Class RootFactory


  • public class RootFactory
    extends java.lang.Object
    Factory for elements of the events namespace.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Factory<Finished> finished​(java.lang.String id, java.time.Instant time)
      Create a factory for Finished elements.
      static Factory<Reported> reported​(java.lang.String id, java.time.Instant time)
      Create a factory for Reported elements.
      static Factory<Started> started​(java.lang.String id, java.time.Instant time, java.lang.String name)
      Create a factory for Started elements.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • started

        public static Factory<Started> started​(java.lang.String id,
                                               java.time.Instant time,
                                               java.lang.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​(java.lang.String id,
                                                 java.time.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​(java.lang.String id,
                                                 java.time.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