Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ protected UaaClientDetails addUserGroupsRequiredClient() {
HttpEntity<String> request = new HttpEntity<>(JsonUtils.writeValueAsString(client), headers);

ResponseEntity<String> response = new RestTemplate().postForEntity(serverRunning.getUrl("/oauth/clients"), request, String.class);
assertThat(response.getStatusCodeValue()).isEqualTo(201);
assertThat(response.getStatusCode().value()).isEqualTo(201);

return JsonUtils.readValue(response.getBody(), UaaClientDetails.class);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ void createNotAllowedGroupFailsCorrectly() throws URISyntaxException {
fail("must fail");
} catch (HttpClientErrorException e) {
assertThat(e.getStatusCode().is4xxClientError()).isTrue();
assertThat(e.getRawStatusCode()).isEqualTo(400);
assertThat(e.getStatusCode().value()).isEqualTo(400);
assertThat(e.getMessage()).contains("The group with displayName: " + g1.getDisplayName() + " is not allowed in Identity Zone " + testZoneId);
} finally {
IntegrationTestUtils.deleteZone(serverRunning.getBaseUrl(), testZoneId, adminToken);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void getClientCredentials() {
"/oauth/token?client_id=client_with_bcrypt_prefix&client_secret=password&grant_type=client_credentials");
ResponseEntity<Void> responseEntity = restTemplate.exchange(requestEntity, Void.class);

assertThat(responseEntity.getStatusCodeValue()).as("Status 200 expected").isEqualTo(200);
assertThat(responseEntity.getStatusCode().value()).as("Status 200 expected").isEqualTo(200);
}

@Test
Expand Down
Loading