1 package com.puppycrawl.tools.checkstyle.checks.design; 2 3 import com.puppycrawl.tools.checkstyle.BaseCheckTestCase; 4 import com.puppycrawl.tools.checkstyle.DefaultConfiguration; 5 6 public class FinalClassCheckTest 7 extends BaseCheckTestCase 8 { 9 public void testFianlClass() throws Exception 10 { 11 final DefaultConfiguration checkConfig = 12 createCheckConfig(FinalClassCheck.class); 13 final String [] expected = { 14 "7: Class InputFinalClass should be declared as final.", 15 "15: Class test4 should be declared as final.", 16 "109: Class someinnerClass should be declared as final.", 17 }; 18 verify(checkConfig, getPath("InputFinalClass.java"), expected); 19 } 20 } 21 | Popular Tags |