org.codehaus.plexus

Class PlexusTestCase

public abstract class PlexusTestCase extends TestCase

Version: $Id: PlexusTestCase.java 6709 2007-07-30 23:50:38Z jvanzyl $

Author: Jason van Zyl Trygve Laugstøl Michal Maczka

Field Summary
static Stringbasedir
protected PlexusContainercontainer
protected Mapcontext
Method Summary
protected voidcustomizeContext(Context context)
static StringgetBasedir()
protected ClassLoadergetClassLoader()
protected InputStreamgetConfiguration()
protected InputStreamgetConfiguration(String subname)
protected StringgetConfigurationName(String subname)
protected PlexusContainergetContainer()
protected StringgetCustomConfigurationName()
protected InputStreamgetResourceAsStream(String resource)
StringgetTestConfiguration()
static StringgetTestConfiguration(Class clazz)
static FilegetTestFile(String path)
static FilegetTestFile(String basedir, String path)
static StringgetTestPath(String path)
static StringgetTestPath(String basedir, String path)
protected Objectlookup(String componentKey)
protected Objectlookup(String role, String id)
protected Objectlookup(Class componentClass)
protected Objectlookup(Class role, String id)
protected voidrelease(Object component)
protected voidsetUp()
protected voidtearDown()

Field Detail

basedir

private static String basedir

container

protected PlexusContainer container

context

protected Map context

Method Detail

customizeContext

protected void customizeContext(Context context)

getBasedir

public static String getBasedir()

getClassLoader

protected ClassLoader getClassLoader()

getConfiguration

protected InputStream getConfiguration()

getConfiguration

protected InputStream getConfiguration(String subname)

getConfigurationName

protected String getConfigurationName(String subname)

getContainer

protected PlexusContainer getContainer()

getCustomConfigurationName

protected String getCustomConfigurationName()

getResourceAsStream

protected InputStream getResourceAsStream(String resource)

getTestConfiguration

public String getTestConfiguration()

getTestConfiguration

public static String getTestConfiguration(Class clazz)

getTestFile

public static File getTestFile(String path)

getTestFile

public static File getTestFile(String basedir, String path)

getTestPath

public static String getTestPath(String path)

getTestPath

public static String getTestPath(String basedir, String path)

lookup

protected Object lookup(String componentKey)

lookup

protected Object lookup(String role, String id)

lookup

protected Object lookup(Class componentClass)

lookup

protected Object lookup(Class role, String id)

release

protected void release(Object component)

setUp

protected void setUp()

tearDown

protected void tearDown()