Skip to content

Commit

Permalink
add assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
auumgn committed Nov 20, 2024
1 parent 45e30b4 commit 68989d3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,11 @@ public void testViewEmails() {
assertEquals(Visibility.PUBLIC.value(), email2.getVisibility().value());
assertEquals("/0000-0000-0000-0003/email", emails.getPath());
assertEquals("APP-5555555555555555", email.getSource().retrieveSourcePath());
assertEquals("Source Client 1", email.getSource().getSourceName().getContent());
assertNull(email.getSource().getSourceOrcid());
assertEquals("0000-0000-0000-0000", email2.getSource().retrieveSourcePath());
assertEquals("ORCID email validation", email2.getSource().getSourceName().getContent());
assertNull(email2.getSource().getSourceOrcid());
}

@Test
Expand Down Expand Up @@ -1301,6 +1306,11 @@ private void validatePerson(Person person) {
assertNotNull(email2.getLastModifiedDate());
assertNotNull(email2.getLastModifiedDate().getValue());
assertEquals("APP-5555555555555555", email.getSource().retrieveSourcePath());
assertEquals("Source Client 1", email.getSource().getSourceName().getContent());
assertNull(email.getSource().getSourceOrcid());
assertEquals("0000-0000-0000-0000", email2.getSource().retrieveSourcePath());
assertEquals("ORCID email validation", email2.getSource().getSourceName().getContent());
assertNull(email2.getSource().getSourceOrcid());
assertEquals(Visibility.PUBLIC.value(), email.getVisibility().value());
assertEquals(Visibility.PUBLIC.value(), email2.getVisibility().value());
assertNotNull(person.getExternalIdentifiers());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,11 @@ public void testViewEmails() {
assertEquals(Visibility.PUBLIC.value(), email2.getVisibility().value());
assertEquals("/0000-0000-0000-0003/email", emails.getPath());
assertEquals("APP-5555555555555555", email.getSource().retrieveSourcePath());
assertEquals("Source Client 1", email.getSource().getSourceName().getContent());
assertNull(email.getSource().getSourceOrcid());
assertEquals("0000-0000-0000-0000", email2.getSource().retrieveSourcePath());
assertEquals("ORCID email validation", email2.getSource().getSourceName().getContent());
assertNull(email2.getSource().getSourceOrcid());
}

@Test
Expand Down Expand Up @@ -1832,6 +1837,11 @@ private void validatePerson(Person person) {
assertNotNull(email2.getLastModifiedDate());
assertNotNull(email2.getLastModifiedDate().getValue());
assertEquals("APP-5555555555555555", email.getSource().retrieveSourcePath());
assertNull(email.getSource().getSourceOrcid());
assertEquals("Source Client 1", email.getSource().getSourceName().getContent());
assertEquals("0000-0000-0000-0000", email2.getSource().retrieveSourcePath());
assertNull(email2.getSource().getSourceOrcid());
assertEquals("ORCID email validation", email2.getSource().getSourceName().getContent());
assertEquals(Visibility.PUBLIC.value(), email.getVisibility().value());
assertEquals(Visibility.PUBLIC.value(), email2.getVisibility().value());
assertNotNull(person.getExternalIdentifiers());
Expand Down

0 comments on commit 68989d3

Please sign in to comment.