Class RootFactory
- java.lang.Object
-
- org.opentest4j.reporting.events.root.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 forFinished
elements.static Factory<Reported>
reported(java.lang.String id, java.time.Instant time)
Create a factory forReported
elements.static Factory<Started>
started(java.lang.String id, java.time.Instant time, java.lang.String name)
Create a factory forStarted
elements.
-
-
-
Method Detail
-
started
public static Factory<Started> started(java.lang.String id, java.time.Instant time, java.lang.String name)
Create a factory forStarted
elements.- Parameters:
id
- test id (unique within the test run)time
- time of the eventname
- test name- Returns:
- Started factory
-
reported
public static Factory<Reported> reported(java.lang.String id, java.time.Instant time)
Create a factory forReported
elements.- Parameters:
id
- test id (must match id of previousStarted
element)time
- time of the event- Returns:
- Reported factory
-
-