Package org.apache.maven.surefire.booter
Class AbstractPathConfiguration
java.lang.Object
org.apache.maven.surefire.booter.AbstractPathConfiguration
- Direct Known Subclasses:
ClasspathConfiguration
,ModularClasspathConfiguration
- Since:
- 2.21.0.Jigsaw
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
private final boolean
static final String
static final String
private final boolean
Whether to enable assertions or not (can be affected by the fork arguments, and the ability to do so based on the JVM).static final String
private final Classpath
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractPathConfiguration
(Classpath surefireClasspathUrls, boolean enableAssertions, boolean childDelegation) -
Method Summary
Modifier and TypeMethodDescription(package private) final ClassLoader
protected abstract Classpath
(package private) final Classpath
abstract Classpath
boolean
Deprecated.abstract boolean
Must be exclusive withisModularPathConfig()
.boolean
abstract boolean
Must be exclusive withisClassPathConfig()
.<T extends AbstractPathConfiguration>
TtoRealPath
(Class<T> type)
-
Field Details
-
CHILD_DELEGATION
- See Also:
-
ENABLE_ASSERTIONS
- See Also:
-
CLASSPATH
- See Also:
-
SUREFIRE_CLASSPATH
- See Also:
-
surefireClasspathUrls
-
enableAssertions
private final boolean enableAssertionsWhether to enable assertions or not (can be affected by the fork arguments, and the ability to do so based on the JVM). -
childDelegation
private final boolean childDelegation
-
-
Constructor Details
-
AbstractPathConfiguration
protected AbstractPathConfiguration(@Nonnull Classpath surefireClasspathUrls, boolean enableAssertions, boolean childDelegation)
-
-
Method Details
-
getTestClasspath
-
isModularPathConfig
public abstract boolean isModularPathConfig()Must be exclusive withisClassPathConfig()
.- Returns:
true
ifthis
isModularClasspathConfiguration
.
-
isClassPathConfig
public abstract boolean isClassPathConfig()Must be exclusive withisModularPathConfig()
.- Returns:
true
ifthis
isClasspathConfiguration
.
-
getInprocClasspath
-
toRealPath
-
createMergedClassLoader
- Throws:
SurefireExecutionException
-
getProviderClasspath
-
isEnableAssertions
public boolean isEnableAssertions() -
isChildDelegation
Deprecated. -
getInprocTestClasspath
-
createMergedClassLoader
- Throws:
SurefireExecutionException
-