Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
remove extra logging that was accidentally checked in
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmason committed Jul 18, 2013
1 parent efcdf5c commit d20f704
Showing 1 changed file with 0 additions and 10 deletions.
Expand Up @@ -69,8 +69,6 @@ protected void prepareRequest(ClientRequest request)
@Override
protected void onResponse(ClientResponse response)
{
System.out.println("getPo() response object");
printResponse(response);
assertThat(response.getStatus(), is(200)); // Ok
assertHeaderValue(response, "Content-Disposition", "attachment; filename=\"document.txt.po\"");
assertHeaderValue(response, HttpHeaders.CONTENT_TYPE, MediaType.TEXT_PLAIN);
Expand All @@ -96,8 +94,6 @@ protected void prepareRequest(ClientRequest request)
@Override
protected void onResponse(ClientResponse response)
{
System.out.println("getPo2() response object");
printResponse(response);
assertThat(response.getStatus(), is(200)); // Ok
assertHeaderValue(response, "Content-Disposition", "attachment; filename=\"document-2.txt.po\"");
assertHeaderValue(response, HttpHeaders.CONTENT_TYPE, MediaType.TEXT_PLAIN);
Expand All @@ -110,12 +106,6 @@ protected void onResponse(ClientResponse response)
}.run();
}

private static void printResponse(ClientResponse response)
{
System.out.println("Status: " + response.getStatus());
System.out.println("Entity: " + (String) response.getEntity(String.class));
}

private static void assertPoFileCorrect( String poFileContents )
{
MessageStreamParser messageParser = new MessageStreamParser( new StringReader(poFileContents) );
Expand Down

0 comments on commit d20f704

Please sign in to comment.