From d1d5b373d12f06394ba419a812fb04b8ea99a9fe Mon Sep 17 00:00:00 2001 From: andrej romanov <50377758+auumgn@users.noreply.github.com> Date: Wed, 20 Nov 2024 20:19:17 +0200 Subject: [PATCH] fix tests --- .../web/controllers/PublicRecordControllerLegacyTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 7da841d7dab..291e08f649a 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());