-
-
Save henesgokdag/ec102f9e04e8f59e2f9b5564683f277e to your computer and use it in GitHub Desktop.
getAllCharacters
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
public List<Character> getAllCharacters() { | |
List<Character> characterList = setupRequestSpecification() | |
.when() | |
.get("/character") | |
.then() | |
.statusCode(200) | |
.extract() | |
.body().jsonPath().getList("results", Character.class); | |
return characterList; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment