org.codehaus.plexus

Class PlexusTestCase

public abstract class PlexusTestCase extends TestCase

Version: $Id: PlexusTestCase.java 1708 2005-04-15 04:47:38Z brett $

Author: Jason van Zyl Trygve Laugstøl Michal Maczka

Field Summary
protected Stringbasedir
static StringbasedirPath
protected PlexusContainercontainer
Constructor Summary
PlexusTestCase()
PlexusTestCase(String testName)
Method Summary
protected PlexusContainercreateContainerInstance()
protected voidcustomizeContext()
protected voidcustomizeContext(Context context)
static StringgetBasedir()
protected ClassLoadergetClassLoader()
protected InputStreamgetConfiguration()
protected InputStreamgetConfiguration(String subname)
protected PlexusContainergetContainer()
ContextgetContext()
protected InputStreamgetCustomConfiguration()
protected InputStreamgetResourceAsStream(String resource)
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 voidrelease(Object component)
protected voidsetUp()
protected voidtearDown()

Field Detail

basedir

protected String basedir

Deprecated: Use getBasedir(); instead of accessing this variable directly. When removing this variable rename basedirPath to basedir. Trygve.

basedirPath

private static String basedirPath

container

protected PlexusContainer container

Constructor Detail

PlexusTestCase

public PlexusTestCase()

PlexusTestCase

public PlexusTestCase(String testName)

Deprecated: Use the no arg contstructor.

Method Detail

createContainerInstance

protected PlexusContainer createContainerInstance()

customizeContext

protected void customizeContext()

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)

getContainer

protected PlexusContainer getContainer()

getContext

private Context getContext()

getCustomConfiguration

protected InputStream getCustomConfiguration()

getResourceAsStream

protected InputStream getResourceAsStream(String resource)

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)

release

protected void release(Object component)

setUp

protected void setUp()

tearDown

protected void tearDown()