Fix unit test

This commit is contained in:
René Pfeuffer
2018-06-25 09:37:25 +02:00
parent c847f3d437
commit 51b2407ac4
2 changed files with 5 additions and 9 deletions

View File

@@ -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