Class AbsentPattern
- java.lang.Object
-
- com.github.tomakehurst.wiremock.matching.ContentPattern<java.lang.String>
-
- com.github.tomakehurst.wiremock.matching.StringValuePattern
-
- com.github.tomakehurst.wiremock.matching.AbsentPattern
-
- All Implemented Interfaces:
NamedValueMatcher<java.lang.String>,ValueMatcher<java.lang.String>
public class AbsentPattern extends StringValuePattern
-
-
Field Summary
Fields Modifier and Type Field Description static AbsentPatternABSENT-
Fields inherited from class com.github.tomakehurst.wiremock.matching.ContentPattern
expectedValue
-
-
Constructor Summary
Constructors Constructor Description AbsentPattern(java.lang.String expectedValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetExpected()protected booleanisNullValuePermitted()MatchResultmatch(java.lang.String value)booleannullSafeIsAbsent()-
Methods inherited from class com.github.tomakehurst.wiremock.matching.StringValuePattern
and, equals, getName, hashCode, isAbsent, isPresent, or, toString
-
Methods inherited from class com.github.tomakehurst.wiremock.matching.ContentPattern
getValue
-
-
-
-
Field Detail
-
ABSENT
public static final AbsentPattern ABSENT
-
-
Method Detail
-
nullSafeIsAbsent
public boolean nullSafeIsAbsent()
- Overrides:
nullSafeIsAbsentin classStringValuePattern
-
match
public MatchResult match(java.lang.String value)
-
getExpected
public java.lang.String getExpected()
- Specified by:
getExpectedin interfaceNamedValueMatcher<java.lang.String>- Overrides:
getExpectedin classStringValuePattern
-
isNullValuePermitted
protected boolean isNullValuePermitted()
- Overrides:
isNullValuePermittedin classContentPattern<java.lang.String>
-
-