diff --git a/orcid-web/src/test/java/org/orcid/frontend/web/controllers/PublicRecordControllerLegacyTest.java b/orcid-web/src/test/java/org/orcid/frontend/web/controllers/PublicRecordControllerLegacyTest.java index 7da841d7da..291e08f649 100644 --- a/orcid-web/src/test/java/org/orcid/frontend/web/controllers/PublicRecordControllerLegacyTest.java +++ b/orcid-web/src/test/java/org/orcid/frontend/web/controllers/PublicRecordControllerLegacyTest.java @@ -113,9 +113,11 @@ public void testGetPublicRecord() { assertNotNull(record.getWebsite()); assertNotNull(record.getEmails()); - assertEquals(1, record.getEmails().getEmails().size()); + assertEquals(2, record.getEmails().getEmails().size()); assertEquals("public_0000-0000-0000-0003@test.orcid.org", record.getEmails().getEmails().get(0).getValue()); + assertEquals("public_0000-0000-0000-0003@test.orcid.org", record.getEmails().getEmails().get(1).getValue()); assertEquals(Visibility.PUBLIC, record.getEmails().getEmails().get(0).getVisibility()); + assertEquals(Visibility.PUBLIC, record.getEmails().getEmails().get(1).getVisibility()); assertNotNull(record.getExternalIdentifier()); assertEquals(3, record.getExternalIdentifier().getExternalIdentifiers().size());