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.setIntensity(30);
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")
public class StateTests {
private DimmableState<DimmableLight> state;
private DimmableState state;
@BeforeEach
public void createState() {
this.state = new DimmableState<>();
this.state = new DimmableState();
}
@Test