koala.dynamicjava.parser.wrapper
Class ParserTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
koala.dynamicjava.parser.wrapper.ParserTest
- All Implemented Interfaces:
- Test
public class ParserTest
- extends TestCase
Tests the interactions parser.
- Version:
- $Id: ParserTest.java 5175 2010-01-20 08:46:32Z mgricken $
|
Constructor Summary |
ParserTest(java.lang.String name)
|
|
Method Summary |
protected void |
setUp()
|
void |
testAnnotationValueAnnotation()
|
void |
testAnonymousInnerClass()
|
void |
testArrayAccess()
|
void |
testArrayAllocationExpression()
|
void |
testArrayAllocationExpression2()
|
void |
testArrayValueAnnotation()
|
void |
testArrayValueWithCommaAnnotation()
|
void |
testBinaryOpExpression()
|
void |
testBlock()
|
void |
testBlockWithEmptyStatements()
|
void |
testBreakStatement()
|
void |
testCastExpression()
|
void |
testClassDeclaration()
|
void |
testClassImportDeclaration()
|
void |
testCompoundAssignment()
|
void |
testConditionalExpression()
|
void |
testContinueStatement()
|
void |
testDoStatement()
|
void |
testDotClass()
|
void |
testDotThis()
|
void |
testEmptyArrayValueAnnotation()
|
void |
testEmptyStatement()
|
void |
testForStatement()
|
void |
testIfStatement()
|
void |
testIfStatement2()
|
void |
testIfStatement3()
|
void |
testImplicitMethodInvocation()
|
void |
testInnerInstanceAllocationExpression()
|
void |
testInstanceAllocationExpression()
|
void |
testInstanceOfExpression()
|
void |
testIntegerLiteral()
|
void |
testInterfaceDeclaration()
|
void |
testLabeledStatement()
|
void |
testLocalVariableDeclarationList()
|
void |
testMarkerAnnotation()
|
void |
testMemberAccess()
|
void |
testMethodDeclaration()
|
void |
testMethodInvocation()
|
void |
testName()
|
void |
testNormalAnnotation()
|
void |
testNormalAssignment()
|
void |
testPackageDeclaration()
|
void |
testPackageImportDeclaration()
|
void |
testPostDecrementExpression()
|
void |
testPreIncrementExpression()
|
void |
testQualifiedCastExpression()
|
void |
testQualifiedNameClass()
|
void |
testQualifiedNameClassField()
|
void |
testQualifiedNameFieldAccess()
|
void |
testReturnStatement()
|
void |
testSingleValueAnnotation()
|
void |
testStatementExpression()
|
void |
testStatementExpression2()
|
void |
testStaticImportDeclaration()
|
void |
testStringLiteral()
|
void |
testSuperMemberAccess()
|
void |
testSwitchStatement()
|
void |
testSynchronizedStatement()
|
void |
testThrowStatement()
|
void |
testTryStatementWithCatchBlock()
|
void |
testWhileStatement()
|
void |
verifyError(java.lang.String inputString,
java.util.List<Node> expectedAST,
int startLine,
int startColumn,
int endLine,
int endColumn)
|
void |
verifyErrorLocation(ParseException ex,
int startLine,
int startColumn,
int endLine,
int endColumn)
|
static void |
verifyExprOutput(java.lang.String inputString,
Expression expectedAST)
|
static void |
verifyOutput(java.lang.String inputString,
java.util.List<Node> expectedAST)
|
| 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ParserTest
public ParserTest(java.lang.String name)
verifyOutput
public static void verifyOutput(java.lang.String inputString,
java.util.List<Node> expectedAST)
throws ParseException
- Throws:
ParseException
verifyExprOutput
public static void verifyExprOutput(java.lang.String inputString,
Expression expectedAST)
throws ParseException
- Throws:
ParseException
verifyError
public void verifyError(java.lang.String inputString,
java.util.List<Node> expectedAST,
int startLine,
int startColumn,
int endLine,
int endColumn)
verifyErrorLocation
public void verifyErrorLocation(ParseException ex,
int startLine,
int startColumn,
int endLine,
int endColumn)
setUp
protected void setUp()
- Overrides:
setUp in class TestCase
testPackageDeclaration
public void testPackageDeclaration()
throws ParseException
- Throws:
ParseException
testPackageImportDeclaration
public void testPackageImportDeclaration()
throws ParseException
- Throws:
ParseException
testStaticImportDeclaration
public void testStaticImportDeclaration()
throws ParseException
- Throws:
ParseException
testClassImportDeclaration
public void testClassImportDeclaration()
throws ParseException
- Throws:
ParseException
testClassDeclaration
public void testClassDeclaration()
throws ParseException
- Throws:
ParseException
testInterfaceDeclaration
public void testInterfaceDeclaration()
throws ParseException
- Throws:
ParseException
testMethodDeclaration
public void testMethodDeclaration()
throws ParseException
- Throws:
ParseException
testLocalVariableDeclarationList
public void testLocalVariableDeclarationList()
throws ParseException
- Throws:
ParseException
testMarkerAnnotation
public void testMarkerAnnotation()
throws ParseException
- Throws:
ParseException
testSingleValueAnnotation
public void testSingleValueAnnotation()
throws ParseException
- Throws:
ParseException
testArrayValueAnnotation
public void testArrayValueAnnotation()
throws ParseException
- Throws:
ParseException
testArrayValueWithCommaAnnotation
public void testArrayValueWithCommaAnnotation()
throws ParseException
- Throws:
ParseException
testEmptyArrayValueAnnotation
public void testEmptyArrayValueAnnotation()
throws ParseException
- Throws:
ParseException
testAnnotationValueAnnotation
public void testAnnotationValueAnnotation()
throws ParseException
- Throws:
ParseException
testNormalAnnotation
public void testNormalAnnotation()
throws ParseException
- Throws:
ParseException
testLabeledStatement
public void testLabeledStatement()
throws ParseException
- Throws:
ParseException
testBlock
public void testBlock()
throws ParseException
- Throws:
ParseException
testBlockWithEmptyStatements
public void testBlockWithEmptyStatements()
throws ParseException
- Throws:
ParseException
testEmptyStatement
public void testEmptyStatement()
throws ParseException
- Throws:
ParseException
testStatementExpression
public void testStatementExpression()
throws ParseException
- Throws:
ParseException
testStatementExpression2
public void testStatementExpression2()
throws ParseException
- Throws:
ParseException
testSwitchStatement
public void testSwitchStatement()
throws ParseException
- Throws:
ParseException
testIfStatement
public void testIfStatement()
throws ParseException
- Throws:
ParseException
testIfStatement2
public void testIfStatement2()
throws ParseException
- Throws:
ParseException
testIfStatement3
public void testIfStatement3()
throws ParseException
- Throws:
ParseException
testWhileStatement
public void testWhileStatement()
throws ParseException
- Throws:
ParseException
testDoStatement
public void testDoStatement()
throws ParseException
- Throws:
ParseException
testForStatement
public void testForStatement()
throws ParseException
- Throws:
ParseException
testBreakStatement
public void testBreakStatement()
throws ParseException
- Throws:
ParseException
testContinueStatement
public void testContinueStatement()
throws ParseException
- Throws:
ParseException
testReturnStatement
public void testReturnStatement()
throws ParseException
- Throws:
ParseException
testThrowStatement
public void testThrowStatement()
throws ParseException
- Throws:
ParseException
testSynchronizedStatement
public void testSynchronizedStatement()
throws ParseException
- Throws:
ParseException
testTryStatementWithCatchBlock
public void testTryStatementWithCatchBlock()
throws ParseException
- Throws:
ParseException
testConditionalExpression
public void testConditionalExpression()
throws ParseException
- Throws:
ParseException
testInstanceOfExpression
public void testInstanceOfExpression()
throws ParseException
- Throws:
ParseException
testCastExpression
public void testCastExpression()
throws ParseException
- Throws:
ParseException
testQualifiedCastExpression
public void testQualifiedCastExpression()
throws ParseException
- Throws:
ParseException
testBinaryOpExpression
public void testBinaryOpExpression()
throws ParseException
- Throws:
ParseException
testNormalAssignment
public void testNormalAssignment()
throws ParseException
- Throws:
ParseException
testCompoundAssignment
public void testCompoundAssignment()
throws ParseException
- Throws:
ParseException
testPreIncrementExpression
public void testPreIncrementExpression()
throws ParseException
- Throws:
ParseException
testPostDecrementExpression
public void testPostDecrementExpression()
throws ParseException
- Throws:
ParseException
testIntegerLiteral
public void testIntegerLiteral()
throws ParseException
- Throws:
ParseException
testStringLiteral
public void testStringLiteral()
throws ParseException
- Throws:
ParseException
testArrayAllocationExpression
public void testArrayAllocationExpression()
throws ParseException
- Throws:
ParseException
testArrayAllocationExpression2
public void testArrayAllocationExpression2()
throws ParseException
- Throws:
ParseException
testInstanceAllocationExpression
public void testInstanceAllocationExpression()
throws ParseException
- Throws:
ParseException
testInnerInstanceAllocationExpression
public void testInnerInstanceAllocationExpression()
throws ParseException
- Throws:
ParseException
testAnonymousInnerClass
public void testAnonymousInnerClass()
throws ParseException
- Throws:
ParseException
testName
public void testName()
throws ParseException
- Throws:
ParseException
testQualifiedNameClassField
public void testQualifiedNameClassField()
throws ParseException
- Throws:
ParseException
testQualifiedNameClass
public void testQualifiedNameClass()
throws ParseException
- Throws:
ParseException
testQualifiedNameFieldAccess
public void testQualifiedNameFieldAccess()
throws ParseException
- Throws:
ParseException
testDotThis
public void testDotThis()
throws ParseException
- Throws:
ParseException
testDotClass
public void testDotClass()
throws ParseException
- Throws:
ParseException
testArrayAccess
public void testArrayAccess()
throws ParseException
- Throws:
ParseException
testMemberAccess
public void testMemberAccess()
throws ParseException
- Throws:
ParseException
testSuperMemberAccess
public void testSuperMemberAccess()
throws ParseException
- Throws:
ParseException
testMethodInvocation
public void testMethodInvocation()
throws ParseException
- Throws:
ParseException
testImplicitMethodInvocation
public void testImplicitMethodInvocation()
throws ParseException
- Throws:
ParseException