Skip to content

Commit

Permalink
fix breaking integration test due to default Product OrcidWorkType ch…
Browse files Browse the repository at this point in the history
…ange and alignment to product entity
  • Loading branch information
floriangantner committed Feb 27, 2024
1 parent 31abda6 commit b55d7aa
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ public void testProductWorkWithFundingEntityWithGrantNumberCreation() {
.build();

Item product = ItemBuilder.createItem(context, products)
.withTitle("Test publication")
.withTitle("Test product")
.withAuthor("Walter White")
.withIssueDate("2021-04-30")
.withType("http://purl.org/coar/resource_type/c_18cc")
Expand Down Expand Up @@ -572,10 +572,10 @@ public void testProductWorkWithFundingEntityWithGrantNumberAndUrlCreation() {
.build();

Item product = ItemBuilder.createItem(context, products)
.withTitle("Test publication")
.withTitle("Test product")
.withAuthor("Walter White")
.withIssueDate("2021-04-30")
.withType("Controlled Vocabulary for Resource Type Genres::text::book")
.withType("http://purl.org/coar/resource_type/c_18cc")
.withRelationFunding("Test funding", funding.getID().toString())
.withRelationGrantno("123456")
.build();
Expand Down Expand Up @@ -646,7 +646,7 @@ public void testEmptyProductWorkWithUnknownTypeCreation() {
assertThat(work.getShortDescription(), nullValue());
assertThat(work.getPutCode(), nullValue());
// assertThat(work.getWorkCitation(), notNullValue());
assertThat(work.getWorkType(), is(WorkType.OTHER));
assertThat(work.getWorkType(), is(WorkType.DATA_SET));
assertThat(work.getWorkTitle(), nullValue());
assertThat(work.getWorkContributors(), notNullValue());
assertThat(work.getWorkContributors().getContributor(), empty());
Expand Down

0 comments on commit b55d7aa

Please sign in to comment.