org.openorb.orb.test.corba
Class SingletonTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.openorb.orb.test.corba.CORBATestCase
              extended by org.openorb.orb.test.corba.SingletonTest
All Implemented Interfaces:
junit.framework.Test

public class SingletonTest
extends CORBATestCase

An ORB singleton test case.

Author:
Chris Wood

Constructor Summary
SingletonTest(java.lang.String name)
          Constructor.
 
Method Summary
static void main(java.lang.String[] args)
          The entry point of the test case.
 void setUp()
          Set up the test case,
 void testORBSingletonNoImplement()
          Test the not implemented operations of the ORB Singleton.
 void testTypeCodeCreate()
          Test the ORBSingleton operations to create TypeCodes.
 
Methods inherited from class org.openorb.orb.test.corba.CORBATestCase
getORB, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SingletonTest

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

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

setUp

public void setUp()
Set up the test case,

Overrides:
setUp in class CORBATestCase

testTypeCodeCreate

public void testTypeCodeCreate()
                        throws org.omg.CORBA.UserException
Test the ORBSingleton operations to create TypeCodes. This test covers the create_XXX_tc operations passing by the right parameters. The created TypeCodes are struct, union, enum, alias, exception, interface, native, string, wstring, sequence, recursive, array, fixed, value_box, abstract interface, local interface.

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

testORBSingletonNoImplement

public void testORBSingletonNoImplement()
                                 throws org.omg.CORBA.UserException
Test the not implemented operations of the ORB Singleton. The whole not implemented operations of the ORB Singleton (implement in the ORB) are invoked and the thrown NO_IMPLEMENT exception is checked.

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

main

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

Parameters:
args - The command line arguments.