Skip to content

Commit

Permalink
tweak unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
auumgn committed Dec 17, 2024
1 parent 5e57abc commit fbce891
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ public void getSummaryTest() {

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

Expand Down Expand Up @@ -624,12 +624,14 @@ private List<ProfileEmailDomainEntity> getEmailDomains() {
emailDomain.setEmailDomain(EMAIL_DOMAIN);
emailDomain.setOrcid(ORCID);
emailDomain.setDateCreated(new Date(124, 11, 20));
emailDomain.setGeneratedByScript(false);
emailDomains.add(emailDomain);

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

return emailDomains;
Expand Down

0 comments on commit fbce891

Please sign in to comment.