fix
This commit is contained in:
parent
0ce6e84380
commit
940c072711
2 changed files with 3 additions and 3 deletions
|
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue