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
- Version:
- $Id: PlexusTestCase.java 7100 2007-12-05 18:57:08Z jdcasey $
- Author:
- Jason van Zyl, Trygve Laugstøl, Michal Maczka
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
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, fail, fail |
PlexusTestCase
public PlexusTestCase()
setUp
protected void setUp()
throws Exception
- Overrides:
setUp
in class junit.framework.TestCase
- Throws:
Exception
setupContainer
protected void setupContainer()
customizeContainerConfiguration
protected void customizeContainerConfiguration(ContainerConfiguration containerConfiguration)
- Allow custom test case implementations do augment the default container configuration before
executing tests.
- Parameters:
containerConfiguration
-
customizeContext
protected void customizeContext(Context context)
tearDown
protected void tearDown()
throws Exception
- Overrides:
tearDown
in class junit.framework.TestCase
- Throws:
Exception
getContainer
protected PlexusContainer getContainer()
getConfiguration
protected InputStream getConfiguration()
throws Exception
- Throws:
Exception
getConfiguration
protected InputStream getConfiguration(String subname)
throws Exception
- Throws:
Exception
getCustomConfigurationName
protected String getCustomConfigurationName()
getConfigurationName
protected String getConfigurationName(String subname)
getResourceAsStream
protected InputStream getResourceAsStream(String resource)
getClassLoader
protected ClassLoader getClassLoader()
lookup
protected Object lookup(String componentKey)
throws Exception
- Throws:
Exception
lookup
protected Object lookup(String role,
String id)
throws Exception
- Throws:
Exception
lookup
protected Object lookup(Class componentClass)
throws Exception
- Throws:
Exception
lookup
protected Object lookup(Class role,
String id)
throws Exception
- Throws:
Exception
release
protected void release(Object component)
throws Exception
- Throws:
Exception
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)
getBasedir
public static String getBasedir()
getTestConfiguration
public String getTestConfiguration()
getTestConfiguration
public static String getTestConfiguration(Class clazz)
Copyright © 2001-2007 Codehaus. All Rights Reserved.