edu.rice.cs.util.sexp
Class SExpParserTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
edu.rice.cs.drjava.DrJavaTestCase
edu.rice.cs.util.sexp.SExpParserTest
- All Implemented Interfaces:
- Test
public class SExpParserTest
- extends DrJavaTestCase
A JUnit test case class. Every method starting with the word "test" will be called when running
the test with JUnit.
| 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 |
SExpParserTest
public SExpParserTest()
_fillTempFile
private java.io.File _fillTempFile(java.lang.String fname,
java.lang.String text)
- Creates a temporary file and writes the given string to that file
- Parameters:
fname - the name of the file to createtext - the text to write to the file
- Returns:
- the File that was created
testDifferentInputs
public void testDifferentInputs()
throws SExpParseException,
java.io.IOException
- There are three ways to input the data to a parse.
this tests to make sure they all three return the same
thing.
- Throws:
SExpParseException
java.io.IOException
testParseMultiple
public void testParseMultiple()
throws SExpParseException
- Tests to make sure that multiple top-level s-exps
are parsed separately and in tact
- Throws:
SExpParseException
testTopLevel
public void testTopLevel()
throws SExpParseException
- Throws:
SExpParseException
testInvalidLowerLevel
public void testInvalidLowerLevel()
testCorrectParse
public void testCorrectParse()
throws SExpParseException
- Throws:
SExpParseException