org.ourgrid.mygrid.scheduler.test
Class EBSchedulerFacadeTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.ourgrid.mygrid.scheduler.test.EBSchedulerFacadeTest
- All Implemented Interfaces:
- junit.framework.Test, FastTest, PreCommitTest, SchedulerFastTest, SchedulerPreCommitTest, SelectiveTest, StressTest
public class EBSchedulerFacadeTest
- extends junit.framework.TestCase
- implements SchedulerFastTest
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 |
EBSchedulerFacadeTest
public EBSchedulerFacadeTest(java.lang.String name)
- Parameters:
name
- Test name
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
testPersistJobId
public void testPersistJobId()
throws java.lang.Exception
- Throws:
java.lang.Exception
testJobIdWithoutPersistence
public void testJobIdWithoutPersistence()
throws java.lang.Exception
- Throws:
java.lang.Exception
testJobList
public void testJobList()
- This tests requests the list of jobs from the scheduler. It must be empty
because no job was added.
testWaitForJobWithCancelJob
public void testWaitForJobWithCancelJob()
throws java.rmi.RemoteException,
TaskSpecificationException,
JobSpecificationException
- This test adds one job and requests for wait on this job. After that, the
job is canceled and a call is made to block until the job is finished or
canceled (
responseQueue.blockingRemove()
). This call
should not block because the job was canceled.
- Throws:
java.rmi.RemoteException
TaskSpecificationException
JobSpecificationException
testWaitForJobWithRunningTasks
public void testWaitForJobWithRunningTasks()
throws java.rmi.RemoteException,
TaskSpecificationException,
JobSpecificationException
- Throws:
java.rmi.RemoteException
TaskSpecificationException
JobSpecificationException
testAddJob
public void testAddJob()
throws TaskSpecificationException,
JobSpecificationException
- Throws:
TaskSpecificationException
JobSpecificationException
testAdd3Jobs
public void testAdd3Jobs()
throws TaskSpecificationException,
JobSpecificationException
- Throws:
TaskSpecificationException
JobSpecificationException
testAddJobWithoutRemote
public void testAddJobWithoutRemote()
- This test is intended to be a catcher of BID #121.
testHereIsGuMGetAllGuMs
public void testHereIsGuMGetAllGuMs()
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
testReplicaFinished
public void testReplicaFinished()
throws java.rmi.RemoteException,
TaskSpecificationException,
JobSpecificationException
- Throws:
java.rmi.RemoteException
TaskSpecificationException
JobSpecificationException
testReplicaFailed
public void testReplicaFailed()
throws java.lang.Exception
- Throws:
java.lang.Exception
testReplicaCanceled
public void testReplicaCanceled()
throws java.rmi.RemoteException,
TaskSpecificationException,
JobSpecificationException
- Throws:
java.rmi.RemoteException
TaskSpecificationException
JobSpecificationException
testGetGuMs
public void testGetGuMs()
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
testSetAndGetGuMPs
public void testSetAndGetGuMPs()
testCancelJob
public void testCancelJob()
throws java.rmi.RemoteException,
TaskSpecificationException,
JobSpecificationException
- Throws:
java.rmi.RemoteException
TaskSpecificationException
JobSpecificationException
testShutdown
public void testShutdown()
throws java.lang.Exception
- Throws:
java.lang.Exception
testGumIsDead
public void testGumIsDead()
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException