From 57af0e334073b329ca9f48b353ab4cc3bd2027a8 Mon Sep 17 00:00:00 2001 From: "Benjamin, Max (mb388a)" Date: Fri, 22 Feb 2019 17:51:42 -0500 Subject: 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) --- .../test/java/org/onap/so/client/ResponseExceptionMapperImplTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bpmn/MSOCommonBPMN/src/test/java') 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"); -- cgit 1.2.3-korg