org.openorb.orb.test.adapter.poa
Class POATest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.openorb.orb.test.ORBTestCase
              extended by org.openorb.orb.test.adapter.poa.POATest
All Implemented Interfaces:
junit.framework.Test

public class POATest
extends ORBTestCase

Tests range of POA policies and features.

Author:
Chris Wood

Constructor Summary
POATest(java.lang.String name)
          Constructor.
 
Method Summary
static void main(java.lang.String[] args)
          The main entry point of the test case.
protected  void setUp()
          Overloaded to allow the persistant test case to work.
 void testDefaultPolicies()
          Test explicit activation and deactivation with the root POA.
 void testImplicitActivationRootPOA()
          Test implicit activation with the root POA and basic object operations.
 void testNonRetainDefaultServant()
          Test implicit activation with the root POA.
 void testPersistanceAndActivators()
          Test persistant/system ids, adapter activator, servant activator.
 void testUserIDPolicy()
          Test user ids.
 
Methods inherited from class org.openorb.orb.test.ORBTestCase
enteringTest, exitingTest, forceMarshal, getORB, restartORB, setUp, tearDown, writeVerboseHex
 
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

POATest

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

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

setUp

protected void setUp()
Overloaded to allow the persistant test case to work.

Overrides:
setUp in class ORBTestCase

testImplicitActivationRootPOA

public void testImplicitActivationRootPOA()
                                   throws org.omg.CORBA.UserException
Test implicit activation with the root POA and basic object operations.

Throws:
org.omg.CORBA.UserException - if any of the test case fails .

testDefaultPolicies

public void testDefaultPolicies()
                         throws org.omg.CORBA.UserException
Test explicit activation and deactivation with the root POA.

Throws:
org.omg.CORBA.UserException - if any of the test case fails

testUserIDPolicy

public void testUserIDPolicy()
                      throws org.omg.CORBA.UserException
Test user ids.

Throws:
org.omg.CORBA.UserException - if any of the test case fails

testNonRetainDefaultServant

public void testNonRetainDefaultServant()
                                 throws org.omg.CORBA.UserException
Test implicit activation with the root POA.

Throws:
org.omg.CORBA.UserException - if any of the test case fails

testPersistanceAndActivators

public void testPersistanceAndActivators()
                                  throws org.omg.CORBA.UserException
Test persistant/system ids, adapter activator, servant activator.

Throws:
org.omg.CORBA.UserException - if any of the test case fails

main

public static void main(java.lang.String[] args)
The main entry point of the test case.

Parameters:
args - The command line parameters.