Issue #2161: unify test input locations
This commit is contained in:
parent
b6995b7dad
commit
e23953e9e8
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
package com.puppycrawl.tools.checkstyle.coding;
|
||||
package com.puppycrawl.tools.checkstyle.checks.coding;
|
||||
|
||||
public class InputMissingCtor
|
||||
{
|
||||
Loading…
Reference in New Issue