From c2894caa5886b80c930ca5da62b63e5f38045bf9 Mon Sep 17 00:00:00 2001 From: sahar Date: Mon, 31 Jan 2022 22:40:50 +0100 Subject: [PATCH] quieter_test() for UsbPlayer.quieter() implemented --- src/test/java/device/UsbPlayerTest.java | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/test/java/device/UsbPlayerTest.java b/src/test/java/device/UsbPlayerTest.java index 499ef65..c9901a1 100644 --- a/src/test/java/device/UsbPlayerTest.java +++ b/src/test/java/device/UsbPlayerTest.java @@ -7,20 +7,23 @@ import static org.assertj.core.api.Assertions.assertThat; class UsbPlayerTest { - UsbPlayer up =new UsbPlayer(); + UsbPlayer up = new UsbPlayer(); @Test void louder_test() { - up.setLautstaerke(40); - up.louder(); - assertThat(up.getLautstaerke()).isEqualTo(41); + up.setLautstaerke(40); + up.louder(); + assertThat(up.getLautstaerke()).isEqualTo(41); } -/* + @Test - void quiter() { + void quieter_test() { + up.setLautstaerke(40); + up.quieter(); + assertThat(up.getLautstaerke()).isEqualTo(39); } - +/* @Test void getVolume() { }