Top Description Fields Constructors Methods
org.opentest4j.reporting.events.core

public Class Output

extends ChildElement<Attachments, Output>
Class Inheritance
Annotations
@API
status:EXPERIMENTAL
since:0.2.0
Imports
org.apiguardian.api.API, org.opentest4j.reporting.events.api.ChildElement, .Context, org.opentest4j.reporting.schema.Namespace, .QualifiedName, java.time.LocalDateTime

The output element of the core namespace.
Since
0.2.0

Field Summary

Modifier and TypeField and Description
public static final QualifiedName
ELEMENT

Qualified name of the output element.

public static final QualifiedName
SOURCE

Qualified name of the source attribute.

public static final QualifiedName
TIME

Qualified name of the time attribute.

Constructor Summary

AccessConstructor and Description
pack-priv
Output(Context context)

Method Summary

Modifier and TypeMethod and Description
public Output

Returns:

this element
withContent
(String
the content to set
content
)

Overrides org.opentest4j.reporting.events.api.Element.withContent.

Set the content of this element.

public Output

Returns:

this element
withSource
(String
the source to set
source
)

Set the source attribute of this element.

public Output

Returns:

this element
withTime
(LocalDateTime
the timestamp to set
timestamp
)

Set the time attribute of this element.

Field Detail

ELEMENTback to summary
public static final QualifiedName ELEMENT

Qualified name of the output element.

SOURCEback to summary
public static final QualifiedName SOURCE

Qualified name of the source attribute.

TIMEback to summary
public static final QualifiedName TIME

Qualified name of the time attribute.

Constructor Detail

Outputback to summary
pack-priv Output(Context context)

Method Detail

withContentback to summary
public Output withContent(String content)

Overrides org.opentest4j.reporting.events.api.Element.withContent.

Set the content of this element.

Parameters
content:String

the content to set

Returns:Output

this element

withSourceback to summary
public Output withSource(String source)

Set the source attribute of this element.

Parameters
source:String

the source to set

Returns:Output

this element

withTimeback to summary
public Output withTime(LocalDateTime timestamp)

Set the time attribute of this element.

Parameters
timestamp:LocalDateTime

the timestamp to set

Returns:Output

this element