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 SuperFinalizeCheckTest 7 extends BaseCheckTestCase 8 { 9 public void testIt() throws Exception 10 { 11 final DefaultConfiguration checkConfig = 12 createCheckConfig(SuperFinalizeCheck.class); 13 final String [] expected = { 14 "27:17: Method 'finalize' should call 'super.finalize'.", 15 "34:17: Method 'finalize' should call 'super.finalize'.", 16 }; 17 verify(checkConfig, getPath("coding/InputFinalize.java"), expected); 18 } 19 } 20 | Popular Tags |