This commit is contained in:
omenem 2020-05-17 11:33:30 +02:00
parent 0ce6e84380
commit 940c072711
2 changed files with 3 additions and 3 deletions

View file

@ -33,6 +33,6 @@ public class DimmableStateTests {
this.dimmableState.setDevice(d); this.dimmableState.setDevice(d);
this.dimmableState.setIntensity(30); this.dimmableState.setIntensity(30);
this.dimmableState.apply(); this.dimmableState.apply();
assertEquals(30, this.dimmableState.getDevice().getIntensity()); assertEquals(30, d.getIntensity());
} }
} }

View file

@ -12,11 +12,11 @@ import org.junit.jupiter.api.Test;
@DisplayName("Curtains tests") @DisplayName("Curtains tests")
public class StateTests { public class StateTests {
private DimmableState<DimmableLight> state; private DimmableState state;
@BeforeEach @BeforeEach
public void createState() { public void createState() {
this.state = new DimmableState<>(); this.state = new DimmableState();
} }
@Test @Test