Package com.github.sbt.junit.jupiter.api
Class JupiterTestCollector.Builder
java.lang.Object
com.github.sbt.junit.jupiter.api.JupiterTestCollector.Builder
- Enclosing class:
- JupiterTestCollector
Builder for
JupiterTestCollector instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates an instance ofJupiterTestCollector.withClassDirectory(File value) Specifies the class directory which should be searched by the collector.withClassLoader(ClassLoader value) Specifies the classloader which should be used by the collector.withRuntimeClassPath(URL[] value) Specifies the runtime classpath which should be used by the collector.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withClassLoader
Specifies the classloader which should be used by the collector.- Parameters:
value- The classloader which should be used by the collector.- Returns:
- This builder.
-
withRuntimeClassPath
Specifies the runtime classpath which should be used by the collector.- Parameters:
value- The runtime classpath which must contain the test classes, test dependencies and JUnit Jupiter dependencies.- Returns:
- This builder.
-
withClassDirectory
Specifies the class directory which should be searched by the collector.- Parameters:
value- The directory containing test classes.- Returns:
- This builder.
-
build
Creates an instance ofJupiterTestCollector.- Returns:
- A new collector.
-