aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/com/puppycrawl/tools/checkstyle/checks/naming/TypeNameCheckTest.java
diff options
context:
space:
mode:
authorrnveach <rveach02@gmail.com>2017-07-28 13:00:54 -0400
committerrnveach <rveach02@gmail.com>2017-07-29 09:15:53 -0400
commit6a32fa80d45c342d53f5d231dad065ec683bd19c (patch)
treeced1e63298fb81854ded8073fbfb58a83de93c8d /src/test/java/com/puppycrawl/tools/checkstyle/checks/naming/TypeNameCheckTest.java
parent69a19a6ee87b13d996d037bfbadc821163e0d880 (diff)
downloadcheckstyle-6a32fa80d45c342d53f5d231dad065ec683bd19c.tar.gz
Issue #4592: merged module test support and fileset test support
Diffstat (limited to 'src/test/java/com/puppycrawl/tools/checkstyle/checks/naming/TypeNameCheckTest.java')
-rw-r--r--src/test/java/com/puppycrawl/tools/checkstyle/checks/naming/TypeNameCheckTest.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/java/com/puppycrawl/tools/checkstyle/checks/naming/TypeNameCheckTest.java b/src/test/java/com/puppycrawl/tools/checkstyle/checks/naming/TypeNameCheckTest.java
index 19061b247..056aac4c3 100644
--- a/src/test/java/com/puppycrawl/tools/checkstyle/checks/naming/TypeNameCheckTest.java
+++ b/src/test/java/com/puppycrawl/tools/checkstyle/checks/naming/TypeNameCheckTest.java
@@ -41,7 +41,7 @@ public class TypeNameCheckTest
public void testSpecified()
throws Exception {
final DefaultConfiguration checkConfig =
- createCheckConfig(TypeNameCheck.class);
+ createModuleConfig(TypeNameCheck.class);
checkConfig.addAttribute("format", "^inputHe");
final String[] expected = CommonUtils.EMPTY_STRING_ARRAY;
verify(checkConfig, getPath("InputTypeName.java"), expected);
@@ -51,7 +51,7 @@ public class TypeNameCheckTest
public void testDefault()
throws Exception {
final DefaultConfiguration checkConfig =
- createCheckConfig(TypeNameCheck.class);
+ createModuleConfig(TypeNameCheck.class);
final String[] expected = {
"3:7: " + getCheckMessage(MSG_INVALID_PATTERN,
"inputHeaderClass", DEFAULT_PATTERN),
@@ -69,7 +69,7 @@ public class TypeNameCheckTest
public void testClassSpecific()
throws Exception {
final DefaultConfiguration checkConfig =
- createCheckConfig(TypeNameCheck.class);
+ createModuleConfig(TypeNameCheck.class);
checkConfig.addAttribute("tokens", TokenUtils.getTokenName(TokenTypes.CLASS_DEF));
final String[] expected = {
"3:7: " + getCheckMessage(MSG_INVALID_PATTERN,
@@ -82,7 +82,7 @@ public class TypeNameCheckTest
public void testInterfaceSpecific()
throws Exception {
final DefaultConfiguration checkConfig =
- createCheckConfig(TypeNameCheck.class);
+ createModuleConfig(TypeNameCheck.class);
checkConfig.addAttribute("tokens", TokenUtils.getTokenName(TokenTypes.INTERFACE_DEF));
final String[] expected = {
"5:22: " + getCheckMessage(MSG_INVALID_PATTERN,
@@ -95,7 +95,7 @@ public class TypeNameCheckTest
public void testEnumSpecific()
throws Exception {
final DefaultConfiguration checkConfig =
- createCheckConfig(TypeNameCheck.class);
+ createModuleConfig(TypeNameCheck.class);
checkConfig.addAttribute("tokens", TokenUtils.getTokenName(TokenTypes.ENUM_DEF));
final String[] expected = {
"7:17: " + getCheckMessage(MSG_INVALID_PATTERN,
@@ -108,7 +108,7 @@ public class TypeNameCheckTest
public void testAnnotationSpecific()
throws Exception {
final DefaultConfiguration checkConfig =
- createCheckConfig(TypeNameCheck.class);
+ createModuleConfig(TypeNameCheck.class);
checkConfig.addAttribute("tokens", TokenUtils.getTokenName(TokenTypes.ANNOTATION_DEF));
final String[] expected = {
"9:23: " + getCheckMessage(MSG_INVALID_PATTERN,