From fbce8916c3001d118ca828e76b3bb208ebff8d48 Mon Sep 17 00:00:00 2001 From: andrej romanov <50377758+auumgn@users.noreply.github.com> Date: Tue, 17 Dec 2024 11:40:35 +0200 Subject: [PATCH] tweak unit test --- .../org/orcid/core/common/manager/SummaryManagerTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/orcid-core/src/test/java/org/orcid/core/common/manager/SummaryManagerTest.java b/orcid-core/src/test/java/org/orcid/core/common/manager/SummaryManagerTest.java index 2e477dcf30..d3af82f2cd 100644 --- a/orcid-core/src/test/java/org/orcid/core/common/manager/SummaryManagerTest.java +++ b/orcid-core/src/test/java/org/orcid/core/common/manager/SummaryManagerTest.java @@ -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()); } @@ -624,12 +624,14 @@ private List 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;