|
|
@ -5,6 +5,11 @@ import org.junit.jupiter.params.ParameterizedTest; |
|
|
|
import org.junit.jupiter.params.provider.Arguments; |
|
|
|
import org.junit.jupiter.params.provider.MethodSource; |
|
|
|
|
|
|
|
import java.util.stream.Stream; |
|
|
|
import org.junit.jupiter.params.ParameterizedTest; |
|
|
|
import org.junit.jupiter.params.provider.Arguments; |
|
|
|
import org.junit.jupiter.params.provider.MethodSource; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.stream.Stream; |
|
|
|
|
|
|
@ -16,6 +21,19 @@ class UsbPlayerTest { |
|
|
|
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 |
|
|
|
void getVolume() { |
|
|
@ -95,4 +113,5 @@ void louderTest(String testName, UsbPlayer inputPlay, int expectedResult) { |
|
|
|
Arguments.of("Volume is : 100 ", up2, 100) |
|
|
|
); |
|
|
|
} |
|
|
|
*/ |
|
|
|
} |