org.openorb.orb.test.corba
Class TypeCodeTest

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.TypeCodeTest
All Implemented Interfaces:
junit.framework.Test

public class TypeCodeTest
extends CORBATestCase

A CORBA TypeCode test case.

Author:
Chris Wood

Constructor Summary
TypeCodeTest(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 testTCAlias()
          Test the alias TypeCode operations.
 void testTCArray()
          Test the array TypeCode operations.
 void testTCEnum()
          Test the enum TypeCode operations.
 void testTCFixed()
          Test the fixed TypeCode operations.
 void testTCObject()
          Test the object reference TypeCode operations.
 void testTCPrimative()
          Test the primitive TypeCodes operations.
 void testTCRecursive()
          Test the recursive TypeCode.
 void testTCString()
          Test the string TypeCode operations.
 void testTCStruct()
          Test the struct TypeCode operations.
 void testTCUnion()
          Test the union TypeCode operations.
 void testTCValue()
          Test the value TypeCode operations.
 
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

TypeCodeTest

public TypeCodeTest(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

testTCPrimative

public void testTCPrimative()
                     throws org.omg.CORBA.UserException
Test the primitive TypeCodes operations. The test creates a short primitive TypeCode and then invokes all its operations.

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

testTCString

public void testTCString()
                  throws org.omg.CORBA.UserException
Test the string TypeCode operations. The test creates a string TypeCode and then invokes all its operations.

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

testTCAlias

public void testTCAlias()
                 throws org.omg.CORBA.UserException
Test the alias TypeCode operations. The test creates a alias (aliased to a string) TypeCode and then invokes all its operations.

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

testTCArray

public void testTCArray()
                 throws org.omg.CORBA.UserException
Test the array TypeCode operations. The test creates a array (string elements) TypeCode and then invokes all its operations.

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

testTCEnum

public void testTCEnum()
                throws org.omg.CORBA.UserException
Test the enum TypeCode operations. The test creates an enum TypeCode and then invokes all its operations.

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

testTCFixed

public void testTCFixed()
                 throws org.omg.CORBA.UserException
Test the fixed TypeCode operations. The test creates a fixed TypeCode and then invokes all its operations.

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

testTCObject

public void testTCObject()
                  throws org.omg.CORBA.UserException
Test the object reference TypeCode operations. The test creates a object reference TypeCode and then invokes all its operations.

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

testTCStruct

public void testTCStruct()
                  throws org.omg.CORBA.UserException
Test the struct TypeCode operations. The test creates a struct TypeCode and then invokes all its operations.

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

testTCUnion

public void testTCUnion()
                 throws org.omg.CORBA.UserException
Test the union TypeCode operations. The test creates an union TypeCode and then invokes all its operations.

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

testTCValue

public void testTCValue()
                 throws org.omg.CORBA.UserException
Test the value TypeCode operations. The test creates a value TypeCode and then invokes all its operations.

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

testTCRecursive

public void testTCRecursive()
                     throws org.omg.CORBA.UserException
Test the recursive TypeCode. This typecode must be embeded into another typecode before being used.

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.