Issue #2161: unify test input locations

This commit is contained in:
rnveach 2015-10-11 00:34:46 -04:00 committed by Roman Ivanov
parent b6995b7dad
commit e23953e9e8
2 changed files with 9 additions and 2 deletions

View File

@ -22,6 +22,7 @@ package com.puppycrawl.tools.checkstyle.checks.coding;
import static com.puppycrawl.tools.checkstyle.checks.coding.MissingCtorCheck.MSG_KEY;
import java.io.File;
import java.io.IOException;
import org.junit.Assert;
import org.junit.Test;
@ -30,6 +31,12 @@ import com.puppycrawl.tools.checkstyle.BaseCheckTestSupport;
import com.puppycrawl.tools.checkstyle.DefaultConfiguration;
public class MissingCtorCheckTest extends BaseCheckTestSupport {
@Override
protected String getPath(String filename) throws IOException {
return super.getPath("checks" + File.separator
+ "coding" + File.separator + filename);
}
@Test
public void testMissingSwitchDefault() throws Exception {
DefaultConfiguration checkConfig =
@ -40,7 +47,7 @@ public class MissingCtorCheckTest extends BaseCheckTestSupport {
};
verify(checkConfig,
getPath("coding" + File.separator + "InputMissingCtor.java"),
getPath("InputMissingCtor.java"),
expected);
}

View File

@ -1,4 +1,4 @@
package com.puppycrawl.tools.checkstyle.coding;
package com.puppycrawl.tools.checkstyle.checks.coding;
public class InputMissingCtor
{