public class DetailedCookieMatcher extends org.hamcrest.core.CombinableMatcher<Cookie>
Cookie
instances.
Can be instantiated via RestAssuredMatchers
factory method.Modifier and Type | Method and Description |
---|---|
DetailedCookieMatcher |
comment(org.hamcrest.Matcher<? super String> commentMatcher)
Verifies whether comment of cookie satisfies specified matcher.
|
DetailedCookieMatcher |
comment(String expectedComment)
Verifies whether comment of cookie is equal to specified argument.
|
DetailedCookieMatcher |
domain(org.hamcrest.Matcher<? super String> domainMatcher)
Verifies whether domain of cookie satisfies specified matcher.
|
DetailedCookieMatcher |
domain(String expectedDomain)
Verifies whether domain of cookie is equal to specified argument.
|
DetailedCookieMatcher |
expiryDate(Date expectedExpiryDate)
Verifies whether expiry date of cookie is equal to specified argument.
|
DetailedCookieMatcher |
expiryDate(org.hamcrest.Matcher<? super Date> expiryDateMatcher)
Verifies whether expiry date of cookie satisfies specified matcher.
|
DetailedCookieMatcher |
httpOnly(boolean expectedHttpOnlyValue)
Verifies whether http-only property of cookie is equal to specified argument.
|
DetailedCookieMatcher |
httpOnly(org.hamcrest.Matcher<? super Boolean> httpOnlyMatcher)
Verifies whether http-only property of cookie satisfies specified matcher.
|
DetailedCookieMatcher |
maxAge(int expectedMaxAgeValue)
Verifies whether max age of cookie is equal to specified argument.
|
DetailedCookieMatcher |
maxAge(org.hamcrest.Matcher<? super Integer> maxAgeMatcher)
Verifies whether max age of cookie satisfies specified matcher.
|
DetailedCookieMatcher |
path(org.hamcrest.Matcher<? super String> pathMatcher)
Verifies whether path of cookie satisfies specified matcher.
|
DetailedCookieMatcher |
path(String expectedPath)
Verifies whether path of cookie is equal to specified argument.
|
DetailedCookieMatcher |
secured(boolean expectedSecuredValue)
Verifies whether secured property of cookie is equal to specified argument.
|
DetailedCookieMatcher |
secured(org.hamcrest.Matcher<? super Boolean> securedMatcher)
Verifies whether secured property of cookie satisfies specified matcher.
|
DetailedCookieMatcher |
value(org.hamcrest.Matcher<? super String> valueMatcher)
Verifies whether value of cookie satisfies specified matcher.
|
DetailedCookieMatcher |
value(String expectedValue)
Verifies whether value of cookie is equal to specified argument.
|
DetailedCookieMatcher |
version(int expectedVersionValue)
Verifies whether version of cookie is equal to specified argument.
|
DetailedCookieMatcher |
version(org.hamcrest.Matcher<? super Integer> versionMatcher)
Verifies whether version of cookie satisfies specified matcher.
|
and, both, describeTo, either, matchesSafely, or
public DetailedCookieMatcher value(String expectedValue)
expectedValue
- expected value of cookieDetailedCookieMatcher
instance with and-composed value property assertionpublic DetailedCookieMatcher value(org.hamcrest.Matcher<? super String> valueMatcher)
valueMatcher
- value assertionDetailedCookieMatcher
instance with and-composed value property assertionpublic DetailedCookieMatcher comment(String expectedComment)
expectedComment
- expected comment of cookieDetailedCookieMatcher
instance with and-composed comment property assertionpublic DetailedCookieMatcher comment(org.hamcrest.Matcher<? super String> commentMatcher)
commentMatcher
- comment assertionDetailedCookieMatcher
instance with and-composed comment property assertionpublic DetailedCookieMatcher expiryDate(Date expectedExpiryDate)
expectedExpiryDate
- expected expiry date of cookieDetailedCookieMatcher
instance with and-composed expiry date property assertionpublic DetailedCookieMatcher expiryDate(org.hamcrest.Matcher<? super Date> expiryDateMatcher)
expiryDateMatcher
- expiry date assertionDetailedCookieMatcher
instance with and-composed expiry date property assertionpublic DetailedCookieMatcher domain(String expectedDomain)
expectedDomain
- expected domain of cookieDetailedCookieMatcher
instance with and-composed domain property assertionpublic DetailedCookieMatcher domain(org.hamcrest.Matcher<? super String> domainMatcher)
domainMatcher
- assertion for domain propertyDetailedCookieMatcher
instance with and-composed domain property assertionpublic DetailedCookieMatcher path(String expectedPath)
expectedPath
- expected path of cookieDetailedCookieMatcher
instance with and-composed path property assertionpublic DetailedCookieMatcher path(org.hamcrest.Matcher<? super String> pathMatcher)
pathMatcher
- assertion for path propertyDetailedCookieMatcher
instance with and-composed path property assertionpublic DetailedCookieMatcher secured(boolean expectedSecuredValue)
expectedSecuredValue
- expected value of secured propertyDetailedCookieMatcher
instance with and-composed secured property assertionpublic DetailedCookieMatcher secured(org.hamcrest.Matcher<? super Boolean> securedMatcher)
securedMatcher
- assertion for secured propertyDetailedCookieMatcher
instance with and-composed secured property assertionpublic DetailedCookieMatcher httpOnly(boolean expectedHttpOnlyValue)
expectedHttpOnlyValue
- expected http-only property valueDetailedCookieMatcher
instance with and-composed http-only property assertionpublic DetailedCookieMatcher httpOnly(org.hamcrest.Matcher<? super Boolean> httpOnlyMatcher)
httpOnlyMatcher
- assertion for domain propertyDetailedCookieMatcher
instance with and-composed http-only property assertionpublic DetailedCookieMatcher version(int expectedVersionValue)
expectedVersionValue
- expected version of cookieDetailedCookieMatcher
instance with and-composed version property assertionpublic DetailedCookieMatcher version(org.hamcrest.Matcher<? super Integer> versionMatcher)
versionMatcher
- assertion for version propertyDetailedCookieMatcher
instance with and-composed version property assertionpublic DetailedCookieMatcher maxAge(int expectedMaxAgeValue)
expectedMaxAgeValue
- expected max age of cookieDetailedCookieMatcher
instance with and-composed max age property assertionpublic DetailedCookieMatcher maxAge(org.hamcrest.Matcher<? super Integer> maxAgeMatcher)
maxAgeMatcher
- assertion for max age propertyDetailedCookieMatcher
instance with and-composed max age property assertionCopyright © 2010–2019. All rights reserved.