Home
last modified time | relevance | path

Searched refs:MatchesPattern (Results 1 – 14 of 14) sorted by relevance

/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/object/
DMatchesPatternTest.java4 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()
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/text/
DMatchesPattern.java9 public class MatchesPattern extends TypeSafeMatcher<String> { class
12 public MatchesPattern(Pattern pattern) { in MatchesPattern() method in MatchesPattern
31 return new MatchesPattern(pattern); in matchesPattern()
39 return new MatchesPattern(Pattern.compile(regex)); in matchesPattern()
/external/jsr305/ri/src/main/java/javax/annotation/
DMatchesPattern.java15 public @interface MatchesPattern { annotation
21 static class Checker implements TypeQualifierValidator<MatchesPattern> {
22 public When forConstantValue(MatchesPattern annotation, Object value) { in forConstantValue()
/external/jsr305/sampleUses/src/main/java/
DSocialSecurityNumber.java6 import javax.annotation.MatchesPattern;
11 @MatchesPattern("[0-9]{3}-[0-9]{2}-[0-9]{4}")
DCreditCardNumber.java6 import javax.annotation.MatchesPattern;
13 @MatchesPattern("[0-9]{16}")
/external/owasp/sanitizer/distrib/lib/
Djsr305.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/annotation/ javax/ ...
/external/owasp/sanitizer/lib/jsr305/
Djsr305.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/annotation/ javax/ ...
/external/guice/lib/build/
Djsr305.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/annotation/ javax/ ...
/external/owasp/sanitizer/tools/findbugs/lib/
Djsr305.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/annotation/ javax/ ...
Dannotations.jarMETA-INF/ META-INF/MANIFEST.MF edu/ edu/umd/ edu/ ...
/external/vogar/lib/
Djsr305.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/annotation/ javax/ ...
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/
DMatchers.java1418 return org.hamcrest.text.MatchesPattern.matchesPattern(pattern); in matchesPattern()
1426 return org.hamcrest.text.MatchesPattern.matchesPattern(regex); in matchesPattern()
/external/dagger2/lib/
Dgoogle-java-format-0.1-20151017.042846-2.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/external/robolectric/v3/runtime/
Dandroid-all-4.4_r1-robolectric-1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...