Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amontenegro committed Feb 16, 2024
1 parent eebe81b commit c23cd6c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
25 changes: 25 additions & 0 deletions orcid-test/src/main/resources/data/PeerReviewEntityData.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
/>
<peer_review
id="17"
orcid="0000-0000-0000-0004"
external_identifiers_json="{&quot;workExternalIdentifier&quot;:[{&quot;workExternalIdentifierType&quot;:&quot;AGR&quot;,&quot;workExternalIdentifierId&quot;:{&quot;content&quot;:&quot;work:external-identifier-id#5&quot;}}]}"
org_id="2"
peer_review_role="REVIEWER"
peer_review_type="REVIEW"
completion_day="2"
completion_month="2"
completion_year="2016"
url="http://peer_review.com/17"
visibility="LIMITED"
group_id="issn:00000"
subject_external_identifiers_json="{&quot;workExternalIdentifierType&quot;:&quot;AGR&quot;,&quot;workExternalIdentifierId&quot;:{&quot;content&quot;:&quot;peer-review:subject-external-identifier-id#5&quot;}}"
subject_name="SELF PRIVATE Peer Review"
subject_type="ARTISTIC_PERFORMANCE"
subject_translated_name="SELF LMITED Peer Review"
subject_translated_name_language_code="es"
subject_url="http://work.com/self/private"
subject_container_name="SELF LIMITED Peer Review"
client_source_id="APP-5555555555555556"
date_created="2015-01-01 00:00:00.00"
last_modified="2015-01-01 00:00:00.00"
display_index="6"
/>
</dataset>

0 comments on commit c23cd6c

Please sign in to comment.