Skip to content

Instantly share code, notes, and snippets.

@jwkidd3
Last active November 15, 2019 21:20
Show Gist options
  • Save jwkidd3/57f9a633029d4386ce1f69d114d8a44a to your computer and use it in GitHub Desktop.
Save jwkidd3/57f9a633029d4386ce1f69d114d8a44a to your computer and use it in GitHub Desktop.
<dependency>
<groupId>com.jayway.restassured</groupId>
<artifactId>rest-assured</artifactId>
<version>2.3.1</version>
</dependency>
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>json-path</artifactId>
</dependency>
<dependency>
<groupId>com.jayway.jsonpath</groupId>
<artifactId>json-path-assert</artifactId>
</dependency>
ResponseEntity<String> response = template.exchange(uri, HttpMethod.GET,
new HttpEntity<String>(headers),
String.class);
import static com.jayway.jsonpath.matchers.JsonPathMatchers.hasJsonPath;
import static org.hamcrest.CoreMatchers.hasItem;
import static org.junit.Assert.assertThat;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment