|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.ourgrid.mygrid.scheduler.test.WorkqueueTest
public class WorkqueueTest
Constructor Summary | |
---|---|
WorkqueueTest(java.lang.String name)
Constructor for WorkqueueTest. |
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 |
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 |
Methods inherited from interface junit.framework.Test |
---|
countTestCases, run |
Constructor Detail |
---|
public WorkqueueTest(java.lang.String name) throws java.lang.SecurityException
name
-
java.lang.SecurityException
Method Detail |
---|
protected void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
protected void tearDown() throws java.lang.Exception
tearDown
in class junit.framework.TestCase
java.lang.Exception
public void testAddJob() throws java.lang.Exception
java.lang.Exception
- when a called method throws an exceptionpublic void testGetNumberOfGuMsNeeded() throws TaskSpecificationException, JobSpecificationException
TaskSpecificationException
JobSpecificationException
public void testScheduleOneJob() throws java.lang.Exception
java.lang.Exception
public void testScheduleThreeJobs() throws java.lang.Exception
java.lang.Exception
public void testScheduleOneJobWithReplication() throws java.lang.Exception
java.lang.Exception
public void testScheduleThreeJobsWithReplication() throws java.lang.Exception
java.lang.Exception
public void testScheduleThreeJobsWithReplicationIntercalated() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |