org.ourgrid.mygrid.scheduler.test
Class StorageAffinityTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.ourgrid.mygrid.scheduler.test.StorageAffinityTest
All Implemented Interfaces:
junit.framework.Test, FastTest, PreCommitTest, SchedulerFastTest, SchedulerPreCommitTest, SelectiveTest, StressTest

public class StorageAffinityTest
extends junit.framework.TestCase
implements SchedulerFastTest

The test for StorageAffinity.


Constructor Summary
StorageAffinityTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testGetAffinityWithOneTaskAndOneGuM()
          Tests the getAffinity() method with only one task and one gum.
 void testScheduleWithOneTaskAndOneGuM()
          Tests the schedule() method with only one task and one gum.
 void testScheduleWithThreeTasksAndFourGuMs()
          Tests the schedule() method with three task and four gums.
 
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

StorageAffinityTest

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

testGetAffinityWithOneTaskAndOneGuM

public void testGetAffinityWithOneTaskAndOneGuM()
                                         throws java.lang.Exception
Tests the getAffinity() method with only one task and one gum.

Throws:
java.lang.Exception - If something wrong happens.

testScheduleWithOneTaskAndOneGuM

public void testScheduleWithOneTaskAndOneGuM()
                                      throws java.lang.Exception
Tests the schedule() method with only one task and one gum.

Throws:
java.lang.Exception - If something wrong happens.

testScheduleWithThreeTasksAndFourGuMs

public void testScheduleWithThreeTasksAndFourGuMs()
                                           throws java.lang.Exception
Tests the schedule() method with three task and four gums.

Throws:
java.lang.Exception - If something wrong happens.