Skip to content

Instantly share code, notes, and snippets.

@mukkesmarty
Last active October 16, 2018 06:27
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 mukkesmarty/b7939e7d61cd2e1f3b0168a21b88bbbe to your computer and use it in GitHub Desktop.
Save mukkesmarty/b7939e7d61cd2e1f3b0168a21b88bbbe to your computer and use it in GitHub Desktop.
public class FunctionalTest{
@Test
public void setup(){
baseURI = "<YOURENDPOINTURL>";
String appkey = "<YOURAPPKEY>";
given().
header("AppKey", appkey).
when().
get(baseURI).
then().
statusCode(200)
.assertThat()
.body("payload.voyages.size", equalTo(45))
.log().everything();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment