Skip to content

Commit

Permalink
Remove status code check from IntegrationTestUtils.getTokens since it…
Browse files Browse the repository at this point in the history
… returns the ResponseEntity object
  • Loading branch information
adrianhoelzl-sap committed Sep 4, 2024
1 parent 33fe348 commit ec2a5e6
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1348,9 +1348,7 @@ public static ResponseEntity<Map> getTokens(ServerRunning serverRunning,
}
HttpHeaders tokenHeaders = new HttpHeaders();
tokenHeaders.set("Authorization", testAccounts.getAuthorizationHeader(clientId, clientSecret));
final ResponseEntity<Map> response = serverRunning.postForMap("/oauth/token", formData, tokenHeaders);
assertStatusCode(response, HttpStatus.OK);
return response;
return serverRunning.postForMap("/oauth/token", formData, tokenHeaders);
}

public static void callCheckToken(ServerRunning serverRunning,
Expand Down

0 comments on commit ec2a5e6

Please sign in to comment.