From 2c3f2f167e6dff0f7e5533360543b88bb4765894 Mon Sep 17 00:00:00 2001 From: sahar Date: Mon, 31 Jan 2022 22:13:33 +0100 Subject: [PATCH] Louder_test() for UsbPlayer.Louder() implemented --- src/test/java/device/UsbPlayerTest.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/test/java/device/UsbPlayerTest.java b/src/test/java/device/UsbPlayerTest.java index 80d47c9..499ef65 100644 --- a/src/test/java/device/UsbPlayerTest.java +++ b/src/test/java/device/UsbPlayerTest.java @@ -3,6 +3,7 @@ package device; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*; +import static org.assertj.core.api.Assertions.assertThat; class UsbPlayerTest { @@ -10,8 +11,10 @@ class UsbPlayerTest { @Test - void louder() { - up.setLautstaerke(1); + void louder_test() { + up.setLautstaerke(40); + up.louder(); + assertThat(up.getLautstaerke()).isEqualTo(41); } /* @Test