org.ourgrid.peer.manager.allocation
Class AllocationManagerTest

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

public class AllocationManagerTest
extends junit.framework.TestCase
implements PeerFastTest


Constructor Summary
AllocationManagerTest()
           
 
Method Summary
protected  AllocationManager getAllocationManager()
           
protected  void setUp()
           
protected  void tearDown()
           
 void testAllocateAndDeallocateCommunityGuM()
          Tests the allocations and deallocations to community gums.
 void testAllocateAndDeallocateLocalGuM()
          Tests the allocations and deallocations to local gums.
 void testExists()
           
 void testReceivingAndDisposing()
          Tests the getAllocationManager() receive and dispose functions.
 
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

AllocationManagerTest

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

testAllocateAndDeallocateLocalGuM

public void testAllocateAndDeallocateLocalGuM()
Tests the allocations and deallocations to local gums. It allocates the gum to local and for community request.


testAllocateAndDeallocateCommunityGuM

public void testAllocateAndDeallocateCommunityGuM()
Tests the allocations and deallocations to community gums. It allocates the gum to local request. ATTENTION: THIS TEST DO NOT PERMIT ALLOCATE A GUM FROM COMMUNITY FOR COMMUNITY.


testReceivingAndDisposing

public void testReceivingAndDisposing()
Tests the getAllocationManager() receive and dispose functions.


testExists

public void testExists()
                throws java.lang.Exception
Throws:
java.lang.Exception

getAllocationManager

protected AllocationManager getAllocationManager()