diff options
author | Benjamin, Max (mb388a) <mb388a@us.att.com> | 2019-02-22 17:51:42 -0500 |
---|---|---|
committer | Benjamin, Max (mb388a) <mb388a@us.att.com> | 2019-02-22 17:51:56 -0500 |
commit | 57af0e334073b329ca9f48b353ab4cc3bd2027a8 (patch) | |
tree | 8df57e53bc98bec68b3fa12e7c0ab3694f71c994 /bpmn/MSOCommonBPMN/src | |
parent | 3163cdda24894994dbfa834dbf530bea71e076ba (diff) |
remove payload logging from metric/audit side
fixed unit test after changing how entities are read
remove payload logging from metric/audit side
Change-Id: Ibfe7cf96c76920926e9ae9ce5041389324d09b46
Issue-ID: SO-1564
Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
Diffstat (limited to 'bpmn/MSOCommonBPMN/src')
-rw-r--r-- | bpmn/MSOCommonBPMN/src/test/java/org/onap/so/client/ResponseExceptionMapperImplTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bpmn/MSOCommonBPMN/src/test/java/org/onap/so/client/ResponseExceptionMapperImplTest.java b/bpmn/MSOCommonBPMN/src/test/java/org/onap/so/client/ResponseExceptionMapperImplTest.java index 2df4b0bfdb..14a30391f9 100644 --- a/bpmn/MSOCommonBPMN/src/test/java/org/onap/so/client/ResponseExceptionMapperImplTest.java +++ b/bpmn/MSOCommonBPMN/src/test/java/org/onap/so/client/ResponseExceptionMapperImplTest.java @@ -95,7 +95,7 @@ public class ResponseExceptionMapperImplTest{ // given Response response = createMockResponse(Status.BAD_REQUEST); when(response.hasEntity()).thenReturn(true); - when(response.getEntity()).thenReturn(new ByteArrayInputStream("test message".getBytes(StandardCharsets.UTF_8))); + when(response.readEntity(String.class)).thenReturn("test message"); expectedExceptionTest.expect(BadRequestException.class); expectedExceptionTest.expectMessage("test message"); |