KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > puppycrawl > tools > checkstyle > checks > coding > ArrayTrailingCommaCheckTest


1 package com.puppycrawl.tools.checkstyle.checks.coding;
2
3 import com.puppycrawl.tools.checkstyle.BaseCheckTestCase;
4 import com.puppycrawl.tools.checkstyle.DefaultConfiguration;
5
6 public class ArrayTrailingCommaCheckTest
7     extends BaseCheckTestCase
8 {
9     public void testDefault()
10         throws Exception JavaDoc
11     {
12         final DefaultConfiguration checkConfig =
13             createCheckConfig(ArrayTrailingCommaCheck.class);
14         final String JavaDoc[] expected = {
15             "17: Array should contain trailing comma.",
16             "34: Array should contain trailing comma.",
17             "37: Array should contain trailing comma.",
18         };
19         verify(checkConfig, getPath("InputArrayTrailingComma.java"), expected);
20     }
21 }
22
Popular Tags