|
|
@ -92,6 +92,8 @@ class BordComputerTest { |
|
|
|
}else if (caseNr == 2) { |
|
|
|
Device currentDevice = inputBC.activeDevice; |
|
|
|
assertThat(currentDevice).describedAs(testName).isNotEqualTo(prvDevice); |
|
|
|
}else if (caseNr == 3) { |
|
|
|
assertThat(inputBC.changeDevice()).describedAs(testName).isNotNull(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -112,11 +114,18 @@ class BordComputerTest { |
|
|
|
Device prvDevice = bc1.activeDevice; |
|
|
|
m =bc1.changeDevice(); |
|
|
|
|
|
|
|
//third case |
|
|
|
BordComputer bc2 = new BordComputer(); |
|
|
|
bc2.readConfig(); |
|
|
|
bc2.setDevices(); |
|
|
|
m =bc2.changeDevice(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return Stream.of( |
|
|
|
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) |
|
|
|
); |
|
|
|
} |
|
|
|
} |