|
@ -97,6 +97,8 @@ class BordComputerTest { |
|
|
assertThat(inputBC.changeDevice()).describedAs(testName).isNotNull(); |
|
|
assertThat(inputBC.changeDevice()).describedAs(testName).isNotNull(); |
|
|
}else if (caseNr == 4) { |
|
|
}else if (caseNr == 4) { |
|
|
assertThat(inputBC.changeDevice()).describedAs(testName).isNotNull(); |
|
|
assertThat(inputBC.changeDevice()).describedAs(testName).isNotNull(); |
|
|
|
|
|
}else if (caseNr == 5) { |
|
|
|
|
|
assertThat(inputBC.changeDevice()).describedAs(testName).isNotNull(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -130,13 +132,20 @@ class BordComputerTest { |
|
|
m =bc3.changeDevice(); |
|
|
m =bc3.changeDevice(); |
|
|
m =bc3.changeDevice(); //CDPlayer |
|
|
m =bc3.changeDevice(); //CDPlayer |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//fifth case |
|
|
|
|
|
BordComputer bc4 = new BordComputer(); |
|
|
|
|
|
bc4.readConfig(); |
|
|
|
|
|
bc4.setDevices(); |
|
|
|
|
|
m =bc4.changeDevice(); |
|
|
|
|
|
m =bc4.changeDevice(); //CDPlayer |
|
|
|
|
|
m =bc4.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 ", bc3,null,prvDevice,null,5) |
|
|
|
|
|
|
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|