Improved simulator download case a bit. Added missing test asserts for
target token in DMF. Signed-off-by: Kai Zimmermann <kai.zimmermann@bosch-si.com>
This commit is contained in:
@@ -149,6 +149,8 @@ public class DeviceSimulatorUpdater {
|
||||
eventbus.post(new ProgressUpdate(device));
|
||||
return;
|
||||
}
|
||||
// download is 80% of the game after all
|
||||
device.setProgress(0.8);
|
||||
}
|
||||
|
||||
final double newProgress = device.getProgress() + 0.2;
|
||||
@@ -272,6 +274,10 @@ public class DeviceSimulatorUpdater {
|
||||
}
|
||||
|
||||
private static String hideTokenDetails(final String targetToken) {
|
||||
if (targetToken == null) {
|
||||
return "<NULL!>";
|
||||
}
|
||||
|
||||
if (targetToken.isEmpty()) {
|
||||
return "<EMTPTY!>";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user