Skip to content

Commit aed9f14

Browse files
committed
Added default locale to avoid tests failed on non-English machine.
#367
1 parent 3fabf1a commit aed9f14

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/java/com/puppycrawl/tools/checkstyle/filters/AbstractPatchFilterEvaluationTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
import java.util.Arrays;
3535
import java.util.Collections;
3636
import java.util.List;
37+
import java.util.Locale;
3738
import java.util.stream.Collectors;
3839

3940
import com.puppycrawl.tools.checkstyle.AbstractModuleTestSupport;
@@ -51,6 +52,8 @@ abstract class AbstractPatchFilterEvaluationTest extends AbstractModuleTestSuppo
5152

5253
protected void testByConfig(String configPath)
5354
throws Exception {
55+
Locale.setDefault(Locale.ENGLISH);
56+
5457
final String inputFile = configPath.replaceFirst(
5558
"(default|zero)ContextConfig.xml", "");
5659
// we can add here any variable to provide path to patch name by PropertiesExpander

0 commit comments

Comments
 (0)