3 introduced the compose(List<Matcher<T>>) factory method which currently throws an IAE with an empty list of matchers. This is a reasonable use case when programmatically building composite matchers so we should support this by returning an anything matcher, as per allOf.
3 introduced the
compose(List<Matcher<T>>)
factory method which currently throws an IAE with an empty list of matchers. This is a reasonable use case when programmatically building composite matchers so we should support this by returning an anything matcher, as perallOf
.