org.openorb.orb.test.iiop.state
Class StateTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.openorb.orb.test.iiop.state.StateTest
All Implemented Interfaces:
junit.framework.Test

public class StateTest
extends junit.framework.TestCase

Tests bidirectional IIOP.

Author:
Chris Wood

Constructor Summary
StateTest(java.lang.String name)
          Constructor.
 
Method Summary
static void main(java.lang.String[] args)
          The entry point of the test-case.
 void tearDown()
          Dispose the test case.
 void testBiDirClientPause()
          Tests pause from the initiating side of a bidir connection.
 void testBiDirServerPause()
          Tests pause from the listening side of a bidir connection.
 void testClientPause()
          Tests pause from the client side.
 void testServerPause()
          Tests pause from the server side.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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

StateTest

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

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

tearDown

public void tearDown()
Dispose the test case.

Overrides:
tearDown in class junit.framework.TestCase

testClientPause

public void testClientPause()
                     throws org.omg.CORBA.UserException,
                            java.lang.InterruptedException
Tests pause from the client side. This test will actualy work only statisticaly, hence the repeating.

Throws:
org.omg.CORBA.UserException - if any of the test case fails
java.lang.InterruptedException - if the thread is interrupted for any reason

testServerPause

public void testServerPause()
                     throws org.omg.CORBA.UserException,
                            java.lang.InterruptedException
Tests pause from the server side. This test will actualy work only statisticaly, hence the repeating.

Throws:
org.omg.CORBA.UserException - if any of the test case fails
java.lang.InterruptedException - if the thread is interrupted for any reason

testBiDirClientPause

public void testBiDirClientPause()
                          throws org.omg.CORBA.UserException,
                                 java.lang.InterruptedException
Tests pause from the initiating side of a bidir connection. This test will actualy work only statisticaly, hence the repeating.

Throws:
org.omg.CORBA.UserException - if any of the test case fails
java.lang.InterruptedException - if the thread is interrupted for any reason

testBiDirServerPause

public void testBiDirServerPause()
                          throws org.omg.CORBA.UserException,
                                 java.lang.InterruptedException
Tests pause from the listening side of a bidir connection. This test will actualy work only statisticaly, hence the repeating.

Throws:
org.omg.CORBA.UserException - if any of the test case fails
java.lang.InterruptedException - if the thread is interrupted for any reason

main

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

Parameters:
args - The command line arguments.