public abstract class PlexusTestCase
extends junit.framework.TestCase
| Constructor and Description |
|---|
PlexusTestCase() |
| Modifier and Type | Method and Description |
|---|---|
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 <T> T |
lookup(String componentKey) |
protected <T> T |
lookup(String role,
String roleHint) |
protected void |
release(Object component) |
protected void |
setUp() |
protected void |
setupContainer() |
protected void |
tearDown() |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toStringprotected void setUp()
throws Exception
setUp in class junit.framework.TestCaseExceptionprotected void setupContainer()
protected void customizeContainerConfiguration(ContainerConfiguration containerConfiguration)
containerConfiguration - ContainerConfiguration.protected void customizeContext(Context context)
protected PlexusConfiguration customizeComponentConfiguration()
protected void tearDown()
throws Exception
tearDown in class junit.framework.TestCaseExceptionprotected PlexusContainer getContainer()
protected InputStream getConfiguration() throws Exception
Exceptionprotected InputStream getConfiguration(String subname) throws Exception
Exceptionprotected String getCustomConfigurationName()
protected String getConfigurationName(String subname)
subname - the subnameprotected InputStream getResourceAsStream(String resource)
protected ClassLoader getClassLoader()
protected <T> T lookup(Class<T> componentClass, String roleHint) throws Exception
Exceptionpublic static String getBasedir()
public String getTestConfiguration()
Copyright © 2001–2019 Codehaus Plexus. All rights reserved.