org.openorb.orb.test.rmi.primitive
Class PrimitiveTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.openorb.orb.test.rmi.RMITestCase
              extended by org.openorb.orb.test.rmi.primitive.PrimitiveTest
All Implemented Interfaces:
junit.framework.Test

public class PrimitiveTest
extends RMITestCase

This test suite provides a large set of primitive data types tests. All RMI data types are tested:

Author:
Jerome Daniel

Nested Class Summary
static class PrimitiveTest.EchoImpl
          Remote interface implementation.
 
Constructor Summary
PrimitiveTest(java.lang.String name)
          Constructor.
 
Method Summary
static void main(java.lang.String[] args)
          The entry point of this application.
protected  void setUp()
          Set up the test case.
protected  void tearDown()
          Dispose the test case.
 void testBoolean()
          Test the exchange of boolean and array of booleans.
 void testByte()
          Test the exchange of byte and array of bytes.
 void testChar()
          Test the exchange of char and array of chars.
 void testDouble()
          Test the exchange of double and array of double.
 void testFloat()
          Test the exchange of float and array of floats.
 void testInt()
          Test the exchange of int and array of ints.
 void testPrimitive()
          Test ping.
 void testShort()
          Test the exchange of short and array of shorts.
 
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

PrimitiveTest

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

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

setUp

protected void setUp()
Set up the test case.

Overrides:
setUp in class RMITestCase

tearDown

protected void tearDown()
Dispose the test case.

Overrides:
tearDown in class RMITestCase

testPrimitive

public void testPrimitive()
                   throws java.lang.Exception
Test ping. This test is used to establish a connection between the client and the object. All basic mechanisms to establish a connection are used.

Throws:
java.lang.Exception - if any unexpected problem occurs in the test case

testBoolean

public void testBoolean()
                 throws java.lang.Exception
Test the exchange of boolean and array of booleans.

Throws:
java.lang.Exception - if any unexpected problem occurs in the test case

testByte

public void testByte()
              throws java.lang.Exception
Test the exchange of byte and array of bytes.

Throws:
java.lang.Exception - if any unexpected problem occurs in the test case

testShort

public void testShort()
               throws java.lang.Exception
Test the exchange of short and array of shorts.

Throws:
java.lang.Exception - if any unexpected problem occurs in the test case

testInt

public void testInt()
             throws java.lang.Exception
Test the exchange of int and array of ints.

Throws:
java.lang.Exception - if any unexpected problem occurs in the test case

testChar

public void testChar()
              throws java.lang.Exception
Test the exchange of char and array of chars.

Throws:
java.lang.Exception - if any unexpected problem occurs in the test case

testFloat

public void testFloat()
               throws java.lang.Exception
Test the exchange of float and array of floats.

Throws:
java.lang.Exception - if any unexpected problem occurs in the test case

testDouble

public void testDouble()
                throws java.lang.Exception
Test the exchange of double and array of double.

Throws:
java.lang.Exception - if any unexpected problem occurs in the test case

main

public static void main(java.lang.String[] args)
The entry point of this application.

Parameters:
args - The command line parameters.