Class HasVersion
- java.lang.Object
-
- ru.tinkoff.qa.neptune.core.api.steps.SelfDescribed
-
- ru.tinkoff.qa.neptune.core.api.hamcrest.NeptuneFeatureMatcher<HttpResponse<?>>
-
- ru.tinkoff.qa.neptune.http.api.hamcrest.response.HasVersion
-
- All Implemented Interfaces:
org.hamcrest.Matcher<HttpResponse<?>>
,org.hamcrest.SelfDescribing
public final class HasVersion extends NeptuneFeatureMatcher<HttpResponse<?>>
This matcher is for the checking of a response version.
-
-
Field Summary
-
Fields inherited from class ru.tinkoff.qa.neptune.core.api.hamcrest.NeptuneFeatureMatcher
expectedTypes, isNullSafe, mismatchDescriptions
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
featureMatches(HttpResponse<?> toMatch)
static HasVersion
hasVersion(HttpClient.Version version)
Creates a matcher that checks a response version.static HasVersion
hasVersion(org.hamcrest.Matcher<? super HttpClient.Version> versionMatcher)
Creates a matcher that checks a response version.-
Methods inherited from class ru.tinkoff.qa.neptune.core.api.hamcrest.NeptuneFeatureMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, appendMismatchDescription, appendMismatchDescription, appendMismatchDescription, checkFeature, concatMatcherDescriptions, concatMatcherDescriptions, describeMismatch, describeTo, matches, prerequisiteChecking
-
Methods inherited from class ru.tinkoff.qa.neptune.core.api.steps.SelfDescribed
toString
-
-
-
-
Method Detail
-
hasVersion
public static HasVersion hasVersion(org.hamcrest.Matcher<? super HttpClient.Version> versionMatcher)
Creates a matcher that checks a response version.- Parameters:
versionMatcher
- criteria that describes expected response version- Returns:
- a new instance of
HasVersion
-
hasVersion
public static HasVersion hasVersion(HttpClient.Version version)
Creates a matcher that checks a response version.- Parameters:
version
- is the expected version- Returns:
- a new instance of
HasVersion
-
featureMatches
protected boolean featureMatches(HttpResponse<?> toMatch)
- Specified by:
featureMatches
in classNeptuneFeatureMatcher<HttpResponse<?>>
-
-