|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.avalon.fortress.testcase.FortressTestCase
public class FortressTestCase
JUnit TestCase for Components run under Fortress.
| Constructor Summary | |
|---|---|
FortressTestCase(java.lang.String name)
|
|
| Method Summary | |
|---|---|
protected org.apache.avalon.framework.service.ServiceManager |
getServiceManager()
Returns a reference to the Fortress ServiceManager. |
protected org.apache.avalon.framework.context.Context |
initializeContext(org.apache.avalon.framework.context.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, failNotEquals, failNotSame, failSame, format |
| 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
setUp in class junit.framework.TestCasejava.lang.Exceptionpublic void tearDown()
tearDown in class junit.framework.TestCaseprotected org.apache.avalon.framework.context.Context initializeContext(org.apache.avalon.framework.context.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 org.apache.avalon.framework.service.ServiceManager getServiceManager()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||