Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
auumgn committed Nov 20, 2024
1 parent c4c30ae commit 3c8e90a
Showing 1 changed file with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

View workflow job for this annotation

GitHub Actions / Unit test report for orcid-web

org.orcid.frontend.web.controllers.PublicProfileControllerTest ► testGetPersonDetails

Failed test found in: orcid-web/target/surefire-reports/TEST-org.orcid.frontend.web.controllers.PublicProfileControllerTest.xml Error: org.junit.ComparisonFailure: expected:<0000-0000-0000-000[0]> but was:<0000-0000-0000-000[3]>
Raw output
org.junit.ComparisonFailure: expected:<0000-0000-0000-000[0]> but was:<0000-0000-0000-000[3]>
	at org.orcid.frontend.web.controllers.PublicProfileControllerTest.testGetPersonDetails(PublicProfileControllerTest.java:203)
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();
Expand Down

0 comments on commit 3c8e90a

Please sign in to comment.