public static final class Re2jSubjects.Re2jStringSubject extends Subject<Re2jSubjects.Re2jStringSubject,String>
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.
|
actual, actualAsString, check, check, equals, fail, fail, fail, failComparing, failComparing, failWithActual, failWithActual, failWithBadResults, failWithCustomSubject, failWithoutActual, failWithoutActual, failWithoutSubject, failWithRawMessage, failWithRawMessageAndCause, getSubject, hashCode, ignoreCheck, internalCustomName, isAnyOf, isEqualTo, isIn, isInstanceOf, isNoneOf, isNotEqualTo, isNotIn, isNotInstanceOf, isNotNull, isNotSameAs, isNull, isSameAs, named, toString
protected String actualCustomStringRepresentation()
Subject
Subjects should override this with care.
By default, this returns String.ValueOf(getActualValue())
.
actualCustomStringRepresentation
in class Subject<Re2jSubjects.Re2jStringSubject,String>
public 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 © 2018. All rights reserved.