diff --git a/src/test/java/ch/usi/inf/sa4/sanmarinoes/smarthut/models/DimmableStateTests.java b/src/test/java/ch/usi/inf/sa4/sanmarinoes/smarthut/models/DimmableStateTests.java index dac93e1..11ce6b2 100644 --- a/src/test/java/ch/usi/inf/sa4/sanmarinoes/smarthut/models/DimmableStateTests.java +++ b/src/test/java/ch/usi/inf/sa4/sanmarinoes/smarthut/models/DimmableStateTests.java @@ -33,4 +33,13 @@ public class DimmableStateTests { this.dimmableState.apply(); assertEquals(30, d.getIntensity()); } + + @Test + @DisplayName("apply") + public void copy() { + this.dimmableState.setIntensity(30); + + DimmableState copy = this.dimmableState.copy(); + assertEquals(30, copy.getIntensity()); + } }