org.openorb.orb.test.corba
Class DataStreamTest

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

public class DataStreamTest
extends CORBATestCase

A test case for the class DataInputStream and DataOutputStream.

Author:
Chris Wood

Constructor Summary
DataStreamTest(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 testArrayOutputStream()
          Test the data output stream for simple objects arrays.
 void testArrayReading()
          Test the handling of arrays.
 void testSimpleOutputStream()
          Test the data output and input streams for simple objects.
 
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

DataStreamTest

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

testSimpleOutputStream

public void testSimpleOutputStream()
Test the data output and input streams for simple objects. This operation uses an output stream to write Anys, chars, numbers and strings. And an input stream to read them back again.


testArrayOutputStream

public void testArrayOutputStream()
Test the data output stream for simple objects arrays. This operation uses an output stream to write arrays of Anys, chars, numbers and strings.


testArrayReading

public void testArrayReading()
Test the handling of arrays. An array may be written individually (element by element) or using the write_xxx_array methods. ORBacus/JDK-IDLJ write them individually Also, DynAny rely upon this working


main

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

Parameters:
args - The command line arguments.