-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -191,17 +191,18 @@ public void testGetPersonDetails() { | |
assertEquals(2, emails.keySet().size()); | ||
assertTrue(emails.containsKey("[email protected]")); | ||
assertTrue(emails.containsKey("[email protected]")); | ||
List<Email> publicEmails = emails.get("[email protected]"); | ||
assertEquals("[email protected]", publicEmails.get(0).getEmail()); | ||
assertEquals("[email protected]", publicEmails.get(1).getEmail()); | ||
assertEquals(Visibility.PUBLIC, publicEmails.get(0).getVisibility()); | ||
assertEquals(Visibility.PUBLIC, publicEmails.get(0).getVisibility()); | ||
assertEquals("APP-5555555555555555", publicEmails.get(0).getSource().retrieveSourcePath()); | ||
assertEquals("Source Client 1", publicEmails.get(0).getSource().getSourceName().getContent()); | ||
assertNull(publicEmails.get(0).getSource().getSourceOrcid()); | ||
assertEquals("0000-0000-0000-0000", publicEmails.get(1).getSource().retrieveSourcePath()); | ||
assertEquals("ORCID email validation", publicEmails.get(1).getSource().getSourceName().getContent()); | ||
assertNull(publicEmails.get(1).getSource().getSourceOrcid()); | ||
List<Email> email1 = emails.get("[email protected]"); | ||
List<Email> email2 = emails.get("[email protected]"); | ||
assertEquals("[email protected]", email1.get(0).getEmail()); | ||
assertEquals("[email protected]", email2.get(0).getEmail()); | ||
assertEquals(Visibility.PUBLIC, email1.get(0).getVisibility()); | ||
assertEquals(Visibility.PUBLIC, email2.get(0).getVisibility()); | ||
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("0000-0000-0000-0000", email2.get(0).getSource().retrieveSourcePath()); | ||
Check failure on line 203 in orcid-web/src/test/java/org/orcid/frontend/web/controllers/PublicProfileControllerTest.java GitHub Actions / Unit test report for orcid-weborg.orcid.frontend.web.controllers.PublicProfileControllerTest ► testGetPersonDetails
Raw output
|
||
assertEquals("ORCID email validation", email2.get(0).getSource().getSourceName().getContent()); | ||
assertNull(email2.get(0).getSource().getSourceOrcid()); | ||
|
||
assertNotNull(personDetails.getPublicGroupedPersonExternalIdentifiers()); | ||
Map<String, List<PersonExternalIdentifier>> extIds = personDetails.getPublicGroupedPersonExternalIdentifiers(); | ||
|