Skip to content

Commit 96ec54d

Browse files
abhishekmaitynrmancuso
authored andcommitted
Issue #14436: Enforced naming convention for NestedForDepthCheckTest
1 parent 899f3ed commit 96ec54d

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/test/java/com/puppycrawl/tools/checkstyle/checks/coding/NestedForDepthCheckTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ protected String getPackageLocation() {
4444
* interface-requirements for test-methods.
4545
*/
4646
@Test
47-
public void testNestedTooDeep() throws Exception {
47+
public void testNestedForDepthCheckCustomMaxLevelTwo() throws Exception {
4848

4949
final String[] expected = {
5050
"32:11: " + getCheckMessage(MSG_KEY, 3, 2),
@@ -53,7 +53,7 @@ public void testNestedTooDeep() throws Exception {
5353
};
5454

5555
verifyWithInlineConfigParser(
56-
getPath("InputNestedForDepth.java"),
56+
getPath("InputNestedForDepthCheckCustomMaxLevelTwo.java"),
5757
expected);
5858
}
5959

@@ -68,12 +68,12 @@ public void testNestedTooDeep() throws Exception {
6868
* interface-requirements for test-methods.
6969
*/
7070
@Test
71-
public void testNestedOk() throws Exception {
71+
public void testNestedForDepthCheckCustomMaxLevelFour() throws Exception {
7272

7373
final String[] expected = CommonUtil.EMPTY_STRING_ARRAY;
7474

7575
verifyWithInlineConfigParser(
76-
getPath("InputNestedForDepth1.java"),
76+
getPath("InputNestedForDepthCheckCustomMaxLevelFour.java"),
7777
expected);
7878
}
7979

@@ -92,13 +92,13 @@ public void testTokensNotNull() {
9292
}
9393

9494
@Test
95-
public void testNestedDefault() throws Exception {
95+
public void testNestedForDepthCheckDefaultMaxLevel() throws Exception {
9696
final String[] expected = {
9797
"27:9: " + getCheckMessage(MSG_KEY, 2, 1),
9898
};
9999

100100
verifyWithInlineConfigParser(
101-
getPath("InputNestedForDepthDefault.java"),
101+
getPath("InputNestedForDepthCheckDefaultMaxLevel.java"),
102102
expected);
103103
}
104104
}

src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/nestedfordepth/InputNestedForDepth1.java renamed to src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/nestedfordepth/InputNestedForDepthCheckCustomMaxLevelFour.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* @author Alexander Jesse
1414
* @see com.puppycrawl.tools.checkstyle.checks.coding.NestedForDepthCheck
1515
*/
16-
public class InputNestedForDepth1 {
16+
public class InputNestedForDepthCheckCustomMaxLevelFour {
1717

1818
/**
1919
* Dummy method containing 5 layers of for-statements.

src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/nestedfordepth/InputNestedForDepth.java renamed to src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/nestedfordepth/InputNestedForDepthCheckCustomMaxLevelTwo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* @author Alexander Jesse
1414
* @see com.puppycrawl.tools.checkstyle.checks.coding.NestedForDepthCheck
1515
*/
16-
public class InputNestedForDepth {
16+
public class InputNestedForDepthCheckCustomMaxLevelTwo {
1717

1818
/**
1919
* Dummy method containing 5 layers of for-statements.

src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/nestedfordepth/InputNestedForDepthDefault.java renamed to src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/nestedfordepth/InputNestedForDepthCheckDefaultMaxLevel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
package com.puppycrawl.tools.checkstyle.checks.coding.nestedfordepth;
99

10-
public class InputNestedForDepthDefault {
10+
public class InputNestedForDepthCheckDefaultMaxLevel {
1111

1212
public void method() {
1313
for (int i = 1; i < 5; i++) {

0 commit comments

Comments
 (0)