-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
19 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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()); | ||
} | ||
|
||
|