aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorslava ganyaev <slava.ganyaev@gmail.com>2017-04-11 13:19:34 +0300
committerRoman Ivanov <romani@users.noreply.github.com>2017-04-11 22:42:47 -0700
commit27def8a013c7340dbe4d88190a1e41ae2776bceb (patch)
treeb02302b37cd268209e9226b9d918d0050face9c6 /src
parentd5b11cf24714b6b971c75de7543bed455de0e787 (diff)
downloadcheckstyle-27def8a013c7340dbe4d88190a1e41ae2776bceb.tar.gz
Issue #4165: Split and Organize Checkstyle inputs by Test for DefaultComesLastCheckTest
Diffstat (limited to 'src')
-rw-r--r--src/test/java/com/puppycrawl/tools/checkstyle/checks/coding/DefaultComesLastCheckTest.java6
-rw-r--r--src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/defaultcomeslast/InputDefaultComesLast.java (renamed from src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/InputDefaultComesLast.java)2
-rw-r--r--src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/defaultcomeslast/InputDefaultComesLastDefaultMethodsInInterface.java (renamed from src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/InputDefaultComesLast2.java)4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/test/java/com/puppycrawl/tools/checkstyle/checks/coding/DefaultComesLastCheckTest.java b/src/test/java/com/puppycrawl/tools/checkstyle/checks/coding/DefaultComesLastCheckTest.java
index e5d375503..467263bd1 100644
--- a/src/test/java/com/puppycrawl/tools/checkstyle/checks/coding/DefaultComesLastCheckTest.java
+++ b/src/test/java/com/puppycrawl/tools/checkstyle/checks/coding/DefaultComesLastCheckTest.java
@@ -35,7 +35,7 @@ public class DefaultComesLastCheckTest extends BaseCheckTestSupport {
@Override
protected String getPath(String filename) throws IOException {
return super.getPath("checks" + File.separator
- + "coding" + File.separator + filename);
+ + "coding" + File.separator + "defaultcomeslast" + File.separator + filename);
}
@Override
@@ -45,7 +45,7 @@ public class DefaultComesLastCheckTest extends BaseCheckTestSupport {
}
@Test
- public void testIt() throws Exception {
+ public void testDefault() throws Exception {
final DefaultConfiguration checkConfig =
createCheckConfig(DefaultComesLastCheck.class);
final String[] expected = {
@@ -64,7 +64,7 @@ public class DefaultComesLastCheckTest extends BaseCheckTestSupport {
createCheckConfig(DefaultComesLastCheck.class);
final String[] expected = CommonUtils.EMPTY_STRING_ARRAY;
verify(checkConfig,
- getPath("InputDefaultComesLast2.java"),
+ getPath("InputDefaultComesLastDefaultMethodsInInterface.java"),
expected);
}
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/InputDefaultComesLast.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/defaultcomeslast/InputDefaultComesLast.java
index 3f5047bc3..08a08d1f7 100644
--- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/InputDefaultComesLast.java
+++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/defaultcomeslast/InputDefaultComesLast.java
@@ -1,4 +1,4 @@
-package com.puppycrawl.tools.checkstyle.checks.coding;
+package com.puppycrawl.tools.checkstyle.checks.coding.defaultcomeslast;
public class InputDefaultComesLast
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/InputDefaultComesLast2.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/defaultcomeslast/InputDefaultComesLastDefaultMethodsInInterface.java
index 228bbeac9..a5d350e13 100644
--- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/InputDefaultComesLast2.java
+++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/defaultcomeslast/InputDefaultComesLastDefaultMethodsInInterface.java
@@ -1,6 +1,6 @@
-package com.puppycrawl.tools.checkstyle.checks.coding;
+package com.puppycrawl.tools.checkstyle.checks.coding.defaultcomeslast;
-public interface InputDefaultComesLast2 {
+public interface InputDefaultComesLastDefaultMethodsInInterface {
String toJson(Object one, Object two, Object three);