You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could be a useful addition, but in the meantime I think you'd be best served with a custom assertion. More manual work but you could get a better message out of it.
If it were just the one place in the tests using it, I'd probably hack up a custom assertion for that place, but there are several occurrences all with different rules for what options they accept.
I wish I could figure out how to extract a message from the inner assertions. I haven't looked at how all {} is doing it yet, but any is the direct counterpart to all so the two should probably work similarly.
I have a value where it can either be null, or if non-null it must match a pattern.
So I'd like to be able to do something like
The existing code I'm converting from Java and AssertJ is using
anyOf(Condition...)
to do this.I guess
matchesPredicate
is possible as a last resort, but it removes all potential for reusing existing assertions. :(The text was updated successfully, but these errors were encountered: