jasonfagerberg-toast commented on code in PR #694: URL: https://github.com/apache/directory-scimple/pull/694#discussion_r1873378299
########## scim-core/src/test/java/org/apache/directory/scim/core/repository/PatchHandlerTest.java: ########## @@ -56,6 +57,43 @@ public PatchHandlerTest() { this.patchHandler = new DefaultPatchHandler(schemaRegistry); } + @Test + public void applyReplaceEntireEnterpriseExtension() { + String enterpriseExtensionUrn = "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"; + Map<String, String> enterpriseExtensionValue = new HashMap<>(); + enterpriseExtensionValue.put("costCenter", "New Cost Center"); + enterpriseExtensionValue.put("department", "New Department"); + PatchOperation op = patchOperation(REPLACE, enterpriseExtensionUrn, enterpriseExtensionValue); + ScimUser updatedUser = patchHandler.apply(user(), List.of(op)); + EnterpriseExtension actual = (EnterpriseExtension) updatedUser.getExtension("urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"); Review Comment: Pushed this cleanup to the branch -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@directory.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@directory.apache.org For additional commands, e-mail: dev-h...@directory.apache.org