Skip to content

Commit

Permalink
update email count in test
Browse files Browse the repository at this point in the history
  • Loading branch information
auumgn committed Oct 31, 2024
1 parent 8689e4a commit 6209755
Showing 1 changed file with 19 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -419,16 +419,18 @@ public void testValidateDeprecateProfileWithValidData() {
assertNotNull(deprecateProfile.getDeprecatingEmails());
assertEquals("0000-0000-0000-0002", deprecateProfile.getDeprecatingOrcid());
assertEquals("0000-0000-0000-0002 Given Names 0000-0000-0000-0002 Family Name", deprecateProfile.getDeprecatingAccountName());
assertEquals(2, deprecateProfile.getDeprecatingEmails().size());
assertEquals(3, deprecateProfile.getDeprecatingEmails().size());
assertTrue(deprecateProfile.getDeprecatingEmails().contains("[email protected]"));
assertTrue(deprecateProfile.getDeprecatingEmails().contains("[email protected]"));
assertTrue(deprecateProfile.getDeprecatingEmails().contains("[email protected]"));

assertEquals("0000-0000-0000-0001", deprecateProfile.getPrimaryOrcid());
assertEquals("0000-0000-0000-0001 Given Names 0000-0000-0000-0001 Family Name", deprecateProfile.getPrimaryAccountName());
assertNotNull(deprecateProfile.getPrimaryEmails());
assertEquals(2, deprecateProfile.getPrimaryEmails().size());
assertEquals(3, deprecateProfile.getPrimaryEmails().size());
assertTrue(deprecateProfile.getPrimaryEmails().contains("[email protected]"));
assertTrue(deprecateProfile.getPrimaryEmails().contains("[email protected]"));
assertTrue(deprecateProfile.getPrimaryEmails().contains("[email protected]"));
assertTrue(deprecateProfile.getErrors().isEmpty());

// Using orcid
Expand All @@ -441,16 +443,19 @@ public void testValidateDeprecateProfileWithValidData() {
assertNotNull(deprecateProfile.getDeprecatingEmails());
assertEquals("0000-0000-0000-0002", deprecateProfile.getDeprecatingOrcid());
assertEquals("0000-0000-0000-0002 Given Names 0000-0000-0000-0002 Family Name", deprecateProfile.getDeprecatingAccountName());
assertEquals(2, deprecateProfile.getDeprecatingEmails().size());
assertEquals(3, deprecateProfile.getDeprecatingEmails().size());
assertTrue(deprecateProfile.getDeprecatingEmails().contains("[email protected]"));
assertTrue(deprecateProfile.getDeprecatingEmails().contains("[email protected]"));
assertTrue(deprecateProfile.getDeprecatingEmails().contains("[email protected]"));


assertEquals("0000-0000-0000-0001", deprecateProfile.getPrimaryOrcid());
assertEquals("0000-0000-0000-0001 Given Names 0000-0000-0000-0001 Family Name", deprecateProfile.getPrimaryAccountName());
assertNotNull(deprecateProfile.getPrimaryEmails());
assertEquals(2, deprecateProfile.getPrimaryEmails().size());
assertEquals(3, deprecateProfile.getPrimaryEmails().size());
assertTrue(deprecateProfile.getPrimaryEmails().contains("[email protected]"));
assertTrue(deprecateProfile.getPrimaryEmails().contains("[email protected]"));
assertTrue(deprecateProfile.getPrimaryEmails().contains("[email protected]"));
assertTrue(deprecateProfile.getErrors().isEmpty());

// Using orcid URL
Expand All @@ -463,16 +468,19 @@ public void testValidateDeprecateProfileWithValidData() {
assertNotNull(deprecateProfile.getDeprecatingEmails());
assertEquals("0000-0000-0000-0002", deprecateProfile.getDeprecatingOrcid());
assertEquals("0000-0000-0000-0002 Given Names 0000-0000-0000-0002 Family Name", deprecateProfile.getDeprecatingAccountName());
assertEquals(2, deprecateProfile.getDeprecatingEmails().size());
assertEquals(3, deprecateProfile.getDeprecatingEmails().size());
assertTrue(deprecateProfile.getDeprecatingEmails().contains("[email protected]"));
assertTrue(deprecateProfile.getDeprecatingEmails().contains("[email protected]"));
assertTrue(deprecateProfile.getDeprecatingEmails().contains("[email protected]"));

assertEquals("0000-0000-0000-0001", deprecateProfile.getPrimaryOrcid());
assertEquals("0000-0000-0000-0001 Given Names 0000-0000-0000-0001 Family Name", deprecateProfile.getPrimaryAccountName());
assertNotNull(deprecateProfile.getPrimaryEmails());
assertEquals(2, deprecateProfile.getPrimaryEmails().size());
assertEquals(3, deprecateProfile.getPrimaryEmails().size());
assertTrue(deprecateProfile.getPrimaryEmails().contains("[email protected]"));
assertTrue(deprecateProfile.getPrimaryEmails().contains("[email protected]"));
assertTrue(deprecateProfile.getPrimaryEmails().contains("[email protected]"));

assertTrue(deprecateProfile.getErrors().isEmpty());

// Using orcid trim space
Expand All @@ -486,16 +494,19 @@ public void testValidateDeprecateProfileWithValidData() {
assertEquals("0000-0000-0000-0002", deprecateProfile.getDeprecatingOrcid());
assertEquals("0000-0000-0000-0002 Given Names 0000-0000-0000-0002 Family Name", deprecateProfile.getDeprecatingAccountName());

assertEquals(2, deprecateProfile.getDeprecatingEmails().size());
assertEquals(3, deprecateProfile.getDeprecatingEmails().size());
assertTrue(deprecateProfile.getDeprecatingEmails().contains("[email protected]"));
assertTrue(deprecateProfile.getDeprecatingEmails().contains("[email protected]"));
assertTrue(deprecateProfile.getDeprecatingEmails().contains("[email protected]"));


assertEquals("0000-0000-0000-0001", deprecateProfile.getPrimaryOrcid());
assertEquals("0000-0000-0000-0001 Given Names 0000-0000-0000-0001 Family Name", deprecateProfile.getPrimaryAccountName());
assertNotNull(deprecateProfile.getPrimaryEmails());
assertEquals(2, deprecateProfile.getPrimaryEmails().size());
assertEquals(3, deprecateProfile.getPrimaryEmails().size());
assertTrue(deprecateProfile.getPrimaryEmails().contains("[email protected]"));
assertTrue(deprecateProfile.getPrimaryEmails().contains("[email protected]"));
assertTrue(deprecateProfile.getPrimaryEmails().contains("[email protected]"));
assertTrue(deprecateProfile.getErrors().isEmpty());
}

Expand Down

0 comments on commit 6209755

Please sign in to comment.