-
Notifications
You must be signed in to change notification settings - Fork 167
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
Apply AssertJ and JUnit 5 best practices #251
Apply AssertJ and JUnit 5 best practices #251
Conversation
There was a problem hiding this 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?
...ava/org/springframework/integration/aws/inbound/KinesisMessageDrivenChannelAdapterTests.java
Show resolved
Hide resolved
...ava/org/springframework/integration/aws/inbound/KinesisMessageDrivenChannelAdapterTests.java
Show resolved
Hide resolved
...ava/org/springframework/integration/aws/inbound/KinesisMessageDrivenChannelAdapterTests.java
Outdated
Show resolved
Hide resolved
...ava/org/springframework/integration/aws/inbound/KinesisMessageDrivenChannelAdapterTests.java
Outdated
Show resolved
Hide resolved
src/test/java/org/springframework/integration/aws/outbound/SnsMessageHandlerTests.java
Outdated
Show resolved
Hide resolved
For details on the recipe, see https://docs.openrewrite.org/recipes/java/testing/assertj/assertj-best-practices Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.java.testing.assertj.Assertj?organizationId=U3ByaW5n Co-authored-by: Moderne <[email protected]>
ab350fb
to
9d74a5b
Compare
There was a problem hiding this 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.
src/test/java/org/springframework/integration/aws/outbound/SqsMessageHandlerTests.java
Outdated
Show resolved
Hide resolved
...ava/org/springframework/integration/aws/inbound/KinesisMessageDrivenChannelAdapterTests.java
Outdated
Show resolved
Hide resolved
...ava/org/springframework/integration/aws/inbound/KinesisMessageDrivenChannelAdapterTests.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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.
Thank you for contribution; looking forward for more! |
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