Closed Megamiun closed 6 years ago
Thanks for the PR. I'm not sure that we need to introduce TypeAndNullSafeDiagnosingMatcher
though? Can ConjunctionMatcher
not just extend DiagnosingMatcher
instead?
Oh, no, it is not needed, I just did that to minimize the changes inside ConjunctionMatcher
and that I thought it helped the organization. Can you solve this or should I apply a PR?
PS: Althought I should say I like the idea of having this class to circumvent this choice in Hamcrest original library.
No probs, I'll make the changes.
I created a minimal version of
TypeSafeDiagnosingMatcher
extendingDiagnosingMatcher
that accepts null values as parameter to matches.