Package org.codehaus.plexus
Class PlexusTestCase
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- org.codehaus.plexus.PlexusTestCase
-
- All Implemented Interfaces:
junit.framework.Test
public abstract class PlexusTestCase extends junit.framework.TestCase
-
-
Constructor Summary
Constructors Constructor Description PlexusTestCase()
-
Method Summary
-
Methods inherited from class junit.framework.TestCase
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, toString
-
-
-
-
Method Detail
-
getBasedir
public static String getBasedir()
-
getTestConfiguration
public final String getTestConfiguration()
-
customizeContext
protected void customizeContext(Context context)
-
getCustomConfigurationName
protected String getCustomConfigurationName()
-
customizeContainerConfiguration
protected void customizeContainerConfiguration(ContainerConfiguration configuration)
-
setUp
protected void setUp() throws Exception
- Overrides:
setUp
in classjunit.framework.TestCase
- Throws:
Exception
-
getContainer
protected PlexusContainer getContainer()
-
setupContainer
protected void setupContainer()
-
teardownContainer
protected void teardownContainer()
-
tearDown
protected void tearDown() throws Exception
- Overrides:
tearDown
in classjunit.framework.TestCase
- Throws:
Exception
-
getClassLoader
protected final ClassLoader getClassLoader()
-
getResourceAsStream
protected final InputStream getResourceAsStream(String name)
-
lookup
protected final Object lookup(String role) throws ComponentLookupException
- Throws:
ComponentLookupException
-
lookup
protected final Object lookup(String role, String hint) throws ComponentLookupException
- Throws:
ComponentLookupException
-
lookup
protected final <T> T lookup(Class<T> role) throws ComponentLookupException
- Throws:
ComponentLookupException
-
lookup
protected final <T> T lookup(Class<T> role, String hint) throws ComponentLookupException
- Throws:
ComponentLookupException
-
release
protected final void release(Object component) throws ComponentLifecycleException
- Throws:
ComponentLifecycleException
-
-