This commit is contained in:
Claudio Maggioni (maggicl) 2020-05-25 12:13:32 +02:00
parent ef2247e38a
commit 9e98670ce9

View file

@ -1,6 +1,7 @@
package ch.usi.inf.sa4.sanmarinoes.smarthut.models;
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.DisplayName;
@ -58,4 +59,11 @@ public class TriggerTests {
booleanTrigger.setAutomationId(20L);
assertEquals(20, booleanTrigger.getAutomationId());
}
@Test
public void testRemove() {
booleanTrigger.setDeviceId(30L);
booleanTrigger.removeDeviceAndScene();
assertNull(booleanTrigger.getDeviceId());
}
}