Browse Source

quieter_test() for UsbPlayer.quieter() implemented

pull/1/head
sahar 3 years ago
parent
commit
c2894caa58
  1. 17
      src/test/java/device/UsbPlayerTest.java

17
src/test/java/device/UsbPlayerTest.java

@ -7,20 +7,23 @@ import static org.assertj.core.api.Assertions.assertThat;
class UsbPlayerTest { class UsbPlayerTest {
UsbPlayer up =new UsbPlayer();
UsbPlayer up = new UsbPlayer();
@Test @Test
void louder_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 @Test
void quiter() {
void quieter_test() {
up.setLautstaerke(40);
up.quieter();
assertThat(up.getLautstaerke()).isEqualTo(39);
} }
/*
@Test @Test
void getVolume() { void getVolume() {
} }

Loading…
Cancel
Save