Semicolon Between Imports input moved to resources-noncompilable, created UT for this case as there wasn't one #388

This commit is contained in:
alexkravin 2014-12-09 15:05:40 +04:00 committed by Roman Ivanov
parent 608e5838ea
commit 8d43331932
2 changed files with 15 additions and 0 deletions

View File

@ -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);
}
}