From 53023851b48c3e2f51e96fdae81788d2f93b7c88 Mon Sep 17 00:00:00 2001 From: GordeaS Date: Fri, 28 Jun 2024 14:23:50 +0200 Subject: [PATCH] fix integration test --- .../eu/europeana/api/set/integration/web/WebUserSetRestIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/set-integration-testing/src/integration-test/java/eu/europeana/api/set/integration/web/WebUserSetRestIT.java b/set-integration-testing/src/integration-test/java/eu/europeana/api/set/integration/web/WebUserSetRestIT.java index 5908a375..2aa0f53b 100644 --- a/set-integration-testing/src/integration-test/java/eu/europeana/api/set/integration/web/WebUserSetRestIT.java +++ b/set-integration-testing/src/integration-test/java/eu/europeana/api/set/integration/web/WebUserSetRestIT.java @@ -193,7 +193,7 @@ public void getUserSet_Success() throws Exception { // without page in request, it is not a collection page assertFalse(containsKeyOrValue(result, CommonLdConstants.COLLECTION_PAGE)); assertFalse(containsKeyOrValue(result, WebUserSetFields.PART_OF)); - assertEquals(((JSONObject)(new JSONObject(result)).get("creator")).getString("type"),AgentTypes.PERSON.name()); + assertEquals(AgentTypes.PERSON.getJsonValue(), ((JSONObject)(new JSONObject(result)).get("creator")).getString("type")); } // Update user set Tests