From 2171bc3b55f25b0b2bbe52aa764d351ac3d01b3f Mon Sep 17 00:00:00 2001 From: alpina0707 Date: Mon, 31 Jan 2022 20:58:54 +0100 Subject: [PATCH] added test for RadioPlayer quieter function quieterMax --- src/test/java/device/RadioPlayerTest.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/test/java/device/RadioPlayerTest.java b/src/test/java/device/RadioPlayerTest.java index 70eb705..9c34834 100644 --- a/src/test/java/device/RadioPlayerTest.java +++ b/src/test/java/device/RadioPlayerTest.java @@ -29,7 +29,12 @@ class RadioPlayerTest { rp.quieter(); assertThat(rp.getLautstaerke()).isEqualTo(0); } - + @Test + void quieterMax() { + rp.setLautstaerke(0); + rp.quieter(); + assertThat(rp.getLautstaerke()).isEqualTo(0); + } /* @Test void getVolume() {