|
|
@ -30,4 +30,25 @@ class USB_StickTest { |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
//ChangeAlbum |
|
|
|
@ParameterizedTest |
|
|
|
@MethodSource("ChangeAlbumOptions") |
|
|
|
void ChangeAlbumTest(String testName, USB_Stick s) {//, int expectedResult |
|
|
|
ArrayList<String> a = new ArrayList<String>(); |
|
|
|
a = s.getAlbum(); |
|
|
|
|
|
|
|
assertThat(a).describedAs(testName).contains("File 01.txt","File 02.txt","File 03.txt"); |
|
|
|
} |
|
|
|
|
|
|
|
static Stream<Arguments> ChangeAlbumOptions() { |
|
|
|
USB_Stick stick = new USB_Stick(); |
|
|
|
ArrayList<String> AlbumsItems = new ArrayList<>(); |
|
|
|
stick.ChangeAlbum(); |
|
|
|
|
|
|
|
|
|
|
|
return Stream.of( |
|
|
|
Arguments.of("First Album is loaded", stick)//,something |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
} |