|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
edu.rice.cs.drjava.DrJavaTestCase
edu.rice.cs.util.sexp.SExpParserTest
public class SExpParserTest
A JUnit test case class. Every method starting with the word "test" will be called when running the test with JUnit.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class junit.framework.TestCase |
|---|
junit.framework.TestCase.WrappedException |
| Constructor Summary | |
|---|---|
SExpParserTest()
|
|
| Method Summary | |
|---|---|
private File |
_fillTempFile(String fname,
String text)
Creates a temporary file and writes the given string to that file |
void |
testCorrectParse()
|
void |
testDifferentInputs()
There are three ways to input the data to a parse. |
void |
testInvalidLowerLevel()
|
void |
testParseMultiple()
Tests to make sure that multiple top-level s-exps are parsed separately and in tact |
void |
testTopLevel()
|
| 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 |
| Constructor Detail |
|---|
public SExpParserTest()
| Method Detail |
|---|
private File _fillTempFile(String fname,
String text)
fname - the name of the file to createtext - the text to write to the file
public void testDifferentInputs()
throws SExpParseException,
IOException
SExpParseException
IOException
public void testParseMultiple()
throws SExpParseException
SExpParseException
public void testTopLevel()
throws SExpParseException
SExpParseExceptionpublic void testInvalidLowerLevel()
public void testCorrectParse()
throws SExpParseException
SExpParseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||