Skip to content

Instantly share code, notes, and snippets.

@henesgokdag
Created March 6, 2021 18:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save henesgokdag/ec102f9e04e8f59e2f9b5564683f277e to your computer and use it in GitHub Desktop.
Save henesgokdag/ec102f9e04e8f59e2f9b5564683f277e to your computer and use it in GitHub Desktop.
getAllCharacters
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