This is an automated email from the ASF dual-hosted git repository. gnodet pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit 605bb05b18b405f9c77329a74c207a8b041274b0 Author: Guillaume Nodet <gno...@gmail.com> AuthorDate: Fri Feb 7 14:24:26 2020 +0100 Fix junit test issue when running on a non english locale --- .../src/test/java/org/apache/camel/component/weka/PredictionTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/camel-weka/src/test/java/org/apache/camel/component/weka/PredictionTest.java b/components/camel-weka/src/test/java/org/apache/camel/component/weka/PredictionTest.java index 05efbfe..574e203 100644 --- a/components/camel-weka/src/test/java/org/apache/camel/component/weka/PredictionTest.java +++ b/components/camel-weka/src/test/java/org/apache/camel/component/weka/PredictionTest.java @@ -16,6 +16,8 @@ */ package org.apache.camel.component.weka; +import java.util.Locale; + import io.nessus.weka.AssertArg; import io.nessus.weka.Dataset; import io.nessus.weka.NominalPredictor; @@ -91,7 +93,7 @@ public class PredictionTest extends AbstractWekaTest { logInfo(String.format("Correctly Classified Instances %d %.4f %%", correct, accuracy)); logInfo(String.format("Incorrectly Classified Instances %d %.4f %%", incorrect, 100 - accuracy)); - Assert.assertEquals("88.8889", String.format("%.4f", accuracy)); + Assert.assertEquals("88.8889", String.format(Locale.ENGLISH, "%.4f", accuracy)); } }