Prevent reading twice from ResponseEntity stream, since this caused IOErrors. 15/95915/1
authorgrabinsk <maciej.grabinski@nokia.com>
Wed, 18 Sep 2019 12:59:44 +0000 (14:59 +0200)
committergrabinsk <maciej.grabinski@nokia.com>
Wed, 18 Sep 2019 13:23:48 +0000 (15:23 +0200)
commite3b9b0d3162e8eba5df9903f03a4741ffb1115c7
tree6dc981f2f563ac799dcbd405a4c67ea0c93f9a42
parente288bedf6a7b83c6127cbb1bc4281084cdbc218e
Prevent reading twice from ResponseEntity stream, since this caused IOErrors.

Also moving empty response checks to parseJsonToGelAllPnfCorrelationId

Issue-ID: SO-2349
Signed-off-by: grabinsk <maciej.grabinski@nokia.com>
Change-Id: I316856d56106a1ae715812628695406f4147765d
Signed-off-by: grabinsk <maciej.grabinski@nokia.com>
bpmn/so-bpmn-infrastructure-common/src/main/java/org/onap/so/bpmn/infrastructure/pnf/dmaap/JsonUtilForPnfCorrelationId.java
bpmn/so-bpmn-infrastructure-common/src/main/java/org/onap/so/bpmn/infrastructure/pnf/dmaap/PnfEventReadyDmaapClient.java
bpmn/so-bpmn-infrastructure-common/src/test/java/org/onap/so/bpmn/infrastructure/pnf/dmaap/JsonUtilForPnfCorrelationIdTest.java
bpmn/so-bpmn-infrastructure-common/src/test/java/org/onap/so/bpmn/infrastructure/pnf/dmaap/PnfEventReadyDmaapClientTest.java