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 5181 2010-02-24 16:53:27Z mgricken $

Nested Class Summary
private static class NewJVMTest.TestJVMExtension
           
 
Nested classes/interfaces inherited from class junit.framework.TestCase
TestCase.WrappedException
 
Field Summary
private static NewJVMTest.TestJVMExtension _jvm
           
private static Log _log
           
 
Constructor Summary
NewJVMTest(String name)
           
 
Method Summary
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, setUp, 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
 

Field Detail

_log

private static final Log _log

_jvm

private static volatile NewJVMTest.TestJVMExtension _jvm
Constructor Detail

NewJVMTest

public NewJVMTest(String name)
Method Detail

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