org.ourgrid.peer.manager.request
Class RequestManagerTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.ourgrid.peer.manager.request.RequestManagerTest
All Implemented Interfaces:
junit.framework.Test, FastTest, PeerFastTest, PeerPreCommitTest, PreCommitTest, SelectiveTest, StressTest

public class RequestManagerTest
extends junit.framework.TestCase
implements PeerFastTest

The test for EBRequestManager class.


Constructor Summary
RequestManagerTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testCreateAndContainRequest()
          Verifies if the requests are been created correctly.
 void testGetConsumerFromRequestID()
          Verifies if consumers are been correctly associated.
 void testInitialConditions()
          Tests the initial map contents.
 void testMethodCallsForRequest()
          Verifies if the hereIsGuMForRequest(), disposeOfForRequest() and lostGuMForRequest() methods are changing the request.
 void testNoMoreGuMsForRequest()
           
 void testPauseResumeRequest()
          Verifies if the suspendWannaGuMsForRequest() and resumeWannaGuMsForRequest() methods are changing the request.
 
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
 
Methods inherited from interface junit.framework.Test
countTestCases, run
 

Constructor Detail

RequestManagerTest

public RequestManagerTest()
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

testCreateAndContainRequest

public void testCreateAndContainRequest()
Verifies if the requests are been created correctly.


testGetConsumerFromRequestID

public void testGetConsumerFromRequestID()
                                  throws RequestDoesNotExistException
Verifies if consumers are been correctly associated.

Throws:
RequestDoesNotExistException

testNoMoreGuMsForRequest

public void testNoMoreGuMsForRequest()
                              throws RequestDoesNotExistException
Throws:
RequestDoesNotExistException

testPauseResumeRequest

public void testPauseResumeRequest()
                            throws RequestDoesNotExistException
Verifies if the suspendWannaGuMsForRequest() and resumeWannaGuMsForRequest() methods are changing the request.

Throws:
RequestDoesNotExistException

testMethodCallsForRequest

public void testMethodCallsForRequest()
                               throws RequestDoesNotExistException
Verifies if the hereIsGuMForRequest(), disposeOfForRequest() and lostGuMForRequest() methods are changing the request.

Throws:
RequestDoesNotExistException
RequestDoesNotExistException

testInitialConditions

public void testInitialConditions()
Tests the initial map contents.