Skip to content

Merge FactoryBasedAssert classes into their respective counterparts #4098

@scordio

Description

@scordio

#4076 introduced the following private classes:

  • AbstractIterableAssert.FactoryBasedAssert
  • AbstractCollectionAssert.FactoryBasedAssert
  • AbstractListAssert.FactoryBasedAssert

They should be merged into their respective counterparts, as done in 61c4e25:

  • IterableAssert
  • CollectionAssert
  • ListAssert

When doing so, we might want to keep the new factory-based constructor with package-private visibility, as depending code should still favor factory methods in Assertions and the withElementAssert API.

Given that this change breaks backward compatibility, it should be done in version 4 only.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions