Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
auumgn committed Nov 19, 2024
1 parent 177e0b4 commit 037e082
Showing 1 changed file with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,8 @@ public void getSummaryTest() {

// Email domains
assertEquals("2024-12-20", rs.getEmailDomains().getEmailDomains().get(0).getVerificationDate().toString());
assertEquals(1, rs.getEmailDomains().getEmailDomains().size());
assertEquals(null, rs.getEmailDomains().getEmailDomains().get(1).getVerificationDate());
assertEquals(2, rs.getEmailDomains().getEmailDomains().size());
}

/**
Expand Down Expand Up @@ -595,11 +596,13 @@ public void getSummaryPojoTest() {
assertEquals(4, rs.getPeerReviewPublicationGrants());
assertEquals(16, rs.getPeerReviewsTotal());
// Email domain
assertEquals(1, rs.getEmailDomains().size());
assertEquals(2, rs.getEmailDomains().size());
assertEquals("2024-12-20", rs.getEmailDomains().get(0).getVerificationDate());
assertEquals(null, rs.getEmailDomains().get(1).getVerificationDate());


}

private PersonExternalIdentifiers getPersonExternalIdentifiers() {
PersonExternalIdentifiers peis = new PersonExternalIdentifiers();
PersonExternalIdentifier pei = new PersonExternalIdentifier();
Expand All @@ -623,6 +626,13 @@ private List<ProfileEmailDomainEntity> getEmailDomains() {
emailDomain.setOrcid(ORCID);
emailDomain.setDateCreated(new Date(124, 11, 20));
emailDomains.add(emailDomain);

ProfileEmailDomainEntity emailDomain2 = new ProfileEmailDomainEntity();
emailDomain2.setEmailDomain(EMAIL_DOMAIN + "2");
emailDomain2.setOrcid(ORCID);
emailDomain2.setDateCreated(new Date(124, 9, 20));
emailDomains.add(emailDomain2);

return emailDomains;
}

Expand Down

0 comments on commit 037e082

Please sign in to comment.