edu.rice.cs.util.newjvm
Class IntegratedMasterSlaveTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by edu.rice.cs.drjava.DrJavaTestCase
              extended by edu.rice.cs.util.newjvm.IntegratedMasterSlaveTest
All Implemented Interfaces:
junit.framework.Test

public class IntegratedMasterSlaveTest
extends DrJavaTestCase

Test cases for the master/slave jvm control framework.

Version:
$Id: IntegratedMasterSlaveTest.java 5443 2011-08-17 04:58:50Z rcartwright $

Nested Class Summary
static class IntegratedMasterSlaveTest.CounterSlave
          The slave will exit with error codes in the case of problems, since there is no other thing it can do! 1MasterRemote class cast exception. 2Incorect value from getLetter 3RemoteException caught 4Timeout waiting for master JVM to call 5Interrupted while waiting for master JVM to call
private static class IntegratedMasterSlaveTest.TestMasterJVM
           
static interface IntegratedMasterSlaveTest.TestMasterRemote
           
static interface IntegratedMasterSlaveTest.TestSlaveRemote
           
 
Nested classes/interfaces inherited from class junit.framework.TestCase
junit.framework.TestCase.WrappedException
 
Field Summary
(package private)  IntegratedMasterSlaveTest.TestMasterJVM _testMaster
           
 
Constructor Summary
IntegratedMasterSlaveTest()
           
 
Method Summary
 void setUp()
          Set up for every test.
 void tearDown()
          Clean up for every test case.
 void testImmediateQuit_NOJOIN()
           
 void testItAll_NOJOIN()
           
 
Methods inherited from class edu.rice.cs.drjava.DrJavaTestCase
setConfigSetting, setDocText
 
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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_testMaster

volatile IntegratedMasterSlaveTest.TestMasterJVM _testMaster
Constructor Detail

IntegratedMasterSlaveTest

public IntegratedMasterSlaveTest()
Method Detail

setUp

public void setUp()
           throws Exception
Description copied from class: DrJavaTestCase
Set up for every test.

Overrides:
setUp in class DrJavaTestCase
Throws:
Exception - This convention is mandated by JUnit.TestCase, the superclass of this class.

tearDown

public void tearDown()
              throws Exception
Description copied from class: DrJavaTestCase
Clean up for every test case. Only used in unit tests. Added because Windows would intermittently throw a java.util.concurrent.RejectedExecutionException during cleanup.

Overrides:
tearDown in class DrJavaTestCase
Throws:
Exception

testItAll_NOJOIN

public void testItAll_NOJOIN()
                      throws Exception
Throws:
Exception

testImmediateQuit_NOJOIN

public void testImmediateQuit_NOJOIN()
                              throws Exception
Throws:
Exception