return false;
}
}
-
+
/**
* Insert multi values.
*
}
}
} else {
- result = type.decode(element.getText());
+ String textValue = element.getText();
+ if (textValue != null && textValue.trim().isEmpty()) {
+ result = null;
+ } else {
+ result = type.decode(textValue);
+ }
}
} else if (type.isListType()) {
ListType ltype = (ListType) type;
}
// Check selected fields in the updated common part.
- Assert.assertEquals(updatedMovementCommon.getNormalLocation(),
- movementCommon.getNormalLocation(), "Data in updated object did not match submitted data.");
+
+ // By submitting an empty string in the update payload, the value of this field
+ // in the object created from the response payload will be null.
+ Assert.assertNull(updatedMovementCommon.getNormalLocation(), "Data in updated object did not match submitted data.");
if(logger.isDebugEnabled()){
logger.debug("Normal location after update=|" + updatedMovementCommon.getNormalLocation() + "|");
}