public class ParserTest extends ActiveAndroidTestCase
| Constructor and Description |
|---|
ParserTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testBlockAndLineComment()
Should ignore a line comment token inside a block comment.
|
void |
testBlockComment()
Should be able to handle a block comment.
|
void |
testBlockCommentWithSemicolon()
Should be able to handle a block comment that contains a semicolon.
|
void |
testBlockCommentWithString()
Should be able to handle a block comment that contains string tokens.
|
void |
testComplex()
Should be able to handle a script that contains anything nasty I can thing of right now.
|
void |
testInvalidBlockComment()
Should be able to parse a script that incorrectly closes a block comment twice.
|
void |
testLineAndBlockEndComment()
Should ignore a block comment end token inside a line comment.
|
void |
testLineComment()
Should be able to parse a multi-line statement that has an embedded line comment.
|
void |
testLineCommentWithSemicolon()
Should be able to handle a line comment that contains a semicolon.
|
void |
testLineCommentWithString()
Should be able to handle a line comment that contains string tokens.
|
void |
testStringWithBlockComment()
Should ignore block comment tokens inside strings.
|
void |
testStringWithLineComment()
Should ignore a line comment token inside a string.
|
void |
testStringWithSemicolon()
Should ignore semicolons inside strings.
|
void |
testStringWithWhitespace()
Should not clobber whitespace in strings.
|
void |
testTwoStatements()
Should be able to parse a script with two multi-line statments, even if the last statement
is not terminated by a semicolon.
|
void |
testWhitespace()
Should reduce unnecessary whitespace.
|
assertArrayEquals, setUp, tearDowncreateApplication, getApplication, getSystemContext, terminateApplication, testApplicationTestCaseSetUpProperlyassertActivityRequiresPermission, assertReadingContentUriRequiresPermission, assertWritingContentUriRequiresPermission, getContext, scrubClass, setContext, testAndroidTestCaseSetupProperlycountTestCases, createResult, getName, run, run, runBare, runTest, setName, toStringassertEquals, 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, formatpublic void testTwoStatements()
throws IOException
IOExceptionpublic void testWhitespace()
throws IOException
IOExceptionpublic void testLineComment()
throws IOException
IOExceptionpublic void testLineCommentWithString()
throws IOException
IOExceptionpublic void testLineCommentWithSemicolon()
throws IOException
IOExceptionpublic void testLineAndBlockEndComment()
throws IOException
IOExceptionpublic void testBlockComment()
throws IOException
IOExceptionpublic void testBlockCommentWithString()
throws IOException
IOExceptionpublic void testBlockCommentWithSemicolon()
throws IOException
IOExceptionpublic void testBlockAndLineComment()
throws IOException
IOExceptionpublic void testInvalidBlockComment()
throws IOException
IOExceptionpublic void testStringWithLineComment()
throws IOException
IOExceptionpublic void testStringWithBlockComment()
throws IOException
IOExceptionpublic void testStringWithSemicolon()
throws IOException
IOExceptionpublic void testStringWithWhitespace()
throws IOException
IOExceptionpublic void testComplex()
throws IOException
IOExceptionCopyright © 2014. All rights reserved.