public static final class Re2jSubjects.Re2jStringSubject extends Subject
String subjects which you can use to assert things about Pattern regexes.Re2jSubjects.re2jString()| Modifier and Type | Method and Description | 
|---|---|
protected String | 
actualCustomStringRepresentation()
Supplies the direct string representation of the actual value to other methods which may prefix
 or otherwise position it in an error message. 
 | 
void | 
containsMatch(com.google.re2j.Pattern pattern)
Fails if the string does not contain a match on the given regex. 
 | 
void | 
containsMatch(String regex)
Fails if the string does not contain a match on the given regex. 
 | 
void | 
doesNotContainMatch(com.google.re2j.Pattern pattern)
Fails if the string contains a match on the given regex. 
 | 
void | 
doesNotContainMatch(String regex)
Fails if the string contains a match on the given regex. 
 | 
void | 
doesNotMatch(com.google.re2j.Pattern regex)
Fails if the string matches the given regex. 
 | 
void | 
doesNotMatch(String regex)
Fails if the string matches the given regex. 
 | 
void | 
matches(com.google.re2j.Pattern regex)
Fails if the string does not match the given regex. 
 | 
void | 
matches(String regex)
Fails if the string does not match the given regex. 
 | 
check, equals, failWithActual, failWithActual, failWithoutActual, hashCode, ignoreCheck, isAnyOf, isEqualTo, isIn, isInstanceOf, isNoneOf, isNotEqualTo, isNotIn, isNotInstanceOf, isNotNull, isNotSameInstanceAs, isNull, isSameInstanceAs, toStringprotected String actualCustomStringRepresentation()
SubjectSubjects should override this with care.
By default, this returns String.ValueOf(getActualValue()).
actualCustomStringRepresentation in class Subjectpublic void matches(String regex)
@GwtIncompatible(value="com.google.re2j.Pattern") public void matches(com.google.re2j.Pattern regex)
public void doesNotMatch(String regex)
@GwtIncompatible(value="com.google.re2j.Pattern") public void doesNotMatch(com.google.re2j.Pattern regex)
@GwtIncompatible(value="com.google.re2j.Pattern") public void containsMatch(com.google.re2j.Pattern pattern)
public void containsMatch(String regex)
@GwtIncompatible(value="com.google.re2j.Pattern") public void doesNotContainMatch(com.google.re2j.Pattern pattern)
public void doesNotContainMatch(String regex)
Copyright © 2019. All rights reserved.