Skip to content

Feature/migrate iterable to contain in any order at least values expectations to kotlin test - #2219

Draft
TomerPacific wants to merge 2 commits into
robstoll:mainfrom
TomerPacific:feature/migrate-iterable-to-contain-in-any-order-at-least-values-expectations-to-kotlin-test
Draft

TomerPacific wants to merge 2 commits into
robstoll:mainfrom
TomerPacific:feature/migrate-iterable-to-contain-in-any-order-at-least-values-expectations-to-kotlin-test

Conversation

@TomerPacific

@TomerPacific TomerPacific commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Resolves #2020

This pull request refactors and improves the test structure for "Iterable to contain in any order at least values" expectations in both the fluent and infix APIs. The main focus is on extracting shared test logic into a new abstract base class, updating test class names for consistency, and simplifying test maintenance.

Test structure refactoring and improvements:

  • Introduced a new abstract base class, AbstractIterableToContainInAnyOrderAtLeastValuesExpectationsTest, to consolidate and share test logic for "at least" and "at least but at most" iterable containment expectations across different API styles.
  • Updated the fluent API test class by renaming it from IterableToContainInAnyOrderAtLeastValuesExpectationsSpec to IterableToContainInAnyOrderAtLeastValuesExpectationsTest and making it inherit from the new abstract base class. Also added a simple @Test method to trigger the test runner gutter. [1] [2]
  • Updated the infix API test class by renaming it from IterableToContainInAnyOrderAtLeastValuesExpectationsSpec to IterableToContainInAnyOrderAtLeastValuesExpectationsTest and making it inherit from the new abstract base class. Also added a simple @Test method to trigger the test runner gutter.

These changes improve code reuse, consistency, and maintainability of the test suite for iterable containment expectations.

I ran the tests locally on a Windows machine and they passed.


I confirm that I have read the Contributor Agreements v1.0, agree to be bound on them and confirm that my contribution is compliant.

This branch has not been deployed

No deployments
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.

migrate IterableToContainInAnyOrderAtLeastValuesExpectationsSpec to kotlin-test

1 participant