Merge branch 'tests' into 'dev'
Tests See merge request sa4-2020/the-sanmarinoes/backend!187
This commit is contained in:
commit
af93063cf4
1 changed files with 8 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
package ch.usi.inf.sa4.sanmarinoes.smarthut.models;
|
package ch.usi.inf.sa4.sanmarinoes.smarthut.models;
|
||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
|
import static org.junit.jupiter.api.Assertions.assertNull;
|
||||||
|
|
||||||
import org.junit.jupiter.api.BeforeEach;
|
import org.junit.jupiter.api.BeforeEach;
|
||||||
import org.junit.jupiter.api.DisplayName;
|
import org.junit.jupiter.api.DisplayName;
|
||||||
|
@ -58,4 +59,11 @@ public class TriggerTests {
|
||||||
booleanTrigger.setAutomationId(20L);
|
booleanTrigger.setAutomationId(20L);
|
||||||
assertEquals(20, booleanTrigger.getAutomationId());
|
assertEquals(20, booleanTrigger.getAutomationId());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testRemove() {
|
||||||
|
booleanTrigger.setDeviceId(30L);
|
||||||
|
booleanTrigger.removeDeviceAndScene();
|
||||||
|
assertNull(booleanTrigger.getDeviceId());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue