|
@ -10,19 +10,7 @@ class UsbPlayerTest { |
|
|
UsbPlayer up = new UsbPlayer(); |
|
|
UsbPlayer up = new UsbPlayer(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
void louder_test() { |
|
|
|
|
|
up.setLautstaerke(40); |
|
|
|
|
|
up.louder(); |
|
|
|
|
|
assertThat(up.getLautstaerke()).isEqualTo(41); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
void quieter_test() { |
|
|
|
|
|
up.setLautstaerke(40); |
|
|
|
|
|
up.quieter(); |
|
|
|
|
|
assertThat(up.getLautstaerke()).isEqualTo(39); |
|
|
|
|
|
} |
|
|
|
|
|
/* |
|
|
/* |
|
|
@Test |
|
|
@Test |
|
|
void getVolume() { |
|
|
void getVolume() { |
|
|