|
|
@ -553,12 +553,12 @@ class UsbPlayerTest { |
|
|
|
|
|
|
|
static Stream<Arguments> chooseItem() { |
|
|
|
USB_Stick USBDrive = new USB_Stick(); |
|
|
|
//first case |
|
|
|
UsbPlayer up1 = new UsbPlayer(USBDrive); |
|
|
|
|
|
|
|
return Stream.of( |
|
|
|
Arguments.of("An Item from the Album was chosen ", up1.chooseItem(0), "Musik 01.mp3"), |
|
|
|
Arguments.of("Incorrect Nr of Item was given ", up1.chooseItem(-1), "The Nr is smaller than 0") |
|
|
|
Arguments.of("Incorrect Nr of Item was given < 0", up1.chooseItem(-1), "The Nr is smaller than 0"), |
|
|
|
Arguments.of("Incorrect Nr of Item was given > 0", up1.chooseItem(5), "The Nr is bigger than 0") |
|
|
|
); |
|
|
|
} |
|
|
|
|