01: package com.puppycrawl.tools.checkstyle.checks.j2ee;
02:
03: import com.puppycrawl.tools.checkstyle.BaseCheckTestCase;
04: import com.puppycrawl.tools.checkstyle.DefaultConfiguration;
05: import com.puppycrawl.tools.checkstyle.checks.j2ee.FinalStaticCheck;
06:
07: public class FinalStaticCheckTest extends BaseCheckTestCase {
08: public void testDefault() throws Exception {
09: final DefaultConfiguration checkConfig = createCheckConfig(FinalStaticCheck.class);
10: final String[] expected = { "27:16: Static field 'sInt' should be final.", };
11: verify(checkConfig, getPath("j2ee/InputEntityBean.java"),
12: expected);
13: }
14: }
|