From 7ed133140619d8cf867694fa532dc34e093b5435 Mon Sep 17 00:00:00 2001 From: Alexander Krimm Date: Tue, 8 Aug 2023 12:20:30 +0200 Subject: [PATCH] YWatchValueIndicatorTest: update check to value determined by axis formatter --- .../io/fair_acc/chartfx/plugins/YWatchValueIndicatorTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chartfx-chart/src/test/java/io/fair_acc/chartfx/plugins/YWatchValueIndicatorTest.java b/chartfx-chart/src/test/java/io/fair_acc/chartfx/plugins/YWatchValueIndicatorTest.java index 64f086024..0c5affcf6 100644 --- a/chartfx-chart/src/test/java/io/fair_acc/chartfx/plugins/YWatchValueIndicatorTest.java +++ b/chartfx-chart/src/test/java/io/fair_acc/chartfx/plugins/YWatchValueIndicatorTest.java @@ -75,7 +75,7 @@ void rightSide() { @TestFx void setMarkerValue() { valueWatchIndicatorTested.setMarkerValue(35.15); - assertTrue(valueWatchIndicatorTested.getText().matches("35[\\.,]15")); // US or German locale + assertEquals("35", valueWatchIndicatorTested.getText()); // uses axis formatting. If this changes to include decimals, make sure to be locale agnostic assertEquals(35.15, valueWatchIndicatorTested.getValue(), 1e-2); }