From 39f91e7a7acf04a2fbfb652c0dd4a92be4a83568 Mon Sep 17 00:00:00 2001 From: Andrew Fiddian-Green Date: Sun, 28 Apr 2024 20:05:23 +0100 Subject: [PATCH] [hue] fix JUnit tests for revised ColorUtil (#16559) Signed-off-by: Andrew Fiddian-Green Signed-off-by: Ciprian Pascu --- .../binding/hue/internal/handler/HueLightHandlerTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/org.openhab.binding.hue/src/test/java/org/openhab/binding/hue/internal/handler/HueLightHandlerTest.java b/bundles/org.openhab.binding.hue/src/test/java/org/openhab/binding/hue/internal/handler/HueLightHandlerTest.java index c83ba181fb2..3808a663021 100644 --- a/bundles/org.openhab.binding.hue/src/test/java/org/openhab/binding/hue/internal/handler/HueLightHandlerTest.java +++ b/bundles/org.openhab.binding.hue/src/test/java/org/openhab/binding/hue/internal/handler/HueLightHandlerTest.java @@ -265,13 +265,13 @@ public class HueLightHandlerTest { @Test public void assertXYCommandForColorChannelWhite() { - String expectedReply = "{\"xy\" : [ 0.3227 , 0.32900003 ], \"bri\" : 254, \"transitiontime\" : 4}"; + String expectedReply = "{\"xy\" : [ 0.3227267 , 0.3290229 ], \"bri\" : 254, \"transitiontime\" : 4}"; assertSendCommandForColor(HSBType.WHITE, new HueLightState().colormode(ColorMode.XY), expectedReply); } @Test public void assertXYCommandForColorChannelColorful() { - String expectedReply = "{\"xy\" : [ 0.14649999 , 0.115600005 ], \"bri\" : 127, \"transitiontime\" : 4}"; + String expectedReply = "{\"xy\" : [ 0.14657576 , 0.115629844 ], \"bri\" : 127, \"transitiontime\" : 4}"; assertSendCommandForColor(new HSBType("220,90,50"), new HueLightState().colormode(ColorMode.XY), expectedReply); }