Skip to content

Commit

Permalink
Rename static methods not following convention in test code. #1555
Browse files Browse the repository at this point in the history
Fixes `StaticMethodNamingConvention` inspection violations in test code.

Description:
>Reports static methods whose names are either too short, too long, or do not follow the specified regular expression pattern.
  • Loading branch information
mkordas authored and romani committed Aug 20, 2015
1 parent 2057a77 commit 03f4181
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -80,7 +80,7 @@ public class CommentsTest extends BaseCheckTestSupport {
* +--COMMENT_CONTENT [5,4]
* +--RCURLY [6,0]
*/
private static DetailAST buildInput_1() {
private static DetailAST buildInput1() {
DetailAST packageDef = new DetailAST();
packageDef.setType(PACKAGE_DEF);
packageDef.setText("package");
Expand Down Expand Up @@ -296,7 +296,7 @@ private static DetailAST buildInput_1() {
* +--RCURLY [11,4]
* +--RCURLY [12,0]
*/
private static DetailAST buildInput_2() {
private static DetailAST buildInput2() {
DetailAST packageDef = new DetailAST();
packageDef.setType(PACKAGE_DEF);
packageDef.setText("package");
Expand Down Expand Up @@ -598,7 +598,7 @@ private static DetailAST buildInput_2() {
@Test
public void testCompareExpectedTreeWithInput_1() throws Exception {
DefaultConfiguration checkConfig = createCheckConfig(CompareTreesWithComments.class);
CompareTreesWithComments.expectedTree = buildInput_1();
CompareTreesWithComments.expectedTree = buildInput1();
final String[] expected = {};
verify(checkConfig, getPath("comments" + File.separator
+ "InputCommentsTest_1.java"), expected);
Expand All @@ -607,7 +607,7 @@ public void testCompareExpectedTreeWithInput_1() throws Exception {
@Test
public void testCompareExpectedTreeWithInput_2() throws Exception {
DefaultConfiguration checkConfig = createCheckConfig(CompareTreesWithComments.class);
CompareTreesWithComments.expectedTree = buildInput_2();
CompareTreesWithComments.expectedTree = buildInput2();
final String[] expected = {};
verify(checkConfig, getPath("comments" + File.separator
+ "InputCommentsTest_2.java"), expected);
Expand Down

0 comments on commit 03f4181

Please sign in to comment.