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

public Class JavaFactory

extends Object
Class Inheritance
Imports
org.opentest4j.reporting.events.api.Factory, org.opentest4j.reporting.events.core.Infrastructure

Factory for elements of the Java namespace.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Factory<ClasspathResourceSource>

Returns:

ClasspathResourceSource factory
classpathResourceSource
(String
the source resource name
resourceName
)

Create a factory for ClasspathResourceSource elements.

public static Factory<ClassSource>

Returns:

ClassSource factory
classSource
(String
the source class name
className
)

Create a factory for ClassSource elements.

public static Factory<FileEncoding>

Returns:

FileEncoding factory
fileEncoding
(String
the file encoding
fileEncoding
)

Create a factory for FileEncoding elements.

public static Factory<HeapSize>

Returns:

HeapSize factory
heapSize
()

Create a factory for HeapSize elements.

public static Factory<JavaVersion>

Returns:

JavaVersion factory
javaVersion
(String
the Java version
version
)

Create a factory for JavaVersion elements.

public static Factory<MethodSource>

Returns:

MethodSource factory
methodSource
(String
the source class name
className
,
String
the source method name
methodName
)

Create a factory for MethodSource elements.

public static Factory<PackageSource>

Returns:

PackageSource factory
packageSource
(String
the source package name
packageName
)

Create a factory for PackageSource elements.

public static Factory<Throwable>

Returns:

Throwable factory
throwable
(Throwable
the throwable
throwable
)

Create a factory for Throwable elements.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

JavaFactoryback to summary
private JavaFactory()

Method Detail

classpathResourceSourceback to summary
public static Factory<ClasspathResourceSource> classpathResourceSource(String resourceName)

Create a factory for ClasspathResourceSource elements.

Parameters
resourceName:String

the source resource name

Returns:Factory<ClasspathResourceSource>

ClasspathResourceSource factory

classSourceback to summary
public static Factory<ClassSource> classSource(String className)

Create a factory for ClassSource elements.

Parameters
className:String

the source class name

Returns:Factory<ClassSource>

ClassSource factory

fileEncodingback to summary
public static Factory<FileEncoding> fileEncoding(String fileEncoding)

Create a factory for FileEncoding elements.

Parameters
fileEncoding:String

the file encoding

Returns:Factory<FileEncoding>

FileEncoding factory

heapSizeback to summary
public static Factory<HeapSize> heapSize()

Create a factory for HeapSize elements.

Returns:Factory<HeapSize>

HeapSize factory

javaVersionback to summary
public static Factory<JavaVersion> javaVersion(String version)

Create a factory for JavaVersion elements.

Parameters
version:String

the Java version

Returns:Factory<JavaVersion>

JavaVersion factory

methodSourceback to summary
public static Factory<MethodSource> methodSource(String className, String methodName)

Create a factory for MethodSource elements.

Parameters
className:String

the source class name

methodName:String

the source method name

Returns:Factory<MethodSource>

MethodSource factory

packageSourceback to summary
public static Factory<PackageSource> packageSource(String packageName)

Create a factory for PackageSource elements.

Parameters
packageName:String

the source package name

Returns:Factory<PackageSource>

PackageSource factory

throwableback to summary
public static Factory<Throwable> throwable(Throwable throwable)

Create a factory for Throwable elements.

Parameters
throwable:Throwable

the throwable

Returns:Factory<Throwable>

Throwable factory