Skip to content

Commit

Permalink
Trying to fix exception that is thrown in Travis CI, but not locally
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander committed Mar 26, 2017
1 parent 1feb82c commit 6694a47
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,11 @@ public void checkResponseHeaders(){
@Test
public void testingFallbackResponse() throws JSONException {
ResponseEntity<String> response = restTemplate.getForEntity("/auth", String.class);
//JSONObject jsonResponse = new JSONObject(response.getBody());
JSONObject jsonResponse = new JSONObject(response.getBody());

// System.out.println(jsonResponse);
System.out.println(response);
System.out.println(jsonResponse);

assertEquals(HttpStatus.GONE, response.getStatusCode());
//assertEquals("Authentication service is unavailable!", jsonResponse.get("message"));
assertEquals(410, jsonResponse.get("status"));
assertEquals("Authentication service is unavailable!", jsonResponse.get("message"));
}
}

0 comments on commit 6694a47

Please sign in to comment.