Ignore unknown properties in the camunda response so doesnt fail on
timestamp.
Updated unit test to account for changes to object mapper.
Issue-ID: SO-2990
Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com>
Change-Id: I15c064f7e93307f921c07d4aaa42122a5f93c380
import org.slf4j.LoggerFactory;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
+import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
String responseBody = camundaResponse.getBody();
CamundaResponse response = null;
ObjectMapper mapper = new ObjectMapper();
+ mapper.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
try {
response = mapper.readValue(responseBody, CamundaResponse.class);
} catch (IOException | NullPointerException e) {