Skip to content

Commit

Permalink
https://github.com/metadatacenter/cedar-project/issues/1198
Browse files Browse the repository at this point in the history
  • Loading branch information
Attila L. Egyedi committed Nov 8, 2023
1 parent 88092f2 commit 0f262b9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, Object> summary = response.readEntity(new GenericType<Map<String, Object>>() {
Map<String, Object> summary = response.readEntity(new GenericType<>() {
});
System.out.println(JsonMapper.MAPPER.valueToTree(summary));
}
Expand All @@ -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<String, Object> summary = response.readEntity(new GenericType<Map<String, Object>>() {
Map<String, Object> summary = response.readEntity(new GenericType<>() {
});
System.out.println(JsonMapper.MAPPER.valueToTree(summary));
}
Expand Down Expand Up @@ -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<String, Object> summary = response.readEntity(new GenericType<Map<String, Object>>() {
Map<String, Object> summary = response.readEntity(new GenericType<>() {
});
System.out.println(JsonMapper.MAPPER.valueToTree(summary));
}
Expand Down

0 comments on commit 0f262b9

Please sign in to comment.