mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
[tests] one more module-info parser test
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
PsiJavaFile:Packaged.java
|
||||
PsiPackageStatement:pkg
|
||||
PsiKeyword:package('package')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiJavaCodeReferenceElement:pkg
|
||||
PsiIdentifier:pkg('pkg')
|
||||
PsiReferenceParameterList
|
||||
<empty list>
|
||||
PsiJavaToken:SEMICOLON(';')
|
||||
PsiWhiteSpace('\n')
|
||||
PsiImportList
|
||||
<empty list>
|
||||
PsiJavaModule:M
|
||||
PsiModifierList:
|
||||
<empty list>
|
||||
PsiKeyword:module('module')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiJavaModuleReference
|
||||
PsiIdentifier:M('M')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiJavaToken:LBRACE('{')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiJavaToken:RBRACE('}')
|
||||
@@ -27,6 +27,8 @@ public class ModuleParserTest extends JavaParsingTestCase {
|
||||
public void testSimple1() { doParserTest("module a.b. /*here!*/ c { }"); }
|
||||
public void testSimple2() { doParserTest("/* comment */\nmodule X { }"); }
|
||||
|
||||
public void testPackaged() { doParserTest("package pkg;\nmodule M { }"); }
|
||||
|
||||
public void testModifierList0() { doParserTest("open module M { }"); }
|
||||
public void testModifierList1() { doParserTest("@Deprecated module M { }"); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user