1 package com.puppycrawl.tools.checkstyle.grammars; 2 3 import java.io.IOException ; 4 5 import com.puppycrawl.tools.checkstyle.BaseCheckTestCase; 6 import com.puppycrawl.tools.checkstyle.DefaultConfiguration; 7 import com.puppycrawl.tools.checkstyle.checks.naming.MemberNameCheck; 8 9 13 public class GeneratedJava14LexerTest 14 extends BaseCheckTestCase 15 { 16 public void testUnexpectedChar() throws IOException , Exception 17 { 18 final DefaultConfiguration checkConfig = 19 createCheckConfig(MemberNameCheck.class); 20 final String [] expected = { 21 "8:10: Got an exception - Unexpected character 0xa9 in identifier", 22 }; 23 verify(checkConfig, getPath("grammars/InputGrammar.java"), expected); 24 } 25 } 26 | Popular Tags |