[java] more module parser tests

This commit is contained in:
Roman Shevchenko
2016-07-13 18:06:07 +02:00
parent 565837190c
commit 506535c1a4
2 changed files with 14 additions and 0 deletions
@@ -0,0 +1,13 @@
PsiJavaFile:Name3.java
PsiJavaModule:.A
PsiKeyword:module('module')
PsiWhiteSpace(' ')
PsiJavaModuleReference
PsiErrorElement:Identifier expected
<empty list>
PsiJavaToken:DOT('.')
PsiIdentifier:A('A')
PsiWhiteSpace(' ')
PsiJavaToken:LBRACE('{')
PsiWhiteSpace(' ')
PsiJavaToken:RBRACE('}')
@@ -30,6 +30,7 @@ public class ModuleParserTest extends JavaParsingTestCase {
public void testName0() { doParserTest("module A. { }"); }
public void testName1() { doParserTest("module A..B { }"); }
public void testName2() { doParserTest("module A B { }"); }
public void testName3() { doParserTest("module .A { }"); }
public void testIncomplete0() { doParserTest("module"); }
public void testIncomplete1() { doParserTest("module X"); }