Skip to content

Instantly share code, notes, and snippets.

@eugenp
Created October 15, 2011 14:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save eugenp/1289642 to your computer and use it in GitHub Desktop.
Save eugenp/1289642 to your computer and use it in GitHub Desktop.
Integration testing of a REST API - Custom REST Assert
public static void assertResponseCodeIs
( final HttpResponse response, final int expectedCode ){
final int statusCode = httpResponse.getStatusLine().getStatusCode();
assertEquals( expectedCode, statusCode );
}
@eugenp
Copy link
Author

eugenp commented Feb 14, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment