Skip to content

Commit

Permalink
Issue checkstyle#7802: Resolve Pitest Issues - CustomImportOrderCheck…
Browse files Browse the repository at this point in the history
… (1)
  • Loading branch information
wltan committed Mar 11, 2020
1 parent 37b2a14 commit 75675f7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Expand Up @@ -686,7 +686,9 @@ public void testMultiplePatternMatchesSecondPatternIsLonger() throws Exception {
checkConfig.addAttribute("standardPackageRegExp", "junit");

createChecker(checkConfig);
final String[] expected = CommonUtil.EMPTY_STRING_ARRAY;
final String[] expected = {
"4: " + getCheckMessage(MSG_NONGROUP_EXPECTED, STD, "org.junit.Test"),
};
verify(checkConfig, getPath("InputCustomImportOrder_MultiplePatternMatches.java"),
expected);
}
Expand All @@ -701,7 +703,9 @@ public void testMultiplePatternMatchesFirstPatternHasLaterPosition() throws Exce
checkConfig.addAttribute("standardPackageRegExp", "unit");

createChecker(checkConfig);
final String[] expected = CommonUtil.EMPTY_STRING_ARRAY;
final String[] expected = {
"4: " + getCheckMessage(MSG_NONGROUP_EXPECTED, STD, "org.junit.Test"),
};
verify(checkConfig, getPath("InputCustomImportOrder_MultiplePatternMatches.java"),
expected);
}
Expand All @@ -716,7 +720,9 @@ public void testMultiplePatternMatchesFirstPatternHasEarlierPosition() throws Ex
checkConfig.addAttribute("standardPackageRegExp", "Test");

createChecker(checkConfig);
final String[] expected = CommonUtil.EMPTY_STRING_ARRAY;
final String[] expected = {
"4: " + getCheckMessage(MSG_NONGROUP_EXPECTED, SPECIAL, "org.junit.Test"),
};
verify(checkConfig, getPath("InputCustomImportOrder_MultiplePatternMatches.java"),
expected);
}
Expand Down
@@ -1,5 +1,6 @@
package com.puppycrawl.tools.checkstyle.checks.imports.customimportorder;

import java.util.Scanner;
import org.junit.Test;

public class InputCustomImportOrder_MultiplePatternMatches {
Expand Down

0 comments on commit 75675f7

Please sign in to comment.