|
||||||||
| 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.openorb.orb.test.ORBTestCase
public abstract class ORBTestCase
Skeleton orb test case to use when testing an orb component. The pre_init and post init functions deal with creating and destroying orb instances for the client and server ends.
| Constructor Summary | |
|---|---|
ORBTestCase(java.lang.String name)
Constructor. |
|
| Method Summary | |
|---|---|
long |
enteringTest(java.lang.String test)
Show the message upon entering the test. |
long |
exitingTest(java.lang.String test)
Show the message upon test exit. |
org.omg.CORBA.Object |
forceMarshal(org.omg.CORBA.Object obj)
Sets local invoke policy on target. |
org.omg.CORBA.ORB |
getORB()
Get the server side orb. |
protected org.omg.CORBA.ORB |
restartORB()
Restarts the server side orb. |
protected void |
setUp()
This method is called prior to calling run and basically starts up a server and client orb, and spawns a thread for the server orb to run with. |
protected void |
setUp(java.util.Properties props)
Override setUp and call this method with alternative properties to startup an orb with alternative parameters. |
protected void |
tearDown()
This method is called after calling run. |
static void |
writeVerboseHex(java.io.OutputStream stream,
byte[] buf)
Write buffer as hex to given stream. |
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ORBTestCase(java.lang.String name)
name - The name of the test case.| Method Detail |
|---|
protected void setUp()
setUp in class junit.framework.TestCaseprotected void setUp(java.util.Properties props)
props - The properties for this test case.protected void tearDown()
tearDown in class junit.framework.TestCaseprotected org.omg.CORBA.ORB restartORB()
public org.omg.CORBA.ORB getORB()
public org.omg.CORBA.Object forceMarshal(org.omg.CORBA.Object obj)
throws org.omg.CORBA.PolicyError
obj - The object for which to set the forceMarshal policy.
org.omg.CORBA.PolicyError - When an error occurs.
public static void writeVerboseHex(java.io.OutputStream stream,
byte[] buf)
throws java.io.IOException
stream - The stream to write the buffer to.buf - The buffer to write to the stream
java.io.IOException - When an error occurs.public long enteringTest(java.lang.String test)
test - The name of the test case.
public long exitingTest(java.lang.String test)
test - The name of the test case.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||