From f1afedb7f93431436dcfbb5ce4aa9a28e7e02012 Mon Sep 17 00:00:00 2001 From: Daniel Palafox Date: Thu, 28 Sep 2023 17:02:46 -0500 Subject: [PATCH] fix: Sort by source unit test --- .../org/orcid/frontend/web/pagination/WorksPaginatorTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/orcid-web/src/test/java/org/orcid/frontend/web/pagination/WorksPaginatorTest.java b/orcid-web/src/test/java/org/orcid/frontend/web/pagination/WorksPaginatorTest.java index 232199e79fd..2a10808f122 100644 --- a/orcid-web/src/test/java/org/orcid/frontend/web/pagination/WorksPaginatorTest.java +++ b/orcid-web/src/test/java/org/orcid/frontend/web/pagination/WorksPaginatorTest.java @@ -181,8 +181,8 @@ public void testSourceSort() { Mockito.when(worksCacheManager.getGroupedWorks(Mockito.anyString())).thenReturn(works); Page 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