Skip to content

Migrate deprecated getStatusCodeValue/getRawStatusCode#3875

Open
gdgenchev wants to merge 1 commit intocloudfoundry:developfrom
gdgenchev:fix/deprecated-getstatuscodevalue
Open

Migrate deprecated getStatusCodeValue/getRawStatusCode#3875
gdgenchev wants to merge 1 commit intocloudfoundry:developfrom
gdgenchev:fix/deprecated-getstatuscodevalue

Conversation

@gdgenchev
Copy link
Copy Markdown
Contributor

Replaced in favour of getStatusCode().value()

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates integration tests to avoid deprecated Spring APIs (getStatusCodeValue() / getRawStatusCode()) by using getStatusCode().value() instead.

Changes:

  • Replace ResponseEntity#getStatusCodeValue() with ResponseEntity#getStatusCode().value().
  • Replace HttpClientErrorException#getRawStatusCode() with HttpClientErrorException#getStatusCode().value().

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
uaa/src/test/java/org/cloudfoundry/identity/uaa/integration/feature/PasswordIT.java Migrate status code assertion to getStatusCode().value()
uaa/src/test/java/org/cloudfoundry/identity/uaa/integration/ScimGroupEndpointsIntegrationTests.java Migrate exception status code assertion to getStatusCode().value()
uaa/src/test/java/org/cloudfoundry/identity/uaa/integration/PasswordGrantIntegrationTests.java Migrate status code assertion to getStatusCode().value()

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants