|
|
@ -89,6 +89,9 @@ class BordComputerTest { |
|
|
|
Device[] newDevicesList = inputBC.installedDevices.clone(); |
|
|
|
if (caseNr == 1 ) { |
|
|
|
assertThat(newDevicesList).describedAs(testName).isNotEqualTo(oldDevices); |
|
|
|
}else if (caseNr == 2) { |
|
|
|
Device currentDevice = inputBC.activeDevice; |
|
|
|
assertThat(currentDevice).describedAs(testName).isNotEqualTo(prvDevice); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -102,10 +105,18 @@ class BordComputerTest { |
|
|
|
currentDevices = bc.installedDevices.clone(); |
|
|
|
String m = bc.changeDevice(); |
|
|
|
|
|
|
|
//second case |
|
|
|
BordComputer bc1 = new BordComputer(); |
|
|
|
bc1.readConfig(); |
|
|
|
bc1.setDevices(); |
|
|
|
Device prvDevice = bc1.activeDevice; |
|
|
|
m =bc1.changeDevice(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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) |
|
|
|
); |
|
|
|
} |
|
|
|
} |