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 CovariantEqualsCheckTest 7 extends BaseCheckTestCase 8 { 9 public void testDefault() 10 throws Exception 11 { 12 final DefaultConfiguration checkConfig = 13 createCheckConfig(CovariantEqualsCheck.class); 14 final String [] expected = { 15 "11:24: covariant equals without overriding equals(java.lang.Object).", 16 "30:20: covariant equals without overriding equals(java.lang.Object).", 17 "64:20: covariant equals without overriding equals(java.lang.Object).", 18 "78:28: covariant equals without overriding equals(java.lang.Object).", 19 }; 20 verify(checkConfig, getPath("InputCovariant.java"), expected); 21 } 22 } 23 24 | Popular Tags |