Skip to content

Commit

Permalink
Added default locale to avoid tests failed on non-English machine.
Browse files Browse the repository at this point in the history
  • Loading branch information
asakaxgit committed Sep 1, 2024
1 parent 3fabf1a commit aed9f14
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Locale;
import java.util.stream.Collectors;

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

protected void testByConfig(String configPath)
throws Exception {
Locale.setDefault(Locale.ENGLISH);

final String inputFile = configPath.replaceFirst(
"(default|zero)ContextConfig.xml", "");
// we can add here any variable to provide path to patch name by PropertiesExpander
Expand Down

0 comments on commit aed9f14

Please sign in to comment.