|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.apache.avalon.fortress.testcase.FortressTestCase
JUnit TestCase for Components run under Fortress.
Constructor Summary | |
FortressTestCase(java.lang.String name)
|
Method Summary | |
protected ServiceManager |
getServiceManager()
Returns a reference to the Fortress ServiceManager. |
protected Context |
initializeContext(Context context)
Gives sublasses the oportunity to modify the Context before it is used to create the Container. |
void |
setUp()
|
void |
tearDown()
|
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public FortressTestCase(java.lang.String name)
Method Detail |
public void setUp() throws java.lang.Exception
java.lang.Exception
public void tearDown()
protected Context initializeContext(Context context)
The context provided will have been marked read-only. To make modifications to the context, it must first be wrapped in a new context instance as follows:
DefaultContext newContext = new DefaultContext( context ); newContext.put( "key", "value" ); newContext.makeReadOnly(); return newContext;This version of the method simply returns the context instance unmodified.
context
- The base Context object.
protected ServiceManager getServiceManager()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |