KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > puppycrawl > tools > checkstyle > checks > j2ee > FinalStaticCheckTest


1 package com.puppycrawl.tools.checkstyle.checks.j2ee;
2 import com.puppycrawl.tools.checkstyle.BaseCheckTestCase;
3 import com.puppycrawl.tools.checkstyle.DefaultConfiguration;
4 import com.puppycrawl.tools.checkstyle.checks.j2ee.FinalStaticCheck;
5
6 public class FinalStaticCheckTest extends BaseCheckTestCase
7 {
8     public void testDefault()
9             throws Exception JavaDoc
10     {
11         final DefaultConfiguration checkConfig =
12             createCheckConfig(FinalStaticCheck.class);
13         final String JavaDoc[] expected = {
14             "27:16: Static field 'sInt' should be final.",
15         };
16         verify(checkConfig, getPath("j2ee/InputEntityBean.java"), expected);
17     }
18 }
19
Popular Tags