|
|
@ -30,6 +30,12 @@ class BordComputerTest { |
|
|
|
if (testTyp.equals("item1")) { |
|
|
|
assertThat(testBc.deviceNames[0]).describedAs(testName).isEqualTo(expectedResult); |
|
|
|
} |
|
|
|
if (testTyp.equals("item2")) { |
|
|
|
assertThat(testBc.deviceNames[1]).describedAs(testName).isEqualTo(expectedResult); |
|
|
|
} |
|
|
|
if (testTyp.equals("item3")) { |
|
|
|
assertThat(testBc.deviceNames[2]).describedAs(testName).isEqualTo(expectedResult); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
static Stream<Arguments> readConfigOptions() { |
|
|
@ -38,7 +44,9 @@ class BordComputerTest { |
|
|
|
|
|
|
|
return Stream.of( |
|
|
|
Arguments.of("Check if file reader is getting every item in Geraete.config", "count", bc1, ""), |
|
|
|
Arguments.of("Check if file reader is getting the first element", "item1", bc1, "device.cdPlayer.CdPlayer") |
|
|
|
Arguments.of("Check if file reader is getting the first element", "item1", bc1, "device.cdPlayer.CdPlayer"), |
|
|
|
Arguments.of("Check if file reader is getting the second element", "item2", bc1, "device.radioPlayer.RadioPlayer"), |
|
|
|
Arguments.of("Check if file reader is getting the third element", "item3", bc1, "device.usbPlayer.UsbPlayer") |
|
|
|
); |
|
|
|
} |
|
|
|
|