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