public abstract class PlexusJUnit4TestCase extends Object
Constructor and Description |
---|
PlexusJUnit4TestCase() |
Modifier and Type | Method and Description |
---|---|
void |
afterTest() |
void |
beforeTest() |
protected PlexusConfiguration |
customizeComponentConfiguration() |
protected void |
customizeContainerConfiguration(ContainerConfiguration containerConfiguration)
Allow custom test case implementations do augment the default container configuration before
executing tests.
|
protected void |
customizeContext(Context context) |
static String |
getBasedir() |
protected ClassLoader |
getClassLoader() |
protected InputStream |
getConfiguration() |
protected InputStream |
getConfiguration(String subname) |
protected String |
getConfigurationName(String subname)
Allow the retrieval of a container configuration that is based on the name
of the test class being run.
|
protected PlexusContainer |
getContainer() |
protected String |
getCustomConfigurationName() |
protected InputStream |
getResourceAsStream(String resource) |
String |
getTestConfiguration() |
static String |
getTestConfiguration(Class<?> clazz) |
static File |
getTestFile(String path) |
static File |
getTestFile(String basedir,
String path) |
static String |
getTestPath(String path) |
static String |
getTestPath(String basedir,
String path) |
protected <T> T |
lookup(Class<T> componentClass) |
protected <T> T |
lookup(Class<T> componentClass,
String roleHint) |
protected Object |
lookup(String componentKey) |
protected Object |
lookup(String role,
String roleHint) |
protected void |
release(Object component) |
protected void |
setupContainer() |
protected void setupContainer()
protected void customizeContainerConfiguration(ContainerConfiguration containerConfiguration)
containerConfiguration
- The configurationprotected void customizeContext(Context context)
protected PlexusConfiguration customizeComponentConfiguration()
protected PlexusContainer getContainer()
protected InputStream getConfiguration()
protected InputStream getConfiguration(String subname)
protected String getCustomConfigurationName()
protected String getConfigurationName(String subname)
subname
- the subname (not used)protected InputStream getResourceAsStream(String resource)
protected ClassLoader getClassLoader()
protected Object lookup(String role, String roleHint) throws ComponentLookupRuntimeException
ComponentLookupRuntimeException
protected <T> T lookup(Class<T> componentClass) throws ComponentLookupRuntimeException
ComponentLookupRuntimeException
protected <T> T lookup(Class<T> componentClass, String roleHint) throws ComponentLookupRuntimeException
ComponentLookupRuntimeException
public static String getBasedir()
public String getTestConfiguration()
Copyright © 2001–2019 Codehaus Plexus. All rights reserved.