01: package com.puppycrawl.tools.checkstyle.checks.whitespace;
02:
03: import com.puppycrawl.tools.checkstyle.BaseCheckTestCase;
04: import com.puppycrawl.tools.checkstyle.DefaultConfiguration;
05:
06: public class TabCharacterCheckTest extends BaseCheckTestCase {
07: public void testIt() throws Exception {
08: final DefaultConfiguration checkConfig = createCheckConfig(TabCharacterCheck.class);
09: final String[] expected = {
10: "19:25: Line contains a tab character.",
11: "145:35: Line contains a tab character.",
12: "146:64: Line contains a tab character.",
13: "154:9: Line contains a tab character.",
14: "155:10: Line contains a tab character.",
15: "156:1: Line contains a tab character.",
16: "157:3: Line contains a tab character.",
17: "158:3: Line contains a tab character." };
18: verify(checkConfig, getPath("InputSimple.java"), expected);
19: }
20: }
|