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