From a3b606088c32287c1ba4a2bdffe93d6c9d593117 Mon Sep 17 00:00:00 2001 From: omenem Date: Mon, 25 May 2020 14:06:49 +0200 Subject: [PATCH] dimmable state --- .../sanmarinoes/smarthut/models/DimmableStateTests.java | 9 +++++++++ 1 file changed, 9 insertions(+) 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()); + } }