Skip to content
Snippets Groups Projects
Commit 2bf72521 authored by René Schöne's avatar René Schöne
Browse files

Fixed ExecuteImplTest to not send initial state of items.

parent b3d497cb
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,7 @@ public class ExecuteImplTest { ...@@ -26,7 +26,7 @@ public class ExecuteImplTest {
ColorItem lamp = new ColorItem(); ColorItem lamp = new ColorItem();
lamp.setID("lamp"); lamp.setID("lamp");
lamp.setState(TupleHSB.of(0, 0, 0)); lamp.setState(TupleHSB.of(0, 0, 0), false);
lamp.enableSendState(); lamp.enableSendState();
TestUtils.getDefaultGroup(model).addItem(lamp); TestUtils.getDefaultGroup(model).addItem(lamp);
...@@ -51,13 +51,13 @@ public class ExecuteImplTest { ...@@ -51,13 +51,13 @@ public class ExecuteImplTest {
ItemWithBooleanState button = new SwitchItem(); ItemWithBooleanState button = new SwitchItem();
button.setID("button"); button.setID("button");
button.setState(false); button.setState(false, false);
button.enableSendState(); button.enableSendState();
TestUtils.getDefaultGroup(model).addItem(button); TestUtils.getDefaultGroup(model).addItem(button);
ColorItem lamp = new ColorItem(); ColorItem lamp = new ColorItem();
lamp.setID("lamp"); lamp.setID("lamp");
lamp.setState(TupleHSB.of(0, 0, 0)); lamp.setState(TupleHSB.of(0, 0, 0), false);
lamp.enableSendState(); lamp.enableSendState();
TestUtils.getDefaultGroup(model).addItem(lamp); TestUtils.getDefaultGroup(model).addItem(lamp);
...@@ -85,20 +85,20 @@ public class ExecuteImplTest { ...@@ -85,20 +85,20 @@ public class ExecuteImplTest {
Group g = TestUtils.getDefaultGroup(model); Group g = TestUtils.getDefaultGroup(model);
StringItem stringItem = new StringItem(); StringItem stringItem = new StringItem();
stringItem.setState("0"); stringItem.setState("0", false);
g.addItem(stringItem); g.addItem(stringItem);
SwitchItem booleanItem = new SwitchItem(); SwitchItem booleanItem = new SwitchItem();
booleanItem.setState(false); booleanItem.setState(false, false);
g.addItem(booleanItem); g.addItem(booleanItem);
ColorItem colorItem = new ColorItem(); ColorItem colorItem = new ColorItem();
colorItem.setState(TupleHSB.of(0, 0, 0)); colorItem.setState(TupleHSB.of(0, 0, 0), false);
g.addItem(colorItem); g.addItem(colorItem);
ColorItem lamp = new ColorItem(); ColorItem lamp = new ColorItem();
lamp.setID("lamp"); lamp.setID("lamp");
lamp.setState(TupleHSB.of(0, 0, 0)); lamp.setState(TupleHSB.of(0, 0, 0), false);
lamp.enableSendState(); lamp.enableSendState();
TestUtils.getDefaultGroup(model).addItem(lamp); TestUtils.getDefaultGroup(model).addItem(lamp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment