📄 astimportdeclarationtest.java
字号:
/** * BSD-style license; for more info see http://pmd.sourceforge.net/license.html*/package test.net.sourceforge.pmd.ast;import junit.framework.TestCase;import net.sourceforge.pmd.ast.ASTImportDeclaration;import net.sourceforge.pmd.ast.ASTName;public class ASTImportDeclarationTest extends TestCase { public void testBasic() { ASTImportDeclaration i = new ASTImportDeclaration(1); assertTrue(!i.isImportOnDemand()); i.setImportOnDemand(); assertTrue(i.isImportOnDemand()); } public void testGetImportedNameNode() { ASTImportDeclaration i = new ASTImportDeclaration(1); ASTName name = new ASTName(2); i.jjtAddChild(name, 0); assertEquals(name, i.getImportedNameNode()); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -