Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amontenegro committed Dec 10, 2024
1 parent d8b2e38 commit 82a2a66
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import org.orcid.api.publicV2.server.delegator.PublicV2ApiServiceDelegator;
import org.orcid.api.publicV2.server.delegator.impl.PublicV2ApiServiceDelegatorImpl;
import org.orcid.core.api.OrcidApiConstants;
import org.orcid.core.exception.DeactivatedException;
import org.orcid.core.exception.OrcidBadRequestException;
import org.orcid.core.exception.OrcidNonPublicElementException;
import org.orcid.core.exception.SearchStartParameterLimitExceededException;
Expand Down Expand Up @@ -570,8 +569,8 @@ public void testViewEmails() {
assertEquals(Visibility.PUBLIC.value(), email.getVisibility().value());
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());
assertEquals("0000-0000-0000-0000", email.getSource().retrieveSourcePath());
assertEquals("ORCID email validation", email.getSource().getSourceName().getContent());
assertNull(email.getSource().getSourceOrcid());
assertEquals("0000-0000-0000-0000", email2.getSource().retrieveSourcePath());
assertEquals("ORCID email validation", email2.getSource().getSourceName().getContent());
Expand Down Expand Up @@ -1305,8 +1304,8 @@ private void validatePerson(Person person) {
assertNotNull(email.getLastModifiedDate().getValue());
assertNotNull(email2.getLastModifiedDate());
assertNotNull(email2.getLastModifiedDate().getValue());
assertEquals("APP-5555555555555555", email.getSource().retrieveSourcePath());
assertEquals("Source Client 1", email.getSource().getSourceName().getContent());
assertEquals("0000-0000-0000-0000", email.getSource().retrieveSourcePath());
assertEquals("ORCID email validation", email.getSource().getSourceName().getContent());
assertNull(email.getSource().getSourceOrcid());
assertEquals("0000-0000-0000-0000", email2.getSource().retrieveSourcePath());
assertEquals("ORCID email validation", email2.getSource().getSourceName().getContent());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -597,8 +597,8 @@ public void testViewEmails() {
assertEquals(Visibility.PUBLIC.value(), email.getVisibility().value());
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());
assertEquals("0000-0000-0000-0000", email.getSource().retrieveSourcePath());
assertEquals("ORCID email validation", email.getSource().getSourceName().getContent());
assertNull(email.getSource().getSourceOrcid());
assertEquals("0000-0000-0000-0000", email2.getSource().retrieveSourcePath());
assertEquals("ORCID email validation", email2.getSource().getSourceName().getContent());
Expand Down Expand Up @@ -1836,9 +1836,9 @@ private void validatePerson(Person person) {
assertNotNull(email.getLastModifiedDate().getValue());
assertNotNull(email2.getLastModifiedDate());
assertNotNull(email2.getLastModifiedDate().getValue());
assertEquals("APP-5555555555555555", email.getSource().retrieveSourcePath());
assertEquals("0000-0000-0000-0000", email.getSource().retrieveSourcePath());
assertNull(email.getSource().getSourceOrcid());
assertEquals("Source Client 1", email.getSource().getSourceName().getContent());
assertEquals("ORCID email validation", email.getSource().getSourceName().getContent());
assertEquals("0000-0000-0000-0000", email2.getSource().retrieveSourcePath());
assertNull(email2.getSource().getSourceOrcid());
assertEquals("ORCID email validation", email2.getSource().getSourceName().getContent());
Expand Down

0 comments on commit 82a2a66

Please sign in to comment.