org.ourgrid.test.functionalunits
Class CorePeerUnitTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.ourgrid.test.functionalunits.CorePeerUnitTest
All Implemented Interfaces:
junit.framework.Test, FunctionalStressTest, SelectiveTest, StressTest

public class CorePeerUnitTest
extends junit.framework.TestCase
implements FunctionalStressTest

Test for CorePeerUnit.


Constructor Summary
CorePeerUnitTest()
           
 
Method Summary
protected  void tearDown()
           
 void testStopAStoppedCorePeer()
          Tests a stop execution with a not started peer.
 void testTestCorePeerExecution()
          Tests a normal corepeer execution:
1.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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

CorePeerUnitTest

public CorePeerUnitTest()
Method Detail

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

testStopAStoppedCorePeer

public void testStopAStoppedCorePeer()
                              throws java.lang.Exception
Tests a stop execution with a not started peer.

Throws:
java.lang.Exception - If any exeception is trhown.

testTestCorePeerExecution

public void testTestCorePeerExecution()
                               throws java.lang.Exception
Tests a normal corepeer execution:
1. Verify that the corepeer is down.
2. Starts a corepeer.
3. Verify that the corepeer is running.
4. Stops a corepeer.
5. Verify that the corepeer is down.

Throws:
java.lang.Exception - If any exeception is trhown.