org.codehaus.plexus

Class PlexusTestCase


public abstract class PlexusTestCase
extends TestCase

Version:
$Id: PlexusTestCase.java 1708 2005-04-15 04:47:38Z brett $
Authors:
Jason van Zyl
Trygve Laugstøl
Michal Maczka

Field Summary

protected String
basedir
Deprecated. Use getBasedir(); instead of accessing this variable directly.
protected PlexusContainer
container

Constructor Summary

PlexusTestCase()
PlexusTestCase(String testName)
Deprecated. Use the no arg contstructor.

Method Summary

protected PlexusContainer
createContainerInstance()
protected void
customizeContext()
protected void
customizeContext(Context context)
static String
getBasedir()
protected ClassLoader
getClassLoader()
protected InputStream
getConfiguration()
protected InputStream
getConfiguration(String subname)
protected PlexusContainer
getContainer()
protected InputStream
getCustomConfiguration()
protected InputStream
getResourceAsStream(String resource)
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 Object
lookup(String componentKey)
protected Object
lookup(String role, String id)
protected void
release(Object component)
protected void
setUp()
protected void
tearDown()

Field Details

basedir

protected String basedir

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


container

protected PlexusContainer container

Constructor Details

PlexusTestCase

public PlexusTestCase()

PlexusTestCase

public PlexusTestCase(String testName)

Deprecated. Use the no arg contstructor.

Method Details

createContainerInstance

protected PlexusContainer createContainerInstance()

customizeContext

protected void customizeContext()
            throws Exception

customizeContext

protected void customizeContext(Context context)
            throws Exception

getBasedir

public static String getBasedir()

getClassLoader

protected ClassLoader getClassLoader()

getConfiguration

protected InputStream getConfiguration()
            throws Exception

getConfiguration

protected InputStream getConfiguration(String subname)
            throws Exception

getContainer

protected PlexusContainer getContainer()

getCustomConfiguration

protected InputStream getCustomConfiguration()
            throws Exception

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)
            throws Exception

lookup

protected Object lookup(String role,
                        String id)
            throws Exception

release

protected void release(Object component)
            throws Exception

setUp

protected void setUp()
            throws Exception

tearDown

protected void tearDown()
            throws Exception