File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
code-assert/src/test/java/guru/nidi/codeassert Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 2424import guru .nidi .codeassert .junit .PredefConfig ;
2525import guru .nidi .codeassert .pmd .*;
2626import net .sourceforge .pmd .RulePriority ;
27+ import org .junit .jupiter .api .BeforeAll ;
28+
29+ import java .util .Locale ;
2730
2831import static guru .nidi .codeassert .dependency .DependencyRules .denyAll ;
2932
3033public class EatYourOwnDogfoodTest extends CodeAssertJunit5Test {
34+ @ BeforeAll
35+ static void init () {
36+ Locale .setDefault (Locale .ENGLISH );
37+ }
38+
3139 @ Override
3240 protected DependencyResult analyzeDependencies () {
3341 class GuruNidiCodeassert extends DependencyRuler {
Original file line number Diff line number Diff line change 2424import guru .nidi .codeassert .snippets .DependencyTest ;
2525import org .hamcrest .Matcher ;
2626import org .hamcrest .StringDescription ;
27+ import org .junit .jupiter .api .BeforeAll ;
2728import org .junit .jupiter .api .Test ;
2829
2930import java .io .File ;
@@ -43,9 +44,13 @@ public class CheckstyleTest {
4344
4445 private final AnalyzerConfig config = AnalyzerConfig .maven ().mainAndTest ();
4546
47+ @ BeforeAll
48+ static void init () {
49+ Locale .setDefault (Locale .ENGLISH );
50+ }
51+
4652 @ Test
4753 void google () {
48- Locale .setDefault (Locale .ENGLISH );
4954 final CheckstyleAnalyzer analyzer = new CheckstyleAnalyzer (config , StyleChecks .google ()
5055 .maxLineLen (120 ).indentBasic (4 ).indentCase (4 )
5156 .paramName ("^[a-z][a-zA-Z0-9]*$" )
@@ -77,7 +82,6 @@ void google() {
7782
7883 @ Test
7984 void sun () {
80- Locale .setDefault (Locale .ENGLISH );
8185 final CheckstyleAnalyzer analyzer = new CheckstyleAnalyzer (config , StyleChecks .sun ()
8286 .maxLineLen (120 ).allowDefaultAccessMembers (true ),
8387 new StyleEventCollector ().severity (WARNING ).config (
You can’t perform that action at this time.
0 commit comments