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 forClasspathResourceSourceelements.static Factory<ClassSource> classSource(String className) Create a factory forClassSourceelements.static Factory<FileEncoding> fileEncoding(String fileEncoding) Create a factory forFileEncodingelements.heapSize()Create a factory forHeapSizeelements.static Factory<JavaVersion> javaVersion(String version) Create a factory forJavaVersionelements.static Factory<MethodSource> methodSource(String className, String methodName) Create a factory forMethodSourceelements.static Factory<PackageSource> packageSource(String packageName) Create a factory forPackageSourceelements.Create a factory forThrowableelements.
-
Method Details
-
javaVersion
Create a factory forJavaVersionelements.- Parameters:
version- the Java version- Returns:
- JavaVersion factory
-
fileEncoding
Create a factory forFileEncodingelements.- Parameters:
fileEncoding- the file encoding- Returns:
- FileEncoding factory
-
heapSize
Create a factory forHeapSizeelements.- Returns:
- HeapSize factory
-
classSource
Create a factory forClassSourceelements.- Parameters:
className- the source class name- Returns:
- ClassSource factory
-
methodSource
Create a factory forMethodSourceelements.- Parameters:
className- the source class namemethodName- the source method name- Returns:
- MethodSource factory
-
classpathResourceSource
Create a factory forClasspathResourceSourceelements.- Parameters:
resourceName- the source resource name- Returns:
- ClasspathResourceSource factory
-
packageSource
Create a factory forPackageSourceelements.- Parameters:
packageName- the source package name- Returns:
- PackageSource factory
-
throwable
Create a factory forThrowableelements.- Parameters:
throwable- the throwable- Returns:
- Throwable factory
-