From c23cd6c26017656c882ee7bf6fd4d8700301784b Mon Sep 17 00:00:00 2001 From: amontenegro Date: Fri, 16 Feb 2024 11:38:41 -0600 Subject: [PATCH] Fix unit tests --- .../persistence/dao/PeerReviewDaoTest.java | 3 ++- .../resources/data/PeerReviewEntityData.xml | 25 +++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/orcid-persistence/src/test/java/org/orcid/persistence/dao/PeerReviewDaoTest.java b/orcid-persistence/src/test/java/org/orcid/persistence/dao/PeerReviewDaoTest.java index 16a2157c2b8..f40ac29e0ee 100644 --- a/orcid-persistence/src/test/java/org/orcid/persistence/dao/PeerReviewDaoTest.java +++ b/orcid-persistence/src/test/java/org/orcid/persistence/dao/PeerReviewDaoTest.java @@ -64,7 +64,8 @@ public void removeAllTest() { @Test public void hasPublicPeerReviewsTest() { assertTrue(dao.hasPublicPeerReviews("0000-0000-0000-0003")); - assertFalse(dao.hasPublicPeerReviews("0000-0000-0000-0002")); + assertTrue(dao.hasPublicPeerReviews("0000-0000-0000-0002")); + assertFalse(dao.hasPublicPeerReviews("0000-0000-0000-0004")); } @Test diff --git a/orcid-test/src/main/resources/data/PeerReviewEntityData.xml b/orcid-test/src/main/resources/data/PeerReviewEntityData.xml index ffd1fc121fe..67b76a6412f 100644 --- a/orcid-test/src/main/resources/data/PeerReviewEntityData.xml +++ b/orcid-test/src/main/resources/data/PeerReviewEntityData.xml @@ -404,5 +404,30 @@ date_created="2015-01-01 00:00:00.00" last_modified="2015-01-01 00:00:00.00" display_index="6" + /> + \ No newline at end of file