| Home >> All >> com >> puppycrawl >> tools >> checkstyle >> [ checks Javadoc ] |
Source code: com/puppycrawl/tools/checkstyle/checks/EqualsHashCodeCheckTest.java
1 package com.puppycrawl.tools.checkstyle.checks; 2 3 import com.puppycrawl.tools.checkstyle.BaseCheckTestCase; 4 import com.puppycrawl.tools.checkstyle.DefaultConfiguration; 5 6 public class EqualsHashCodeCheckTest 7 extends BaseCheckTestCase 8 { 9 public void testIt() throws Exception 10 { 11 final DefaultConfiguration checkConfig = 12 createCheckConfig(EqualsHashCodeCheck.class); 13 final String[] expected = { 14 "126:9: Definition of 'equals()' without corresponding definition of 'hashCode()'.", 15 "163:13: Definition of 'equals()' without corresponding definition of 'hashCode()'.", 16 }; 17 verify(checkConfig, getPath("InputSemantic.java"), expected); 18 } 19 }