Class Re2jSubjects
- java.lang.Object
-
- com.google.common.truth.extensions.re2j.Re2jSubjects
-
public final class Re2jSubjects extends Object
Truth subjects for re2j regular expressions.Truth natively provides subjects for dealing with
java.util.regexbased regular expressions. This class is intended to providecom.google.re2janalogues to those methods.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRe2jSubjects.Re2jStringSubjectSubject forStringsubjects which you can use to assert things aboutPatternregexes.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Subject.Factory<Re2jSubjects.Re2jStringSubject,String>re2jString()Returns a subject factory forStringsubjects which you can use to assert things aboutPatternregexes.
-
-
-
Method Detail
-
re2jString
public static Subject.Factory<Re2jSubjects.Re2jStringSubject,String> re2jString()
Returns a subject factory forStringsubjects which you can use to assert things aboutPatternregexes.This subject does not replace Truth's built-in
StringSubjectbut instead provides only the methods needed to deal with regular expressions.- See Also:
StringSubject
-
-