Skip to content

Commit

Permalink
105866: test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Atmire-Kristof committed Apr 29, 2024
1 parent 9df8341 commit edc0a4f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ public void acceptSuggestionTest() throws Exception {
ObjectMapper mapper = new ObjectMapper();
MvcResult mvcResult = getClient(adminToken).perform(
post("/api/submission/workspaceitems?owningCollection=" + colPublications.getID().toString())
.param("embed", "item")
.contentType(parseMediaType(TEXT_URI_LIST_VALUE))
.content("http://localhost/api/integration/externalsources/"
+ MockSuggestionExternalDataSource.NAME + "/entryValues/" + suggestionId))
Expand All @@ -415,7 +416,8 @@ public void acceptSuggestionTest() throws Exception {
workspaceItemId = (Integer) map.get("id");
String itemUuidString = String.valueOf(((Map) ((Map) map.get("_embedded")).get("item")).get("uuid"));

getClient(adminToken).perform(get("/api/submission/workspaceitems/" + workspaceItemId))
getClient(adminToken).perform(get("/api/submission/workspaceitems/" + workspaceItemId)
.param("embed", "item"))
.andExpect(status().isOk())
.andExpect(jsonPath("$", Matchers.allOf(
hasJsonPath("$.id", is(workspaceItemId)),
Expand Down

0 comments on commit edc0a4f

Please sign in to comment.