Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Spring Boot 3.3.0-M1 #31

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

onobc
Copy link
Collaborator

@onobc onobc commented Feb 4, 2024

This commit updates the spring-boot-dependencies version to 3.3.0-M1.

This update also transitively updates the AssertJ core library to version 3.25.1 which introduces a deprecation for AbstractAssert#toList. As such, these deprecated usages are replaced in several tests with AbstractAssert#asInstanceOf.

Resolves #10

This commit updates the spring-boot-dependencies version to `3.3.0-M1`.

This update also transitively updates the AssertJ core library to
version `3.25.1` which introduces a deprecation for
`AbstractAssert#toList`. As such, these deprecated usages are replaced
in several tests with `AbstractAssert#asInstanceOf`.

Resolves spring-cloud#10
@onobc onobc requested a review from artembilan February 4, 2024 19:15
@@ -1,5 +1,5 @@
/*
* Copyright 2020-2022 the original author or authors.
* Copyright 2020-2024 the original author or authors.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

What a nice little touch this is - thank you @artembilan

.hasSize(1)
.element(0)
.isEqualTo("foo"))
.asInstanceOf(InstanceOfAssertFactories.LIST)
Copy link
Collaborator Author

@onobc onobc Feb 4, 2024

Choose a reason for hiding this comment

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

[PR_GLOBAL_COMMENT]

As the PR comment describes, the asList is deprecated w/ suggested replacement asInstanceOf. I additionally simplified the usages as follows:

  • hasSize + element + isEqualTo -> containsExactly
  • hasSize + contains -> containsExactlyInAnyOrder
  • inInstanceOf + asList -> asInstanceOf(IOAF.LIST) (it checks instancef implicitly)

@artembilan artembilan merged commit de65597 into spring-cloud:main Feb 5, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update to Spring Boot 3.3.0-M1
2 participants