mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-17 18:51:10 +01:00
Fix unit test
This commit is contained in:
@@ -70,8 +70,8 @@ public class GroupCollectionToDtoMapperTest {
|
||||
@Test
|
||||
public void shouldCreateNextPageLink_whenHasMore() {
|
||||
PageResult<Group> pageResult = createPage(createGroups("nobodies", "bosses"), 0, 1);
|
||||
GroupCollectionDto groupCollectionDto = mapper.map(1, 1, pageResult);
|
||||
assertTrue(groupCollectionDto.getLinks().getLinkBy("next").get().getHref().contains("page=2"));
|
||||
GroupCollectionDto groupCollectionDto = mapper.map(0, 1, pageResult);
|
||||
assertTrue(groupCollectionDto.getLinks().getLinkBy("next").get().getHref().contains("page=1"));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user