Class JavaFactory
java.lang.Object
org.opentest4j.reporting.events.java.JavaFactory
Factory for elements of the Java namespace.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Factory
<ClasspathResourceSource> classpathResourceSource
(String resourceName) Create a factory forClasspathResourceSource
elements.static Factory
<ClassSource> classSource
(String className) Create a factory forClassSource
elements.static Factory
<FileEncoding> fileEncoding
(String fileEncoding) Create a factory forFileEncoding
elements.heapSize()
Create a factory forHeapSize
elements.static Factory
<JavaVersion> javaVersion
(String version) Create a factory forJavaVersion
elements.static Factory
<MethodSource> methodSource
(String className, String methodName) Create a factory forMethodSource
elements.static Factory
<PackageSource> packageSource
(String packageName) Create a factory forPackageSource
elements.Create a factory forThrowable
elements.
-
Method Details
-
javaVersion
Create a factory forJavaVersion
elements.- Parameters:
version
- the Java version- Returns:
- JavaVersion factory
-
fileEncoding
Create a factory forFileEncoding
elements.- Parameters:
fileEncoding
- the file encoding- Returns:
- FileEncoding factory
-
heapSize
Create a factory forHeapSize
elements.- Returns:
- HeapSize factory
-
classSource
Create a factory forClassSource
elements.- Parameters:
className
- the source class name- Returns:
- ClassSource factory
-
methodSource
Create a factory forMethodSource
elements.- Parameters:
className
- the source class namemethodName
- the source method name- Returns:
- MethodSource factory
-
classpathResourceSource
Create a factory forClasspathResourceSource
elements.- Parameters:
resourceName
- the source resource name- Returns:
- ClasspathResourceSource factory
-
packageSource
Create a factory forPackageSource
elements.- Parameters:
packageName
- the source package name- Returns:
- PackageSource factory
-
throwable
Create a factory forThrowable
elements.- Parameters:
throwable
- the throwable- Returns:
- Throwable factory
-