Skip to content

Commit 8329668

Browse files
authored
[hue] fix JUnit tests for revised ColorUtil (openhab#16559)
Signed-off-by: Andrew Fiddian-Green <[email protected]>
1 parent 5765a94 commit 8329668

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bundles/org.openhab.binding.hue/src/test/java/org/openhab/binding/hue/internal/handler/HueLightHandlerTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -265,13 +265,13 @@ public void assertXYCommandForColorChannelBlack() {
265265

266266
@Test
267267
public void assertXYCommandForColorChannelWhite() {
268-
String expectedReply = "{\"xy\" : [ 0.3227 , 0.32900003 ], \"bri\" : 254, \"transitiontime\" : 4}";
268+
String expectedReply = "{\"xy\" : [ 0.3227267 , 0.3290229 ], \"bri\" : 254, \"transitiontime\" : 4}";
269269
assertSendCommandForColor(HSBType.WHITE, new HueLightState().colormode(ColorMode.XY), expectedReply);
270270
}
271271

272272
@Test
273273
public void assertXYCommandForColorChannelColorful() {
274-
String expectedReply = "{\"xy\" : [ 0.14649999 , 0.115600005 ], \"bri\" : 127, \"transitiontime\" : 4}";
274+
String expectedReply = "{\"xy\" : [ 0.14657576 , 0.115629844 ], \"bri\" : 127, \"transitiontime\" : 4}";
275275
assertSendCommandForColor(new HSBType("220,90,50"), new HueLightState().colormode(ColorMode.XY), expectedReply);
276276
}
277277

0 commit comments

Comments
 (0)