Skip to content

Commit

Permalink
Fixed CollectionResourceIT
Browse files Browse the repository at this point in the history
  • Loading branch information
marcos-lg committed Aug 26, 2024
1 parent 86137e5 commit 5773aaa
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,12 @@ public void listDescriptorsTest() {
descriptor.setUsageRank(Rank.ABERRATION);
descriptor.setCountry(Country.SPAIN);

UUID collectionKey = UUID.randomUUID();
DescriptorGroup descriptorGroup = new DescriptorGroup();
descriptorGroup.setCollectionKey(collectionKey);
descriptorGroup.setTitle("title");

when(descriptorsService.getDescriptorGroup(anyLong())).thenReturn(descriptorGroup);
when(resourceNotFoundService.entityExists(any(), any())).thenReturn(true);
when(descriptorsService.listDescriptors(any()))
.thenReturn(new PagingResponse<>(0, 10, 1L, Collections.singletonList(descriptor)));
Expand Down

0 comments on commit 5773aaa

Please sign in to comment.