diff --git a/orcid-core/src/test/java/org/orcid/core/manager/PersonDetailsManagerTest.java b/orcid-core/src/test/java/org/orcid/core/manager/PersonDetailsManagerTest.java index c89c437bef..0026d89a7a 100644 --- a/orcid-core/src/test/java/org/orcid/core/manager/PersonDetailsManagerTest.java +++ b/orcid-core/src/test/java/org/orcid/core/manager/PersonDetailsManagerTest.java @@ -71,7 +71,7 @@ public void testGetPersonDetails() { assertNotNull(person.getEmails()); assertNotNull(person.getEmails().getEmails()); - assertEquals(4, person.getEmails().getEmails().size()); + assertEquals(5, person.getEmails().getEmails().size()); for (Email email : person.getEmails().getEmails()) { assertTrue(email.isVerified()); @@ -125,8 +125,9 @@ public void testGetPublicPersonDetails() { assertNotNull(person.getEmails()); assertNotNull(person.getEmails().getEmails()); - assertEquals(1, person.getEmails().getEmails().size()); + assertEquals(2, person.getEmails().getEmails().size()); assertEquals("public_0000-0000-0000-0003@test.orcid.org", person.getEmails().getEmails().get(0).getEmail()); + assertEquals("public_0000-0000-0000-0003@orcid.org", person.getEmails().getEmails().get(1).getEmail()); assertNotNull(person.getBiography()); assertEquals(Visibility.PUBLIC, person.getBiography().getVisibility()); diff --git a/orcid-core/src/test/java/org/orcid/core/manager/RecordManagerTest.java b/orcid-core/src/test/java/org/orcid/core/manager/RecordManagerTest.java index d34233d81a..8feb18f924 100644 --- a/orcid-core/src/test/java/org/orcid/core/manager/RecordManagerTest.java +++ b/orcid-core/src/test/java/org/orcid/core/manager/RecordManagerTest.java @@ -152,8 +152,9 @@ public void testGetPublicRecord() { assertNotNull(person.getEmails()); assertNotNull(person.getEmails().getEmails()); - assertEquals(1, person.getEmails().getEmails().size()); + assertEquals(2, person.getEmails().getEmails().size()); assertEquals("public_0000-0000-0000-0003@test.orcid.org", person.getEmails().getEmails().get(0).getEmail()); + assertEquals("public_0000-0000-0000-0003@orcid.org", person.getEmails().getEmails().get(1).getEmail()); assertNotNull(person.getBiography()); assertEquals(Visibility.PUBLIC, person.getBiography().getVisibility());