Class RootFactory
- java.lang.Object
-
- org.opentest4j.reporting.events.root.RootFactory
-
public class RootFactory extends java.lang.ObjectFactory 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 forFinishedelements.static Factory<Reported>reported(java.lang.String id, java.time.Instant time)Create a factory forReportedelements.static Factory<Started>started(java.lang.String id, java.time.Instant time, java.lang.String name)Create a factory forStartedelements.
-
-
-
Method Detail
-
started
public static Factory<Started> started(java.lang.String id, java.time.Instant time, java.lang.String name)
Create a factory forStartedelements.- 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 forReportedelements.- Parameters:
id- test id (must match id of previousStartedelement)time- time of the event- Returns:
- Reported factory
-
-