org.ourgrid.common.gump
Class GumpClientThreadManagerTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.ourgrid.common.gump.GumpClientThreadManagerTest
All Implemented Interfaces:
junit.framework.Test, PeerPreCommitTest, PreCommitTest, SelectiveTest, StressTest

public class GumpClientThreadManagerTest
extends junit.framework.TestCase
implements PeerPreCommitTest

The GridMachineProviderClientThreadManager tests.


Constructor Summary
GumpClientThreadManagerTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testCreateAndExecuteDelivererThread1()
          Tests the CreateAndDeliverThread method, delivering a gum for a consumer.
 void testCreateAndExecuteDeliverThread2()
          Test if the CreateAndDeliverThread method is working as unexpected if the consumer fail.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface junit.framework.Test
countTestCases, run
 

Constructor Detail

GumpClientThreadManagerTest

public GumpClientThreadManagerTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

testCreateAndExecuteDelivererThread1

public void testCreateAndExecuteDelivererThread1()
                                          throws java.rmi.RemoteException
Tests the CreateAndDeliverThread method, delivering a gum for a consumer. Everything should works ok.

Throws:
java.rmi.RemoteException

testCreateAndExecuteDeliverThread2

public void testCreateAndExecuteDeliverThread2()
                                        throws java.lang.Exception
Test if the CreateAndDeliverThread method is working as unexpected if the consumer fail. In case of the consumer fail, the ConsumerThreadManager should notify the EBPeerManagerFacade informing that that can is not being used.

Throws:
java.rmi.RemoteException
java.lang.Exception