Semicolon Between Imports input moved to resources-noncompilable, created UT for this case as there wasn't one #388
This commit is contained in:
parent
608e5838ea
commit
8d43331932
|
|
@ -3,7 +3,10 @@ package com.puppycrawl.tools.checkstyle.grammars;
|
|||
import com.puppycrawl.tools.checkstyle.BaseCheckTestSupport;
|
||||
import com.puppycrawl.tools.checkstyle.DefaultConfiguration;
|
||||
import com.puppycrawl.tools.checkstyle.checks.naming.MemberNameCheck;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
|
|
@ -23,4 +26,16 @@ public class GeneratedJava14LexerTest
|
|||
};
|
||||
verify(checkConfig, getPath("grammars/InputGrammar.java"), expected);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSemicolonBetweenImports() throws IOException, Exception
|
||||
{
|
||||
final DefaultConfiguration checkConfig =
|
||||
createCheckConfig(MemberNameCheck.class);
|
||||
final String[] expected = {
|
||||
|
||||
};
|
||||
verify(checkConfig, new File("src/test/resources-noncompilable/com/puppycrawl/tools/"
|
||||
+ "checkstyle/grammars/SemicolonBetweenImports.java").getCanonicalPath(), expected);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue