Class StringValuePattern
- java.lang.Object
-
- com.github.tomakehurst.wiremock.matching.ContentPattern<java.lang.String>
-
- com.github.tomakehurst.wiremock.matching.StringValuePattern
-
- All Implemented Interfaces:
NamedValueMatcher<java.lang.String>,ValueMatcher<java.lang.String>
- Direct Known Subclasses:
AbsentPattern,AbstractDateTimePattern,AbstractRegexPattern,AnythingPattern,ContainsPattern,EqualToJsonPattern,EqualToPattern,EqualToXmlPattern,LogicalAnd,LogicalOr,NegativeContainsPattern,PathPattern
public abstract class StringValuePattern extends ContentPattern<java.lang.String>
-
-
Field Summary
-
Fields inherited from class com.github.tomakehurst.wiremock.matching.ContentPattern
expectedValue
-
-
Constructor Summary
Constructors Constructor Description StringValuePattern(java.lang.String expectedValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LogicalAndand(StringValuePattern other)booleanequals(java.lang.Object o)java.lang.StringgetExpected()java.lang.StringgetName()inthashCode()java.lang.BooleanisAbsent()booleanisPresent()booleannullSafeIsAbsent()LogicalOror(StringValuePattern other)java.lang.StringtoString()-
Methods inherited from class com.github.tomakehurst.wiremock.matching.ContentPattern
getValue, isNullValuePermitted
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.github.tomakehurst.wiremock.matching.ValueMatcher
match
-
-
-
-
Method Detail
-
isPresent
public boolean isPresent()
-
isAbsent
public java.lang.Boolean isAbsent()
-
nullSafeIsAbsent
public boolean nullSafeIsAbsent()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getName
public final java.lang.String getName()
-
getExpected
public java.lang.String getExpected()
-
and
public LogicalAnd and(StringValuePattern other)
-
or
public LogicalOr or(StringValuePattern other)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-