public abstract class

PlexusTestCase

extends TestCase
java.lang.Object
   ↳ junit.framework.Assert
     ↳ junit.framework.TestCase
       ↳ org.codehaus.plexus.PlexusTestCase

Summary

Public Constructors
PlexusTestCase()
Public Methods
static String getBasedir()
static String getTestConfiguration(Class<?> clazz)
String getTestConfiguration()
static File getTestFile(String basedir, String path)
static File getTestFile(String path)
static String getTestPath(String basedir, String path)
static String getTestPath(String path)
Protected Methods
PlexusConfiguration customizeComponentConfiguration()
void customizeContainerConfiguration(ContainerConfiguration containerConfiguration)
Allow custom test case implementations do augment the default container configuration before executing tests.
void customizeContext(Context context)
ClassLoader getClassLoader()
InputStream getConfiguration()
InputStream getConfiguration(String subname)
String getConfigurationName(String subname)
Allow the retrieval of a container configuration that is based on the name of the test class being run.
PlexusContainer getContainer()
String getCustomConfigurationName()
InputStream getResourceAsStream(String resource)
Object lookup(String role, String roleHint)
Object lookup(String componentKey)
<T> T lookup(Class<T> componentClass)
<T> T lookup(Class<T> componentClass, String roleHint)
void release(Object component)
void setUp()
void setupContainer()
void tearDown()
[Expand]
Inherited Methods
From class junit.framework.TestCase
From class junit.framework.Assert
From class java.lang.Object
From interface junit.framework.Test

Public Constructors

public PlexusTestCase ()

Public Methods

public static String getBasedir ()

public static String getTestConfiguration (Class<?> clazz)

public String getTestConfiguration ()

public static File getTestFile (String basedir, String path)

public static File getTestFile (String path)

public static String getTestPath (String basedir, String path)

public static String getTestPath (String path)

Protected Methods

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)

protected ClassLoader getClassLoader ()

protected InputStream getConfiguration ()

Throws
Exception

protected InputStream getConfiguration (String subname)

Throws
Exception

protected String getConfigurationName (String subname)

Allow the retrieval of a container configuration that is based on the name of the test class being run. So if you have a test class called org.foo.FunTest, then this will produce a resource name of org/foo/FunTest.xml which would be used to configure the Plexus container before running your test.

protected PlexusContainer getContainer ()

protected String getCustomConfigurationName ()

protected InputStream getResourceAsStream (String resource)

protected Object lookup (String role, String roleHint)

Throws
Exception

protected Object lookup (String componentKey)

Throws
Exception

protected T lookup (Class<T> componentClass)

Throws
Exception

protected T lookup (Class<T> componentClass, String roleHint)

Throws
Exception

protected void release (Object component)

Throws
Exception

protected void setUp ()

Throws
Exception

protected void setupContainer ()

protected void tearDown ()

Throws
Exception