org.ourgrid.mygrid.scheduler.test
Class TaskTest

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

public class TaskTest
extends junit.framework.TestCase
implements SchedulerFastTest


Constructor Summary
TaskTest(java.lang.String name)
          Constructor for TaskTest.
 
Method Summary
static void main(java.lang.String[] args)
           
protected  void setUp()
           
protected  void tearDown()
           
 void testCompareTo()
           
 void testGetState()
          Tests if, according to the Replicas states, a task is in the correct state.
 void testReplicaAborted()
           
 void testReplicaCanceled()
           
 void testReplicaFailed()
           
 void testReplicaFinished()
           
 
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

TaskTest

public TaskTest(java.lang.String name)
Constructor for TaskTest.

Parameters:
name - Test name
Method Detail

testReplicaFinished

public void testReplicaFinished()
                         throws TaskSpecificationException
Throws:
TaskSpecificationException

testReplicaFailed

public void testReplicaFailed()
                       throws TaskSpecificationException
Throws:
TaskSpecificationException

testReplicaCanceled

public void testReplicaCanceled()
                         throws TaskSpecificationException
Throws:
TaskSpecificationException

testReplicaAborted

public void testReplicaAborted()
                        throws TaskSpecificationException
Throws:
TaskSpecificationException

testGetState

public void testGetState()
                  throws TaskSpecificationException
Tests if, according to the Replicas states, a task is in the correct state. It tests a several combination of Tasks states.

Throws:
TaskSpecificationException

testCompareTo

public void testCompareTo()

main

public static void main(java.lang.String[] args)
                 throws TaskSpecificationException
Throws:
TaskSpecificationException

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