checkstyle / patch-filters

Suppression Filter for Checkstyle that is based on patch file
GNU Lesser General Public License v2.1
4 stars 7 forks source link

Tests failed on non-English Windows. #367

Open asakaxgit opened 2 weeks ago

asakaxgit commented 2 weeks ago

Most of tests failed due to mis-detection of locale. Many tests of FilterTest are strongly relied on Language of occuring messages. Expected messages in expected.txt are written in English. So we need to fix tests to fixed locale as English, or respect running machine's language.

%FAILED 3,testDefaultStrategy(com.puppycrawl.tools.checkstyle.filters.SuppressionJavaPatchFilterTest)
%EXPECTS
C:\Users\ASakashita\source\repos\patch-filters\src\test\resources\com\puppycrawl\tools\checkstyle\filters\suppressionjavapatchfilter\DefaultStrategy\Test.java:16:5: Init blocks, constructors, fields and methods should be before inner types.
%EXPECTE
%ACTUALS
C:\Users\ASakashita\source\repos\patch-filters\src\test\resources\com\puppycrawl\tools\checkstyle\filters\suppressionjavapatchfilter\DefaultStrategy\Test.java:16:5: 初期化ブロック、コンストラクター、フィールド、メソッドは内部型の前にある必要があります。
%ACTUALE
%TRACES 

image