edu.rice.cs.drjava.model.repl
Class JavaInterpreterTest
java.lang.Object
|
+--junit.framework.Assert
|
+--junit.framework.TestCase
|
+--edu.rice.cs.drjava.model.repl.JavaInterpreterTest
- All Implemented Interfaces:
- Test
- public class JavaInterpreterTest
- extends TestCase
Tests the functionality of the repl interpreter.
- Version:
- $Id: JavaInterpreterTest.java,v 1.15 2002/09/04 21:02:17 csreis Exp $
Method Summary |
protected void |
setUp()
put your documentation comment here |
static Test |
suite()
put your documentation comment here |
void |
testBooleanOps()
Test simple operations with Booleans |
void |
testCharacterOps()
put your documentation comment here |
void |
testConstants()
Make sure interpreting simple constants works. |
void |
testDoubleOps()
put your documentation comment here |
private void |
tester(Pair[] cases)
put your documentation comment here |
void |
testIntegerOps()
put your documentation comment here |
void |
testSemicolon()
put your documentation comment here |
void |
testStringOps()
put your documentation comment here |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, tearDown, toString |
Methods inherited from class junit.framework.Assert |
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
_interpreter
private JavaInterpreter _interpreter
testValue
public static boolean testValue
JavaInterpreterTest
public JavaInterpreterTest(String name)
- put your documentation comment here
- Parameters:
String
- name
setUp
protected void setUp()
- put your documentation comment here
- Overrides:
setUp
in class TestCase
suite
public static Test suite()
- put your documentation comment here
- Returns:
-
tester
private void tester(Pair[] cases)
throws ExceptionReturnedException
- put your documentation comment here
- Parameters:
cases
-
testConstants
public void testConstants()
throws ExceptionReturnedException
- Make sure interpreting simple constants works.
testBooleanOps
public void testBooleanOps()
throws ExceptionReturnedException
- Test simple operations with Booleans
testIntegerOps
public void testIntegerOps()
throws ExceptionReturnedException
- put your documentation comment here
testDoubleOps
public void testDoubleOps()
throws ExceptionReturnedException
- put your documentation comment here
testStringOps
public void testStringOps()
throws ExceptionReturnedException
- put your documentation comment here
testCharacterOps
public void testCharacterOps()
throws ExceptionReturnedException
- put your documentation comment here
testSemicolon
public void testSemicolon()
throws ExceptionReturnedException
- put your documentation comment here