KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > puppycrawl > tools > checkstyle > checks > whitespace > TabCharacterCheckTest


1 package com.puppycrawl.tools.checkstyle.checks.whitespace;
2
3 import com.puppycrawl.tools.checkstyle.BaseCheckTestCase;
4 import com.puppycrawl.tools.checkstyle.DefaultConfiguration;
5
6 public class TabCharacterCheckTest
7         extends BaseCheckTestCase
8 {
9     public void testIt() throws Exception JavaDoc
10     {
11         final DefaultConfiguration checkConfig =
12             createCheckConfig(TabCharacterCheck.class);
13         final String JavaDoc[] expected = {
14             "19:25: Line contains a tab character.",
15             "145:35: Line contains a tab character.",
16             "146:64: Line contains a tab character.",
17             "154:9: Line contains a tab character.",
18             "155:10: Line contains a tab character.",
19             "156:1: Line contains a tab character.",
20             "157:3: Line contains a tab character.",
21             "158:3: Line contains a tab character."
22         };
23         verify(checkConfig, getPath("InputSimple.java"), expected);
24     }
25 }
26
Popular Tags