Searched refs:MatchesPattern (Results 1 – 7 of 7) sorted by relevance
4 import org.hamcrest.text.MatchesPattern;15 Matcher<String> matcher = new MatchesPattern(Pattern.compile(".")); in copesWithNullsAndUnknownTypes()23 assertThat("a", new MatchesPattern(Pattern.compile("a"))); in matchesExactString()28 …assertDoesNotMatch("A different string does not match", new MatchesPattern(Pattern.compile("a")), … in doesNotMatchADifferentString()33 … assertDoesNotMatch("A substring does not match", new MatchesPattern(Pattern.compile("a")), "ab"); in doesNotMatchSubstring()38 Matcher<?> m = new MatchesPattern(Pattern.compile("a[bc](d|e)")); in hasAReadableDescription()44 final Matcher<String> matcher = new MatchesPattern(Pattern.compile("a")); in describesAMismatch()50 Matcher<?> m = MatchesPattern.matchesPattern(Pattern.compile("a[bc](d|e)")); in factoryMethodAllowsCreationWithPattern()56 Matcher<?> m = MatchesPattern.matchesPattern("a[bc](d|e)"); in factoryMethodAllowsCreationWithString()
9 public class MatchesPattern extends TypeSafeMatcher<String> { class12 public MatchesPattern(Pattern pattern) { in MatchesPattern() method in MatchesPattern31 return new MatchesPattern(pattern); in matchesPattern()39 return new MatchesPattern(Pattern.compile(regex)); in matchesPattern()
15 public @interface MatchesPattern { annotation21 static class Checker implements TypeQualifierValidator<MatchesPattern> {22 public When forConstantValue(MatchesPattern annotation, Object value) { in forConstantValue()
6 import javax.annotation.MatchesPattern;11 @MatchesPattern("[0-9]{3}-[0-9]{2}-[0-9]{4}")
6 import javax.annotation.MatchesPattern;13 @MatchesPattern("[0-9]{16}")
177 bool MatchesPattern(Operation& op, in MatchesPattern() function193 (MatchesPattern(op, supported_ops) || in IsSupportedOp()
1418 return org.hamcrest.text.MatchesPattern.matchesPattern(pattern); in matchesPattern()1426 return org.hamcrest.text.MatchesPattern.matchesPattern(regex); in matchesPattern()