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

public Class FileSource

extends ChildElement<Sources, FileSource>
Class Inheritance
Imports
org.opentest4j.reporting.events.api.Appendable, .ChildElement, .Context, org.opentest4j.reporting.schema.Namespace, .QualifiedName, java.io.File, java.util.Optional

The fileSource element of the core namespace.

Field Summary

Modifier and TypeField and Description
private static final QualifiedName
private static final QualifiedName

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Appendable<FileSource>

Returns:

this element
addFilePosition
(int
the line number
line
,
Optional<Integer>
the column number
column
)

Add a filePosition child element to this element.

pack-priv FileSource
withPath(File file)

Field Detail

ELEMENTback to summary
private static final QualifiedName ELEMENT
PATHback to summary
private static final QualifiedName PATH

Constructor Detail

FileSourceback to summary
pack-priv FileSource(Context context)

Method Detail

addFilePositionback to summary
public Appendable<FileSource> addFilePosition(int line, Optional<Integer> column)

Add a filePosition child element to this element.

Parameters
line:int

the line number

column:Optional<Integer>

the column number

Returns:Appendable<FileSource>

this element

withPathback to summary
pack-priv FileSource withPath(File file)