fixed test error in deserializing device identifiers by reworking logic of placeholder device id

This commit is contained in:
Fredrik Teschke committed 2014-05-08 18:24:16 +02:00
1 parent 9c3524bddc
commit 329c4556b4
13 files changed
+54 -21

No files matched your search

@@ -40,7 +40,11 @@ public class DeviceIdentifierJsonDeserializer implements JsonDeserializer<Device
try {
return deviceServiceFinder.findService(deviceType).deserialize(deviceIdObject, deviceType, deviceStringRep);
} catch (TransformationException e) {
throw new JsonDeserializationException(e);
try {
return new PlaceHolderDeviceIdentifierJsonHandler().deserialize(deviceIdObject, deviceType, deviceStringRep);
} catch (TransformationException e2) {
throw new JsonDeserializationException(e2);
}
}
}