-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
Description
you ladies and gentlemen are geniuses by the way.
ArgumentMatchers.match( String regex ) exists... but wouldn't it be slightly better if it were match( Pattern regex )? (i.e. catering for multi-line Strings, etc.).
Also, devising a regex which distinctly does NOT match a given String is non-trivial. And yet not atypical of a mocking use case. Hence I suggest you clever people take the heavy lifting away from grunts like me by offering ArgumentMatchers.doesNotMatch( Pattern regex ).
I posed this question today on Stack Overflow here.
EDIT 1 by @bric3 : removed the issue guidelines
EDIT 2 by @bric3 : Renamed the issue title. Previous title was Feature request: ArgumentMatchers.doesNotMatch( Pattern regex )