org.ourgrid.mygrid.scheduler.test
Class SchedulingHeuristicTest

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

public class SchedulingHeuristicTest
extends junit.framework.TestCase
implements SchedulerFastTest

This class will test features that are independent of the scheduling heuristic implementation. Basically, the tests must assure that the abstract methods of EBAbstractSchedulingHeuristic are working.


Constructor Summary
SchedulingHeuristicTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testBlacklist1()
           
 void testBlacklist2()
           
 void testDispose()
           
 void testDispose2()
           
 void testDispose3()
           
 void testGumCouldNotCreatePlaypen()
          This test verifies if the treatment of a fail occurred at playpen creation is the same as an execution fail occurred during getResult phase.
 void testGumCouldNotCreateStorage()
          This test verifies if the treatement of a fail ocurred at storage creation is the same as an execution fail ocurred during getResult phase.
 void testPauseResume()
           
 void testPauseResume2()
           
 void testPauseResume3()
           
 void testRunningFailTask1()
           
 void testRunningFailTask2()
           
 
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

SchedulingHeuristicTest

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

testRunningFailTask1

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

testRunningFailTask2

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

testBlacklist2

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

testBlacklist1

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

testGumCouldNotCreatePlaypen

public void testGumCouldNotCreatePlaypen()
                                  throws java.lang.Exception
This test verifies if the treatment of a fail occurred at playpen creation is the same as an execution fail occurred during getResult phase.

Throws:
java.lang.Exception

testGumCouldNotCreateStorage

public void testGumCouldNotCreateStorage()
                                  throws java.lang.Exception
This test verifies if the treatement of a fail ocurred at storage creation is the same as an execution fail ocurred during getResult phase.

Throws:
java.lang.Exception

testDispose

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

testDispose2

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

testDispose3

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

testPauseResume

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

testPauseResume2

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

testPauseResume3

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