org.openorb.orb.test.corba
Class AnyTest

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

public class AnyTest
extends CORBATestCase

A CORBA Any test case.

Author:
Chris Wood

Constructor Summary
AnyTest(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 testAny()
          Test the Any insert and extract 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

AnyTest

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

testAny

public void testAny()
             throws org.omg.CORBA.UserException
Test the Any insert and extract operations. For each basic type (numbers, strings, objects) one invocation is made for inserting an object into the Any, and the following invocation extracts the same value from the Any. Checking is made that ensure with retrieve the same value;

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.