Last active
June 8, 2022 16:55
-
-
Save garystafford/c77e98144bcc14149a244ec894772a63 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
void listWithQueryParams() { | |
List<CategoryEntity> category = given() | |
.when() | |
.get("v1/categories?page=2&size=4&sort_by=id") | |
.then() | |
.statusCode(Response.Status.OK.getStatusCode()) | |
.extract() | |
.as(new TypeRef<>() {}); | |
Assertions.assertEquals(category.size(), 4); | |
Assertions.assertEquals(category.get(0).id, 5); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment