|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.ourgrid.peer.manager.EBPeerManagerTest
public class EBPeerManagerTest
Field Summary | |
---|---|
protected AllocationManager |
allocationManager
The Allocation. |
protected EBPeerManager |
ebPeerManager
The object to be tested. |
protected RequestManager |
requestManager
The EBRequestManager. |
Constructor Summary | |
---|---|
EBPeerManagerTest()
|
Method Summary | |
---|---|
protected void |
setUp()
|
protected void |
tearDown()
|
void |
testComputeCommunityRedistribution()
|
void |
testConsumerIsDead()
|
void |
testConsumerIsDead3()
|
void |
testConsumerIsDeadWithRemoteGum()
|
void |
testDisposeOfForCommunityGuMs()
Verifies if the disposed community gums are been distributed correctly. |
void |
testDisposeOfForLocalGuMs()
Verifies if the disposed local gums are been distributed correctly. |
void |
testDisposeOfForNonExistentRequestID()
Verifies if the disposeOf() method for a non existent requestID is working correctly. |
void |
testFinishRequest()
|
void |
testGumsAreAllocatedAfterRequestExists()
|
void |
testGumWasLost()
Verifies the lostGuM() method called by local and
community requests tries to provide another gums. |
void |
testGumWasLost2()
|
void |
testHereIsGuMForCommunityGuMs()
Verifies if the hereIsGuM() called by community is working
correctly. |
void |
testHereIsGuMForCommunityGuMsWhenRequestDoesntExistOrFulfilled()
Verifies if the hereIsGuM() is working correctly when the
request is already fulfilled or doesn't exist. |
void |
testHereIsGuMForLocalGuMs()
Verifies if the hereIsGuM() called by
EBLocalGuMPFacade when there is more requests is working
correctly. |
void |
testHereIsGumOfSameMachine()
|
void |
testHereIsGuMOnlyWithRequestMadeByLocalGuMP()
Verifies if the hereIsGuM() called by
EBLocalGuMPFacade when there isn't another request is
working correctly. |
void |
testLocalGumIsDeadAndUnwantedGum()
|
void |
testLocalGumIsDeadWithNotAllocatedGums()
|
void |
testOverloadWannaGuMsHereIsGuM()
Verifies the wannaGuMs() and hereIsGuM()
methods overloaded. |
void |
testPauseResume1()
|
void |
testPauseResume2()
|
void |
testRedistributeGums1()
The redistributeGuMsByConsumer() test. |
void |
testRedistributeGums2()
The redistributeGuMsByConsumer() atest. |
void |
testRedistributeGums3()
The redistributeGuMsByConsumer() atest. |
void |
testRedistributeGums4()
|
void |
testRedistributeGums5()
|
void |
testRemoteUnwantedGum()
|
void |
testUnwantedGumsAreNotAllocated()
|
void |
testUnwantedGumsWithDifferentRequest()
|
void |
testWannaGuMs1()
Tests the basic functions os wannaGuMs() method. |
void |
testWannaGuMs2()
Tests if the wannaGuMs() method is delivering the correct
number of GuMs. |
void |
testWannaGuMs3()
Tests the preemption. |
void |
testWannaGuMs4()
This test verifies if the gums are been deallocated correctly. |
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 |
Field Detail |
---|
protected AllocationManager allocationManager
protected RequestManager requestManager
protected EBPeerManager ebPeerManager
Constructor Detail |
---|
public EBPeerManagerTest()
Method Detail |
---|
protected void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
protected void tearDown() throws java.lang.Exception
tearDown
in class junit.framework.TestCase
java.lang.Exception
public void testHereIsGuMOnlyWithRequestMadeByLocalGuMP()
hereIsGuM()
called by
EBLocalGuMPFacade
when there isn't another request is
working correctly.
public void testHereIsGuMForCommunityGuMsWhenRequestDoesntExistOrFulfilled() throws RequestAlreadyExistsException, RequestDoesNotExistException
hereIsGuM()
is working correctly when the
request is already fulfilled or doesn't exist.
RequestAlreadyExistsException
- Indicates that a request already
exists.
RequestDoesNotExistException
public void testHereIsGuMForLocalGuMs() throws RequestAlreadyExistsException, RequestDoesNotExistException
hereIsGuM()
called by
EBLocalGuMPFacade
when there is more requests is working
correctly.
RequestAlreadyExistsException
- Indicates that a request already
exists.
RequestDoesNotExistException
public void testHereIsGuMForCommunityGuMs() throws RequestAlreadyExistsException, RequestDoesNotExistException
hereIsGuM()
called by community is working
correctly.
RequestAlreadyExistsException
- Indicates that a request already
exists.
RequestDoesNotExistException
public void testOverloadWannaGuMsHereIsGuM() throws RequestAlreadyExistsException, RequestDoesNotExistException
wannaGuMs()
and hereIsGuM()
methods overloaded.
RequestAlreadyExistsException
- Indicates that a request already
exists.
RequestDoesNotExistException
public void testWannaGuMs1() throws RequestAlreadyExistsException, RequestDoesNotExistException
wannaGuMs()
method.
RequestAlreadyExistsException
- Indicates that a request already
exists.
RequestDoesNotExistException
public void testWannaGuMs2() throws RequestAlreadyExistsException, RequestDoesNotExistException
wannaGuMs()
method is delivering the correct
number of GuMs.
RequestAlreadyExistsException
- Indicates that a request already
exists.
RequestDoesNotExistException
public void testWannaGuMs3() throws RequestAlreadyExistsException, RequestDoesNotExistException
RequestAlreadyExistsException
RequestAlreadyExistsException
- Indicates that a request already
exists.
RequestDoesNotExistException
- spublic void testWannaGuMs4() throws RequestAlreadyExistsException
RequestAlreadyExistsException
- If the request id already exists.public void testPauseResume1() throws RequestAlreadyExistsException, RequestDoesNotExistException
RequestAlreadyExistsException
RequestDoesNotExistException
public void testPauseResume2() throws RequestAlreadyExistsException, RequestDoesNotExistException
RequestAlreadyExistsException
RequestDoesNotExistException
public void testDisposeOfForNonExistentRequestID() throws RequestAlreadyExistsException
RequestAlreadyExistsException
- If the request id already exists.public void testDisposeOfForLocalGuMs() throws RequestAlreadyExistsException, RequestDoesNotExistException
RequestAlreadyExistsException
- If the request id already exists.
RequestDoesNotExistException
public void testDisposeOfForCommunityGuMs() throws RequestAlreadyExistsException, RequestDoesNotExistException
RequestAlreadyExistsException
- If the request id already exists.
RequestDoesNotExistException
public void testGumWasLost() throws RequestAlreadyExistsException, RequestDoesNotExistException
lostGuM()
method called by local and
community requests tries to provide another gums.
RequestAlreadyExistsException
- If the request id already exists.
RequestDoesNotExistException
public void testGumWasLost2() throws java.rmi.RemoteException, RequestAlreadyExistsException
java.rmi.RemoteException
RequestAlreadyExistsException
public void testLocalGumIsDeadWithNotAllocatedGums()
public void testRedistributeGums1() throws RequestAlreadyExistsException, java.rmi.RemoteException
redistributeGuMsByConsumer()
test.
RequestAlreadyExistsException
- If the request id already exists.
java.rmi.RemoteException
public void testRedistributeGums2() throws RequestAlreadyExistsException, java.rmi.RemoteException
redistributeGuMsByConsumer()
atest.
RequestAlreadyExistsException
- If the request id already exists.
java.rmi.RemoteException
public void testRedistributeGums3() throws RequestAlreadyExistsException, java.rmi.RemoteException
redistributeGuMsByConsumer()
atest.
RequestAlreadyExistsException
- If the request id already exists.
java.rmi.RemoteException
public void testComputeCommunityRedistribution()
public void testRedistributeGums4() throws RequestAlreadyExistsException, java.lang.InterruptedException, java.rmi.RemoteException
RequestAlreadyExistsException
java.lang.InterruptedException
java.rmi.RemoteException
public void testRedistributeGums5() throws RequestAlreadyExistsException, java.lang.InterruptedException, java.rmi.RemoteException
RequestAlreadyExistsException
java.lang.InterruptedException
java.rmi.RemoteException
public void testGumsAreAllocatedAfterRequestExists() throws java.rmi.RemoteException, RequestAlreadyExistsException
java.rmi.RemoteException
RequestAlreadyExistsException
public void testUnwantedGumsAreNotAllocated() throws java.rmi.RemoteException, RequestAlreadyExistsException, RequestDoesNotExistException
java.rmi.RemoteException
RequestAlreadyExistsException
RequestDoesNotExistException
public void testUnwantedGumsWithDifferentRequest() throws java.rmi.RemoteException, RequestAlreadyExistsException, RequestDoesNotExistException
java.rmi.RemoteException
RequestAlreadyExistsException
RequestDoesNotExistException
public void testLocalGumIsDeadAndUnwantedGum() throws java.rmi.RemoteException, RequestAlreadyExistsException, RequestDoesNotExistException
java.rmi.RemoteException
RequestAlreadyExistsException
RequestDoesNotExistException
public void testRemoteUnwantedGum() throws java.rmi.RemoteException, RequestAlreadyExistsException, java.net.MalformedURLException, java.rmi.NotBoundException, RequestDoesNotExistException
java.rmi.RemoteException
RequestAlreadyExistsException
java.net.MalformedURLException
java.rmi.NotBoundException
RequestDoesNotExistException
public void testConsumerIsDead() throws java.rmi.RemoteException, RequestAlreadyExistsException
java.rmi.RemoteException
RequestAlreadyExistsException
public void testFinishRequest() throws java.rmi.RemoteException, RequestAlreadyExistsException
java.rmi.RemoteException
RequestAlreadyExistsException
public void testConsumerIsDeadWithRemoteGum() throws java.rmi.RemoteException, RequestAlreadyExistsException, java.net.MalformedURLException, java.rmi.NotBoundException, RequestDoesNotExistException
java.rmi.RemoteException
RequestAlreadyExistsException
java.net.MalformedURLException
java.rmi.NotBoundException
RequestDoesNotExistException
public void testConsumerIsDead3() throws java.rmi.RemoteException, RequestAlreadyExistsException, RequestDoesNotExistException, java.net.MalformedURLException, java.rmi.NotBoundException
java.rmi.RemoteException
RequestAlreadyExistsException
RequestDoesNotExistException
java.net.MalformedURLException
java.rmi.NotBoundException
public void testHereIsGumOfSameMachine() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |