Class CoreFactory
java.lang.Object
org.opentest4j.reporting.events.core.CoreFactory
Factory for elements of the core namespace.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Factory<Attachments> Create a factory forAttachmentselements.cpuCores(int cpuCores) Create a factory forCpuCoreselements.data(LocalDateTime timestamp) Create a factory forDataelements.static Factory<DirectorySource> directorySource(File dir) Create a factory forDirectorySourceelements.static <P extends Element<P>>
Factory<FilePosition<P>> filePosition(int line, Optional<Integer> column) Create a factory forFilePositionelements.static Factory<FileSource> fileSource(File file) Create a factory forFileSourceelements.Create a factory forHostNameelements.static Factory<Infrastructure> Create a factory forInfrastructureelements.metadata()Create a factory forMetadataelements.static Factory<OperatingSystem> operatingSystem(String osName) Create a factory forOperatingSystemelements.Create a factory forReasonelements.result(Result.Status status) Create a factory forResultelements.sources()Create a factory forSourceselements.Create a factory forTagelements.tags()Create a factory forTagselements.Create a factory forUriSourceelements.Create a factory forUserNameelements.
-
Method Details
-
infrastructure
Create a factory forInfrastructureelements.- Returns:
- Infrastructure factory
-
hostName
Create a factory forHostNameelements.- Parameters:
hostName- the host name- Returns:
- HostName factory
-
userName
Create a factory forUserNameelements.- Parameters:
userName- the user name- Returns:
- UserName factory
-
operatingSystem
Create a factory forOperatingSystemelements.- Parameters:
osName- the name of the operating system- Returns:
- OperatingSystem factory
-
cpuCores
Create a factory forCpuCoreselements.- Parameters:
cpuCores- the number of CPU cores- Returns:
- CpuCores factory
-
sources
Create a factory forSourceselements.- Returns:
- Sources factory
-
metadata
Create a factory forMetadataelements.- Returns:
- Metadata factory
-
tags
Create a factory forTagselements.- Returns:
- Tags factory
-
tag
Create a factory forTagelements.- Parameters:
value- the value of the tag- Returns:
- Tag factory
-
attachments
Create a factory forAttachmentselements.- Returns:
- Attachments factory
-
data
Create a factory forDataelements.- Parameters:
timestamp- the timestamp of the data- Returns:
- Data factory
-
result
Create a factory forResultelements.- Parameters:
status- the status of the result- Returns:
- Result factory
-
reason
Create a factory forReasonelements.- Parameters:
reason- the reason- Returns:
- Reason factory
-
fileSource
Create a factory forFileSourceelements.- Parameters:
file- the source file- Returns:
- FileSource factory
-
directorySource
Create a factory forDirectorySourceelements.- Parameters:
dir- the source directory- Returns:
- DirectorySource factory
-
uriSource
Create a factory forUriSourceelements.- Parameters:
uri- the source URI- Returns:
- UriSource factory
-
filePosition
public static <P extends Element<P>> Factory<FilePosition<P>> filePosition(int line, Optional<Integer> column) Create a factory forFilePositionelements.- Type Parameters:
P- parent element type- Parameters:
line- the line numbercolumn- the column number- Returns:
- FilePosition factory
-