Top Description Constructors Methods
org.opentest4j.reporting.events.root

public Class RootFactory

extends Object
Class Inheritance
Imports
org.opentest4j.reporting.events.api.Factory, org.opentest4j.reporting.events.java.HeapSize, java.time.Instant

Factory for elements of the events namespace.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Factory<Finished>

Returns:

Finished factory
finished
(String
test id (must match id of previous Started element)
id
,
Instant
time of the event
time
)

Create a factory for Finished elements.

public static Factory<Reported>

Returns:

Reported factory
reported
(String
test id (must match id of previous Started element)
id
,
Instant
time of the event
time
)

Create a factory for Reported elements.

public static Factory<Started>

Returns:

Started factory
started
(String
test id (unique within the test run)
id
,
Instant
time of the event
time
,
String
test name
name
)

Create a factory for Started elements.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

RootFactoryback to summary
private RootFactory()

Method Detail

finishedback to summary
public static Factory<Finished> finished(String id, Instant time)

Create a factory for Finished elements.

Parameters
id:String

test id (must match id of previous Started element)

time:Instant

time of the event

Returns:Factory<Finished>

Finished factory

reportedback to summary
public static Factory<Reported> reported(String id, Instant time)

Create a factory for Reported elements.

Parameters
id:String

test id (must match id of previous Started element)

time:Instant

time of the event

Returns:Factory<Reported>

Reported factory

startedback to summary
public static Factory<Started> started(String id, Instant time, String name)

Create a factory for Started elements.

Parameters
id:String

test id (unique within the test run)

time:Instant

time of the event

name:String

test name

Returns:Factory<Started>

Started factory