public class BaseUnitTest
extends junit.framework.TestCase
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COMPONENT_APP_ROOT
Key used in the context for defining the application root
|
static java.lang.String |
CONTAINER_ECM |
static java.lang.String |
CONTAINER_YAAFI |
static java.lang.String |
containerType
Pick the default container to be Yaafi
|
Constructor and Description |
---|
BaseUnitTest(java.lang.String testName)
Constructor for test.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getConfigurationFileName()
Gets the configuration file name for the container should use for this test.
|
protected java.lang.String |
getParameterFileName()
Gets the parameter file name for the container should use for this test.
|
protected java.lang.String |
getRoleFileName()
Gets the role file name for the container should use for this test.
|
protected java.lang.Object |
lookup(java.lang.String roleName)
Returns an instance of the named component.
|
protected void |
release(java.lang.Object component)
Releases the component
|
protected java.lang.Object |
resolve(java.lang.String roleName)
Helper method for converting to and from Merlin Unit TestCase.
|
protected void |
setConfigurationFileName(java.lang.String configurationFileName)
Gets the configuration file name for the container should use for this test.
|
protected void |
setRoleFileName(java.lang.String roleFileName)
Override the role file name for the container should use for this test.
|
protected void |
tearDown()
Clean up after each test is run.
|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, toString
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, failNotEquals, failNotSame, failSame
public static final java.lang.String CONTAINER_ECM
public static final java.lang.String CONTAINER_YAAFI
public static java.lang.String COMPONENT_APP_ROOT
public static java.lang.String containerType
public BaseUnitTest(java.lang.String testName)
testName
- name of the test being executedprotected void setConfigurationFileName(java.lang.String configurationFileName)
configurationFileName
- protected void setRoleFileName(java.lang.String roleFileName)
roleFileName
- protected void tearDown()
tearDown
in class junit.framework.TestCase
protected java.lang.String getConfigurationFileName()
protected java.lang.String getRoleFileName()
protected java.lang.String getParameterFileName()
protected java.lang.Object lookup(java.lang.String roleName) throws org.apache.avalon.framework.component.ComponentException
roleName
- Name of the role the component fills.org.apache.avalon.framework.component.ComponentException
- generic exceptionprotected java.lang.Object resolve(java.lang.String roleName) throws org.apache.avalon.framework.component.ComponentException
roleName
- org.apache.avalon.framework.component.ComponentException
protected void release(java.lang.Object component)
component
- Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.