Deprecate assertThat(Iterable, AssertFactory)
and assertThat(Iterable, Class)
#3453
Milestone
assertThat(Iterable, AssertFactory)
and assertThat(Iterable, Class)
#3453
Both
assertThat(Iterable, AssertFactory)
andassertThat(Iterable, Class)
have been added in version 3.5.0 to aid the creation of type-specific assertions for the elements of anIterable
instance.Today, it's possible to write the following:
However, with the introduction of
InstanceOfAssertFactory
in version 3.13.0 and the correspondingfirst(InstanceOfAssertFactory)
variant in version 3.14.0, the above can be rewritten as:The main advantage of the latter is easier discoverability therefore we should deprecate the two
assertThat
entry points.The text was updated successfully, but these errors were encountered: