KickJava   Java API By Example, From Geeks To Geeks.

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


1 package com.puppycrawl.tools.checkstyle.grammars;
2
3 import com.puppycrawl.tools.checkstyle.BaseCheckTestCase;
4 import com.puppycrawl.tools.checkstyle.DefaultConfiguration;
5 import com.puppycrawl.tools.checkstyle.checks.naming.MemberNameCheck;
6
7 /**
8  * Tests that embedded nulls in string literals does not halt parsing.
9  * @author Michael Studman
10  */

11 public class EmbeddedNullCharTest
12     extends BaseCheckTestCase
13 {
14     public void testCanParse()
15         throws Exception JavaDoc
16     {
17         final DefaultConfiguration checkConfig =
18             createCheckConfig(MemberNameCheck.class);
19         final String JavaDoc[] expected = {};
20         verify(checkConfig, getPath("grammars/InputEmbeddedNullChar.java"), expected);
21     }
22 }
23
Popular Tags