Browse Source

Louder_test() for UsbPlayer.Louder() implemented

pull/1/head
sahar 3 years ago
parent
commit
2c3f2f167e
  1. 7
      src/test/java/device/UsbPlayerTest.java

7
src/test/java/device/UsbPlayerTest.java

@ -3,6 +3,7 @@ package device;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*; import static org.junit.jupiter.api.Assertions.*;
import static org.assertj.core.api.Assertions.assertThat;
class UsbPlayerTest { class UsbPlayerTest {
@ -10,8 +11,10 @@ class UsbPlayerTest {
@Test @Test
void louder() {
up.setLautstaerke(1);
void louder_test() {
up.setLautstaerke(40);
up.louder();
assertThat(up.getLautstaerke()).isEqualTo(41);
} }
/* /*
@Test @Test

Loading…
Cancel
Save