diff --git a/src/test/java/com/puppycrawl/tools/checkstyle/api/FileTextTest.java b/src/test/java/com/puppycrawl/tools/checkstyle/api/FileTextTest.java index c81cc3bd6..041611642 100644 --- a/src/test/java/com/puppycrawl/tools/checkstyle/api/FileTextTest.java +++ b/src/test/java/com/puppycrawl/tools/checkstyle/api/FileTextTest.java @@ -29,7 +29,6 @@ import java.io.UnsupportedEncodingException; import org.junit.Test; public class FileTextTest { - @Test public void testUnsupportedCharset() throws IOException { // just to make UT coverage 100% @@ -48,7 +47,7 @@ public class FileTextTest { public void testSupportedCharset() throws IOException { String charsetName = "ISO-8859-1"; FileText o = new FileText(new File("src/test/resources/com/puppycrawl/tools/" - + "checkstyle/checks/imports/import-control_complete.xml"), charsetName); + + "checkstyle/api/import-control_complete.xml"), charsetName); assertEquals(o.getCharset().name(), charsetName); } } diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/api/import-control_complete.xml b/src/test/resources/com/puppycrawl/tools/checkstyle/api/import-control_complete.xml new file mode 100644 index 000000000..3bdfcad3e --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/api/import-control_complete.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + \ No newline at end of file