Skip to content

Commit

Permalink
fix: Sort by source unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielPalafox committed Sep 28, 2023
1 parent ec8a745 commit f1afedb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ public void testSourceSort() {
Mockito.when(worksCacheManager.getGroupedWorks(Mockito.anyString())).thenReturn(works);
Page<org.orcid.pojo.grouping.WorkGroup> page = worksPaginator.getWorksPage("orcid", 0, pageSize, false, WorksPaginator.SOURCE_SORT_KEY, false);

assertEquals("orcid", page.getGroups().get(0).getWorks().get(0).getSource());
assertEquals("orcid", page.getGroups().get(0).getWorks().get(49).getSource());
assertEquals("APP-5555-5555-5555-5555", page.getGroups().get(0).getWorks().get(0).getSource());
assertEquals("orcid", page.getGroups().get(49).getWorks().get(0).getSource());
}

@Test
Expand Down

0 comments on commit f1afedb

Please sign in to comment.