1 package test.net.sourceforge.pmd.ast;
2
3 import junit.framework.TestCase;
4 import net.sourceforge.pmd.ast.ASTBlock;
5 import net.sourceforge.pmd.ast.ASTTryStatement;
6 import net.sourceforge.pmd.ast.ASTVariableDeclaratorId;
7
8 public class ASTVariableDeclaratorIdTest extends TestCase {
9
10 public void testIsExceptionBlockParameter() {
11 ASTTryStatement tryNode = new ASTTryStatement(1);
12 ASTBlock block = new ASTBlock(2);
13
14 ASTVariableDeclaratorId v = new ASTVariableDeclaratorId(3);
15 v.jjtSetParent(block);
16 block.jjtSetParent(tryNode);
17
18 assertTrue(v.isExceptionBlockParameter());
19 }
20 }
This page was automatically generated by Maven