diff --git a/src/test/java/com/puppycrawl/tools/checkstyle/checks/coding/CovariantEqualsCheckTest.java b/src/test/java/com/puppycrawl/tools/checkstyle/checks/coding/CovariantEqualsCheckTest.java index 8c689aade..3914925fd 100644 --- a/src/test/java/com/puppycrawl/tools/checkstyle/checks/coding/CovariantEqualsCheckTest.java +++ b/src/test/java/com/puppycrawl/tools/checkstyle/checks/coding/CovariantEqualsCheckTest.java @@ -21,6 +21,9 @@ package com.puppycrawl.tools.checkstyle.checks.coding; import static com.puppycrawl.tools.checkstyle.checks.coding.CovariantEqualsCheck.MSG_KEY; +import java.io.File; +import java.io.IOException; + import org.junit.Assert; import org.junit.Test; @@ -29,6 +32,12 @@ import com.puppycrawl.tools.checkstyle.DefaultConfiguration; public class CovariantEqualsCheckTest extends BaseCheckTestSupport { + @Override + protected String getPath(String filename) throws IOException { + return super.getPath("checks" + File.separator + + "coding" + File.separator + filename); + } + @Test public void testDefault() throws Exception { diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/InputCovariant.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/InputCovariant.java similarity index 97% rename from src/test/resources/com/puppycrawl/tools/checkstyle/InputCovariant.java rename to src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/InputCovariant.java index 8c65791e3..fdf7df0ac 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/InputCovariant.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/InputCovariant.java @@ -1,4 +1,4 @@ -package com.puppycrawl.tools.checkstyle; +package com.puppycrawl.tools.checkstyle.checks.coding; /** * Test file for covariant equals methods.