Skip to content

Commit

Permalink
Issue checkstyle#4142: Split and Organize Checkstyle inputs by Test f…
Browse files Browse the repository at this point in the history
…or InterfaceTypeParameterName
  • Loading branch information
Kietzmann committed Apr 28, 2017
1 parent e810918 commit c43d905
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Expand Up @@ -36,7 +36,9 @@ public class InterfaceTypeParameterNameCheckTest
@Override
protected String getPath(String filename) throws IOException {
return super.getPath("checks" + File.separator
+ "naming" + File.separator + filename);
+ "naming" + File.separator
+ "interfacetypeparametername" + File.separator
+ filename);
}

@Test
Expand All @@ -58,7 +60,7 @@ public void testInterfaceDefault()
final String[] expected = {
"48:15: " + getCheckMessage(MSG_INVALID_PATTERN, "Input", pattern),
};
verify(checkConfig, getPath("InputTypeParameterName.java"), expected);
verify(checkConfig, getPath("InputInterfaceTypeParameterName.java"), expected);
}

@Test
Expand All @@ -74,6 +76,6 @@ public void testInterfaceFooName()
"48:15: " + getCheckMessage(MSG_INVALID_PATTERN, "Input", pattern),
"52:24: " + getCheckMessage(MSG_INVALID_PATTERN, "T", pattern),
};
verify(checkConfig, getPath("InputTypeParameterName.java"), expected);
verify(checkConfig, getPath("InputInterfaceTypeParameterName.java"), expected);
}
}
@@ -1,8 +1,8 @@
package com.puppycrawl.tools.checkstyle.checks.naming;
package com.puppycrawl.tools.checkstyle.checks.naming.interfacetypeparametername;

import java.io.Serializable;

public class InputTypeParameterName <t>
public class InputInterfaceTypeParameterName<t>
{
public <TT> void foo() { }

Expand Down

0 comments on commit c43d905

Please sign in to comment.