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

Resolve issues with SimplifyChainedAssertJAssertion #399

Merged
merged 5 commits into from
Aug 8, 2023
Merged

Conversation

AlekSimpson
Copy link
Contributor

What's changed?

This PR fixes the issues highlighted in #398

What's your motivation?

#398

Anyone you would like to review specifically?

@timtebeek

Checklist

  • I've added unit tests to cover both positive and negative cases
  • I've added the license header to any new files through ./gradlew licenseFormat
  • I've used the IntelliJ auto-formatter on affected files
  • I've updated the documentation (if applicable)

@AlekSimpson AlekSimpson added the enhancement New feature or request label Aug 7, 2023
@AlekSimpson AlekSimpson self-assigned this Aug 7, 2023
@timtebeek timtebeek changed the title Fix issue 398 Resolve issues with SimplifyChainedAssertJAssertion Aug 8, 2023
Copy link
Contributor

@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.

Wanted to additionally cover #398 (comment) and decided to then do a few more thorough changes such that it's clearer what we're doing where and why. The fix for the issue where we replaced the method invocations is now in the extractEitherArgument method.

@timtebeek timtebeek added bug Something isn't working and removed enhancement New feature or request labels Aug 8, 2023
@timtebeek timtebeek merged commit 7ca74a5 into main Aug 8, 2023
1 check passed
@timtebeek timtebeek deleted the alek/Fix398 branch August 8, 2023 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Simplify AssertJ chained assertions should not use hasSize(), hasSameSizeAs() or hasSameSizeAs(int)
2 participants