Package org.apache.maven.surefire.booter
Class AbstractPathConfiguration
- java.lang.Object
-
- org.apache.maven.surefire.booter.AbstractPathConfiguration
-
- Direct Known Subclasses:
ClasspathConfiguration,ModularClasspathConfiguration
public abstract class AbstractPathConfiguration extends java.lang.Object- Since:
- 2.21.0.Jigsaw
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCHILD_DELEGATIONprivate booleanchildDelegationstatic java.lang.StringCLASSPATHstatic java.lang.StringENABLE_ASSERTIONSprivate booleanenableAssertionsWhether to enable assertions or not (can be affected by the fork arguments, and the ability to do so based on the JVM).static java.lang.StringSUREFIRE_CLASSPATHprivate ClasspathsurefireClasspathUrls
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractPathConfiguration(Classpath surefireClasspathUrls, boolean enableAssertions, boolean childDelegation)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.ClassLoadercreateMergedClassLoader()(package private) java.lang.ClassLoadercreateMergedClassLoader(Classpath cp)protected abstract ClasspathgetInprocClasspath()(package private) ClasspathgetInprocTestClasspath()ClasspathgetProviderClasspath()abstract ClasspathgetTestClasspath()booleanisChildDelegation()Deprecated.abstract booleanisClassPathConfig()Must be exclusive withisModularPathConfig().booleanisEnableAssertions()abstract booleanisModularPathConfig()Must be exclusive withisClassPathConfig().<T extends AbstractPathConfiguration>
TtoRealPath(java.lang.Class<T> type)
-
-
-
Field Detail
-
CHILD_DELEGATION
public static final java.lang.String CHILD_DELEGATION
- See Also:
- Constant Field Values
-
ENABLE_ASSERTIONS
public static final java.lang.String ENABLE_ASSERTIONS
- See Also:
- Constant Field Values
-
CLASSPATH
public static final java.lang.String CLASSPATH
- See Also:
- Constant Field Values
-
SUREFIRE_CLASSPATH
public static final java.lang.String SUREFIRE_CLASSPATH
- See Also:
- Constant Field Values
-
surefireClasspathUrls
private final Classpath surefireClasspathUrls
-
enableAssertions
private final boolean enableAssertions
Whether 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 Detail
-
AbstractPathConfiguration
protected AbstractPathConfiguration(@Nonnull Classpath surefireClasspathUrls, boolean enableAssertions, boolean childDelegation)
-
-
Method Detail
-
getTestClasspath
public abstract Classpath getTestClasspath()
-
isModularPathConfig
public abstract boolean isModularPathConfig()
Must be exclusive withisClassPathConfig().- Returns:
trueif this isModularClasspathConfiguration.
-
isClassPathConfig
public abstract boolean isClassPathConfig()
Must be exclusive withisModularPathConfig().- Returns:
trueif this isClasspathConfiguration.
-
getInprocClasspath
protected abstract Classpath getInprocClasspath()
-
toRealPath
public <T extends AbstractPathConfiguration> T toRealPath(java.lang.Class<T> type)
-
createMergedClassLoader
public java.lang.ClassLoader createMergedClassLoader() throws SurefireExecutionException- Throws:
SurefireExecutionException
-
getProviderClasspath
public Classpath getProviderClasspath()
-
isEnableAssertions
public boolean isEnableAssertions()
-
isChildDelegation
@Deprecated public boolean isChildDelegation()
Deprecated.
-
getInprocTestClasspath
final Classpath getInprocTestClasspath()
-
createMergedClassLoader
final java.lang.ClassLoader createMergedClassLoader(Classpath cp) throws SurefireExecutionException
- Throws:
SurefireExecutionException
-
-