org.openorb.orb.test.corba
Class CORBATestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.openorb.orb.test.corba.CORBATestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
AnyTest, DataStreamTest, DynAnyTest, SingletonTest, TypeCodeTest

public abstract class CORBATestCase
extends junit.framework.TestCase

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.

Author:
Chris Wood

Constructor Summary
CORBATestCase(java.lang.String name)
          Constructor.
 
Method Summary
 org.omg.CORBA.ORB getORB()
          Get 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 tearDown()
          This method is called after calling run.
 
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

CORBATestCase

public CORBATestCase(java.lang.String name)
Constructor.

Parameters:
name - The name of the test case.
Method Detail

setUp

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.

Overrides:
setUp in class junit.framework.TestCase

tearDown

protected void tearDown()
This method is called after calling run. It shuts down the server and client orbs.

Overrides:
tearDown in class junit.framework.TestCase

getORB

public org.omg.CORBA.ORB getORB()
Get the server side orb.

Returns:
The server's orb instance.