edu.rice.cs.drjava.model.repl.newjvm
Class NewJVMTest

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.drjava.model.repl.newjvm.NewJVMTest
All Implemented Interfaces:
Test

public final class NewJVMTest
extends DrJavaTestCase

Tests the functionality of the new JVM manager.

Version:
$Id: NewJVMTest.java 4691 2008-12-02 23:33:27Z dlsmith $

Field Summary
 
Fields inherited from class edu.rice.cs.drjava.DrJavaTestCase
TEST_DRJAVA_CONFIG_PROPERTY
 
Constructor Summary
NewJVMTest(String name)
           
 
Method Summary
protected  void setUp()
          Set up for every test.
static Test suite()
           
 void testPrintln()
           
 void testReturnConstant()
           
 void testSwitchActiveInterpreter()
          Ensure that MainJVM can correctly switch the active interpreter used by the interpreter JVM.
 void testSwitchToNonExistantInterpreter()
          Ensure that switching to a non-existant interpreter throws an Exception.
 void testThrowRuntimeException()
           
 void testToStringThrowsRuntimeException()
           
 void testWorksAfterRestartConstant()
           
 
Methods inherited from class edu.rice.cs.drjava.DrJavaTestCase
setConfigSetting, setDocText, tearDown
 
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
 

Constructor Detail

NewJVMTest

public NewJVMTest(String name)
Method Detail

setUp

protected 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.

suite

public static Test suite()

testPrintln

public void testPrintln()
                 throws Throwable
Throws:
Throwable

testReturnConstant

public void testReturnConstant()
                        throws Throwable
Throws:
Throwable

testWorksAfterRestartConstant

public void testWorksAfterRestartConstant()
                                   throws Throwable
Throws:
Throwable

testThrowRuntimeException

public void testThrowRuntimeException()
                               throws Throwable
Throws:
Throwable

testToStringThrowsRuntimeException

public void testToStringThrowsRuntimeException()
                                        throws Throwable
Throws:
Throwable

testSwitchToNonExistantInterpreter

public void testSwitchToNonExistantInterpreter()
Ensure that switching to a non-existant interpreter throws an Exception.


testSwitchActiveInterpreter

public void testSwitchActiveInterpreter()
                                 throws InterruptedException
Ensure that MainJVM can correctly switch the active interpreter used by the interpreter JVM.

Throws:
InterruptedException