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.String
CHILD_DELEGATION
private boolean
childDelegation
static java.lang.String
CLASSPATH
static java.lang.String
ENABLE_ASSERTIONS
private 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).static java.lang.String
SUREFIRE_CLASSPATH
private Classpath
surefireClasspathUrls
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractPathConfiguration(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.ClassLoader
createMergedClassLoader()
(package private) java.lang.ClassLoader
createMergedClassLoader(Classpath cp)
protected abstract Classpath
getInprocClasspath()
(package private) Classpath
getInprocTestClasspath()
Classpath
getProviderClasspath()
abstract Classpath
getTestClasspath()
boolean
isChildDelegation()
Deprecated.abstract boolean
isClassPathConfig()
Must be exclusive withisModularPathConfig()
.boolean
isEnableAssertions()
abstract boolean
isModularPathConfig()
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:
true
if this isModularClasspathConfiguration
.
-
isClassPathConfig
public abstract boolean isClassPathConfig()
Must be exclusive withisModularPathConfig()
.- Returns:
true
if 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
-
-