KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > puppycrawl > tools > checkstyle > grammars > GeneratedJava14LexerTest


1 package com.puppycrawl.tools.checkstyle.grammars;
2
3 import java.io.IOException JavaDoc;
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 /**
10  * Tests GeneratedJava14Lexer.
11  * @author Rick Giles
12  */

13 public class GeneratedJava14LexerTest
14     extends BaseCheckTestCase
15 {
16     public void testUnexpectedChar() throws IOException JavaDoc, Exception JavaDoc
17     {
18         final DefaultConfiguration checkConfig =
19             createCheckConfig(MemberNameCheck.class);
20         final String JavaDoc[] 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