From 0f262b99f286206a36c0055b70339655b7260f49 Mon Sep 17 00:00:00 2001 From: "Attila L. Egyedi" Date: Tue, 7 Nov 2023 17:40:51 -0800 Subject: [PATCH] https://github.com/metadatacenter/cedar-project/issues/1198 --- .../cedar/messaging/resources/MessagesResourceTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cedar-messaging-server-application/src/test/java/org/metadatacenter/cedar/messaging/resources/MessagesResourceTest.java b/cedar-messaging-server-application/src/test/java/org/metadatacenter/cedar/messaging/resources/MessagesResourceTest.java index c88a045..2ba76b2 100644 --- a/cedar-messaging-server-application/src/test/java/org/metadatacenter/cedar/messaging/resources/MessagesResourceTest.java +++ b/cedar-messaging-server-application/src/test/java/org/metadatacenter/cedar/messaging/resources/MessagesResourceTest.java @@ -48,7 +48,7 @@ public void sendFromUser1ToUser2() { Response response = client.target(url).request().header("Authorization", authHeader1).post(postContent); Assert.assertEquals(Status.OK.getStatusCode(), response.getStatus()); Assert.assertEquals(MediaType.APPLICATION_JSON, response.getHeaderString(HttpHeaders.CONTENT_TYPE)); - Map summary = response.readEntity(new GenericType>() { + Map summary = response.readEntity(new GenericType<>() { }); System.out.println(JsonMapper.MAPPER.valueToTree(summary)); } @@ -72,7 +72,7 @@ public void sendFromCedarAdminToUser1() { Response response = client.target(url).request().header("Authorization", authHeaderAdmin).post(postContent); Assert.assertEquals(Status.OK.getStatusCode(), response.getStatus()); Assert.assertEquals(MediaType.APPLICATION_JSON, response.getHeaderString(HttpHeaders.CONTENT_TYPE)); - Map summary = response.readEntity(new GenericType>() { + Map summary = response.readEntity(new GenericType<>() { }); System.out.println(JsonMapper.MAPPER.valueToTree(summary)); } @@ -101,7 +101,7 @@ public void sendFromProcessToUser2() { Response response = client.target(url).request().header("Authorization", authHeaderAdmin).post(postContent); Assert.assertEquals(Status.OK.getStatusCode(), response.getStatus()); Assert.assertEquals(MediaType.APPLICATION_JSON, response.getHeaderString(HttpHeaders.CONTENT_TYPE)); - Map summary = response.readEntity(new GenericType>() { + Map summary = response.readEntity(new GenericType<>() { }); System.out.println(JsonMapper.MAPPER.valueToTree(summary)); }