Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

Conversation

@rickie
Copy link
Contributor

@rickie rickie commented Dec 24, 2024

Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.java.testing.assertj.Assertj?organizationId=U3ByaW5n

This PR is created on Moderne and applies some AssertJ best practices on the codebase.
Let me know if you disagree with any of the changes, I can update the PR if needed.

CC: @timtebeek

Copy link
Member

@artembilan artembilan left a comment

Choose a reason for hiding this comment

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

Well, thank you for contribution, but let's see if we can make it better!
Or reviewing ourselves after the bot run, or improve such a bot.
WDYT?

@rickie rickie changed the title refactor: AssertJ best practices refactor: AssertJ and JUnit best practices Dec 25, 2024
@rickie rickie force-pushed the refactor/assert-j-best-practices branch from ab350fb to 9d74a5b Compare December 25, 2024 09:29
@rickie rickie changed the title refactor: AssertJ and JUnit best practices Apply AssertJ and JUnit 5 best practices Dec 25, 2024
@rickie rickie requested a review from artembilan December 25, 2024 09:50
Copy link
Member

@artembilan artembilan left a comment

Choose a reason for hiding this comment

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

Thanks for the update!
Unfortunately there is still something off:

 /home/runner/work/spring-integration-aws/spring-integration-aws/src/test/java/org/springframework/integration/aws/inbound/KinesisMessageDrivenChannelAdapterTests.java:190: error: cannot find symbol
		String record = payload.getFirst();
		                       ^
  symbol:   method getFirst()
  location: variable payload of type List<String>
1 error

Please, consider to run ./gradlew check locally before pushing.

Copy link

@timtebeek timtebeek left a comment

Choose a reason for hiding this comment

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

Great to see! One last suggestion from my side; and indeed some possible improvements for recipes still.

@artembilan artembilan added this to the 3.0.9 milestone Dec 27, 2024
@artembilan artembilan merged commit 510fe5b into spring-projects:main Dec 27, 2024
1 check passed
@artembilan
Copy link
Member

Thank you for contribution; looking forward for more!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants