|
@ -101,6 +101,8 @@ class BordComputerTest { |
|
|
assertThat(inputBC.changeDevice()).describedAs(testName).isNotNull(); |
|
|
assertThat(inputBC.changeDevice()).describedAs(testName).isNotNull(); |
|
|
}else if (caseNr == 6) { |
|
|
}else if (caseNr == 6) { |
|
|
assertThat(inputBC.changeDevice()).describedAs(testName).contains("USB Player"); |
|
|
assertThat(inputBC.changeDevice()).describedAs(testName).contains("USB Player"); |
|
|
|
|
|
}else if (caseNr == 7) { |
|
|
|
|
|
assertThat(inputBC.changeDevice()).describedAs(testName).contains("CDPlayer"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -148,13 +150,21 @@ class BordComputerTest { |
|
|
bc5.setDevices(); |
|
|
bc5.setDevices(); |
|
|
m =bc5.changeDevice(); |
|
|
m =bc5.changeDevice(); |
|
|
|
|
|
|
|
|
|
|
|
//seventh case |
|
|
|
|
|
BordComputer bc6 = new BordComputer(); |
|
|
|
|
|
bc6.readConfig(); |
|
|
|
|
|
bc6.setDevices(); |
|
|
|
|
|
m =bc6.changeDevice(); |
|
|
|
|
|
m =bc6.changeDevice(); |
|
|
|
|
|
|
|
|
return Stream.of( |
|
|
return Stream.of( |
|
|
Arguments.of("The order of the installedDevices should be changed ", bc,currentDevices,null,"",1), |
|
|
Arguments.of("The order of the installedDevices should be changed ", bc,currentDevices,null,"",1), |
|
|
Arguments.of("The active Device should be changed ", bc1,null,prvDevice,"",2), |
|
|
Arguments.of("The active Device should be changed ", bc1,null,prvDevice,"",2), |
|
|
Arguments.of("The new Device returns a String ", bc2,null,prvDevice,bc2.activeDevice.toString(),3), |
|
|
Arguments.of("The new Device returns a String ", bc2,null,prvDevice,bc2.activeDevice.toString(),3), |
|
|
Arguments.of("The new Device returns a String ", bc3,null,prvDevice,null,4), |
|
|
Arguments.of("The new Device returns a String ", bc3,null,prvDevice,null,4), |
|
|
Arguments.of("The new Device returns a String ", bc4,null,prvDevice,null,5), |
|
|
Arguments.of("The new Device returns a String ", bc4,null,prvDevice,null,5), |
|
|
Arguments.of("The new Device returns Info ", bc5,null,prvDevice,null,6) |
|
|
|
|
|
|
|
|
Arguments.of("The new Device returns Info ", bc5,null,prvDevice,null,6), |
|
|
|
|
|
Arguments.of("The new Device returns Info ", bc6,null,prvDevice,null,7) |
|
|
|
|
|
|
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|