Skip to content

Add Size Methods to AbstractRichIterable#18

Open
mattbertolini wants to merge 14 commits into
assertj:mainfrom
mattbertolini:mbertolini/rich-iterable-size-assertions
Open

Add Size Methods to AbstractRichIterable#18
mattbertolini wants to merge 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.

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