org.ourgrid.mygrid.scheduler.test
Class WorkqueueStressTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.ourgrid.mygrid.scheduler.test.WorkqueueStressTest
All Implemented Interfaces:
junit.framework.Test, SelectiveTest, StressTest

public class WorkqueueStressTest
extends junit.framework.TestCase
implements StressTest


Constructor Summary
WorkqueueStressTest(java.lang.String name)
          Constructor for WorkqueueStressTest.
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testAddJob()
          Creates a handful of jobs, submits them to workqueue, and check if the jobs are there.
 void testGetNumberOfGuMsNeeded()
           
 void testOtherScheduleThreeJobsWithReplicationIntercalated()
          This test verifies if the heuristic scheduled the replicas in the correct order.
 void testScheduleOneJob()
           
 void testScheduleOneJobWithReplication()
           
 void testScheduleThreeJobs()
           
 void testScheduleThreeJobsWithReplication()
           
 void testScheduleThreeJobsWithReplicationIntercalated()
          This test verifies if the heuristic scheduled the replicas in the correct order.
 
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
 

Constructor Detail

WorkqueueStressTest

public WorkqueueStressTest(java.lang.String name)
                    throws java.lang.SecurityException
Constructor for WorkqueueStressTest.

Parameters:
name -
Throws:
java.lang.SecurityException
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

testAddJob

public void testAddJob()
                throws java.lang.Exception
Creates a handful of jobs, submits them to workqueue, and check if the jobs are there.

Throws:
java.lang.Exception - when a called method throws an exception

testGetNumberOfGuMsNeeded

public void testGetNumberOfGuMsNeeded()
                               throws java.rmi.RemoteException,
                                      TaskSpecificationException,
                                      JobSpecificationException
Throws:
java.rmi.RemoteException
TaskSpecificationException
JobSpecificationException

testScheduleOneJob

public void testScheduleOneJob()
                        throws ConfigException,
                               java.rmi.RemoteException,
                               TaskSpecificationException,
                               JobSpecificationException
Throws:
ConfigException
java.rmi.RemoteException
TaskSpecificationException
JobSpecificationException

testScheduleThreeJobs

public void testScheduleThreeJobs()
                           throws ConfigException,
                                  java.rmi.RemoteException,
                                  TaskSpecificationException,
                                  JobSpecificationException
Throws:
ConfigException
java.rmi.RemoteException
TaskSpecificationException
JobSpecificationException

testScheduleOneJobWithReplication

public void testScheduleOneJobWithReplication()
                                       throws ConfigException,
                                              java.rmi.RemoteException,
                                              TaskSpecificationException,
                                              JobSpecificationException
Throws:
ConfigException
java.rmi.RemoteException
TaskSpecificationException
JobSpecificationException

testScheduleThreeJobsWithReplication

public void testScheduleThreeJobsWithReplication()
                                          throws ConfigException,
                                                 java.rmi.RemoteException,
                                                 TaskSpecificationException,
                                                 JobSpecificationException
Throws:
ConfigException
java.rmi.RemoteException
TaskSpecificationException
JobSpecificationException

testScheduleThreeJobsWithReplicationIntercalated

public void testScheduleThreeJobsWithReplicationIntercalated()
                                                      throws ConfigException,
                                                             java.rmi.RemoteException,
                                                             TaskSpecificationException,
                                                             JobSpecificationException
This test verifies if the heuristic scheduled the replicas in the correct order. These test simulates job adding during other jobs execution.

Throws:
java.rmi.RemoteException
TaskSpecificationException
JobSpecificationException
ConfigException

testOtherScheduleThreeJobsWithReplicationIntercalated

public void testOtherScheduleThreeJobsWithReplicationIntercalated()
                                                           throws ConfigException,
                                                                  java.rmi.RemoteException,
                                                                  TaskSpecificationException,
                                                                  JobSpecificationException
This test verifies if the heuristic scheduled the replicas in the correct order. These test simulates job adding during other jobs execution.

Throws:
TaskSpecificationException
JobSpecificationException
java.rmi.RemoteException
ConfigException