Skip to content

Add Size Methods to AbstractRichIterable#18

Merged
mattbertolini merged 14 commits into
assertj:mainfrom
mattbertolini:mbertolini/rich-iterable-size-assertions
Jun 5, 2026
Merged

Add Size Methods to AbstractRichIterable#18
mattbertolini merged 14 commits into
assertj:mainfrom
mattbertolini:mbertolini/rich-iterable-size-assertions

Conversation

@mattbertolini
Copy link
Copy Markdown
Collaborator

I'm beginning to override the methods in AbstractIterableAssert that make sense in AbstractRichIterable. I've started with all of the remaining size methods. Since RichIterable has a size() method, we can get benefits by using it rather than iterating through the collection with a stream.

I did this by first adding tests to validate that it already worked with the code found in AsbtractIterableAssert. Then I implemented the method in AbstractRichIterableAssert using Eclipse Collections code and made sure the tests still pass. This will be the pattern going forward.

@mattbertolini mattbertolini merged commit fb82a06 into assertj:main Jun 5, 2026
5 of 7 checks passed
@mattbertolini mattbertolini deleted the mbertolini/rich-iterable-size-assertions branch June 5, 2026 11:42
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.

1 participant