From 0d41e742a9a5de848950cd841aa4fd99ecdc0d6e Mon Sep 17 00:00:00 2001 From: andrej romanov <50377758+auumgn@users.noreply.github.com> Date: Wed, 20 Nov 2024 21:06:56 +0200 Subject: [PATCH] actually fix the test --- .../web/controllers/PublicProfileControllerTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/orcid-web/src/test/java/org/orcid/frontend/web/controllers/PublicProfileControllerTest.java b/orcid-web/src/test/java/org/orcid/frontend/web/controllers/PublicProfileControllerTest.java index a1b69cd1bc..a95abc2f5c 100644 --- a/orcid-web/src/test/java/org/orcid/frontend/web/controllers/PublicProfileControllerTest.java +++ b/orcid-web/src/test/java/org/orcid/frontend/web/controllers/PublicProfileControllerTest.java @@ -200,9 +200,9 @@ public void testGetPersonDetails() { assertEquals("APP-5555555555555555", email1.get(0).getSource().retrieveSourcePath()); assertEquals("Source Client 1", email1.get(0).getSource().getSourceName().getContent()); assertNull(email1.get(0).getSource().getSourceOrcid()); - assertEquals("APP-5555555555555555", email2.get(0).getSource().retrieveSourcePath()); - assertEquals("Source Client 1", email2.get(0).getSource().getSourceName().getContent()); - assertNull(email2.get(0).getSource().getSourceOrcid()); + assertEquals("0000-0000-0000-0003", email2.get(0).getSource().retrieveSourcePath()); + assertEquals("Credit Name", email2.get(0).getSource().getSourceName().getContent()); + assertNotNull(email2.get(0).getSource().getSourceOrcid()); assertNotNull(personDetails.getPublicGroupedPersonExternalIdentifiers()); Map> extIds = personDetails.getPublicGroupedPersonExternalIdentifiers();