Matchers for use with the kotest matching library.
Name | Summary |
---|---|
beHttpOnly | fun beHttpOnly(): Matcher< Cookie > |
beSecure | fun beSecure(): Matcher< Cookie > |
expireOn | fun expireOn(expected: LocalDateTime ): Matcher< Cookie > fun expireOn(matcher: Matcher< LocalDateTime ?>): Matcher< Cookie > |
haveAuthority | fun haveAuthority(expected: String ): Matcher< Uri > |
haveBody | fun <T : HttpMessage > haveBody(expected: Matcher< Body >): Matcher<T> fun <T : HttpMessage > haveBody(expected: Matcher< String ?>): Matcher<T> fun <T : HttpMessage > haveBody(expected: String ): Matcher<T> fun <T : HttpMessage > haveBody(expected: Regex ): Matcher<T> fun <T : HttpMessage , B> haveBody(lens: BodyLens <B>, matcher: Matcher<B>): Matcher<T> fun <NODE> Json <NODE>.haveBody(expected: NODE): Matcher< HttpMessage > fun <NODE> Json <NODE>.haveBody(expected: Matcher<NODE>): Matcher< HttpMessage > fun <NODE> Json <NODE>.haveBody(expected: String ): Matcher< HttpMessage > |
haveContentType | fun haveContentType(expected: ContentType ): Matcher< HttpMessage > |
haveCookie | fun haveCookie(expected: Cookie ): Matcher< Request > fun haveCookie(name: String , expected: Regex ): Matcher< Request > fun haveCookie(name: String , expected: String ): Matcher< Request > fun haveCookie(name: String , match: Matcher< Cookie >): Matcher< Request > |
haveCookiePath | fun haveCookiePath(expected: String ): Matcher< Cookie > |
haveDomain | fun haveDomain(expected: String ): Matcher< Cookie > |
haveForm | fun haveForm(name: String , matcher: Matcher< String ?>): Matcher< Request > fun haveForm(name: String , expected: Regex ): Matcher< Request > fun haveForm(name: String , expected: CharSequence ): Matcher< Request > |
haveFormField | fun <T> haveFormField(lens: Lens < WebForm , T>, matcher: Matcher<T>): Matcher< WebForm > |
haveHeader | fun <T> haveHeader(lens: HeaderLens <T>, matcher: Matcher<T>): Matcher< HttpMessage > fun haveHeader(name: String , matcher: Matcher< String ?>): Matcher< HttpMessage > fun haveHeader(name: String , expected: String ): Matcher< HttpMessage > fun haveHeader(name: String , expected: Regex ): Matcher< HttpMessage > fun haveHeader(name: String ): Matcher< HttpMessage > fun haveHeader(name: String , expected: List < String ?>): Matcher< HttpMessage > |
haveHost | fun haveHost(expected: String ): Matcher< Uri > |
haveMethod | fun haveMethod(expected: Method ): Matcher< Request > |
haveName | fun haveName(expected: String ): Matcher< Cookie > |
havePath | fun havePath(matcher: Matcher< String ?>): Matcher< Uri > fun havePath(expected: String ?): Matcher< Uri > fun havePath(expected: Regex ): Matcher< Uri > |
havePort | fun havePort(expected: Int ): Matcher< Uri > |
haveQuery | fun <T> haveQuery(lens: QueryLens <T>, matcher: Matcher<T>): Matcher< Request > fun haveQuery(name: String , matcher: Matcher< String ?>): Matcher< Request > fun haveQuery(name: String , expected: CharSequence ): Matcher< Request > fun haveQuery(name: String , expected: Regex ): Matcher< Request > fun haveQuery(name: String , expected: List < String ?>): Matcher< Request > fun haveQuery(expected: String ): Matcher< Uri > |
haveRequest | fun haveRequest(match: Matcher< Request >): Matcher< HttpTransaction > |
haveResponse | fun haveResponse(match: Matcher< Response >): Matcher< HttpTransaction > |
haveSameSite | fun haveSameSite(expected: SameSite ): Matcher< Cookie > |
haveSetCookie | fun haveSetCookie(expected: Cookie ): Matcher< Response > fun haveSetCookie(name: String , expected: Matcher< Cookie >): Matcher< Response > |
haveStatus | fun haveStatus(expected: Status ): Matcher< Response > |
haveUri | fun haveUri(expected: Regex ): Matcher< Request > fun haveUri(expected: Uri ): Matcher< Request > fun haveUri(expected: String ): Matcher< Request > fun haveUri(expected: Matcher< Uri >): Matcher< Request > |
haveValue | fun haveValue(expected: String ): Matcher< Cookie > fun haveValue(matcher: Matcher< String ?>): Matcher< Cookie > |
httpMessageHas | fun <T : HttpMessage , R> httpMessageHas(name: String , extractValue: (T) -> R, match: Matcher<R>): Matcher<T> |
LensMatcher | fun <R> LensMatcher(matcher: Matcher<R>): Matcher<R> |
neverExpire | fun neverExpire(): Matcher< Cookie > |
shouldBeHttpOnly | fun Cookie .shouldBeHttpOnly(): Unit |
shouldBeSecure | fun Cookie .shouldBeSecure(): Unit |
shouldHaveAuthority | infix fun Uri .shouldHaveAuthority(expected: String ): Unit |
shouldHaveBody | infix fun HttpMessage .shouldHaveBody(expected: Matcher< Body >): Unit infix fun HttpMessage .shouldHaveBody(expected: Matcher< String ?>): Unit infix fun HttpMessage .shouldHaveBody(expected: String ): Unit infix fun HttpMessage .shouldHaveBody(expected: Regex ): Unit fun <T> HttpMessage .shouldHaveBody(lens: BodyLens <T>, matcher: Matcher<T>): Unit |
shouldHaveContentType | infix fun HttpMessage .shouldHaveContentType(expected: ContentType ): Unit |
shouldHaveCookie | infix fun Request .shouldHaveCookie(expected: Cookie ): Unit fun Request .shouldHaveCookie(name: String , expected: Regex ): Unit fun Request .shouldHaveCookie(name: String , expected: String ): Unit fun Request .shouldHaveCookie(name: String , match: Matcher< Cookie >): Unit |
shouldHaveDomain | infix fun Cookie .shouldHaveDomain(expected: String ): Unit |
shouldHaveExpiry | infix fun Cookie .shouldHaveExpiry(expected: LocalDateTime ): Unit |
shouldHaveForm | fun Request .shouldHaveForm(name: String , matcher: Matcher< String ?>): Unit fun Request .shouldHaveForm(name: String , matcher: Regex ): Unit fun Request .shouldHaveForm(name: String , expected: CharSequence ): Unit |
shouldHaveFormField | fun <T> WebForm .shouldHaveFormField(field: Lens < WebForm , T>, matcher: Matcher<T>): Unit |
shouldHaveHeader | fun <T> HttpMessage .shouldHaveHeader(lens: HeaderLens <T>, matcher: Matcher<T>): Unit fun HttpMessage .shouldHaveHeader(name: String , matcher: Matcher< String >): Unit fun HttpMessage .shouldHaveHeader(name: String , expected: String ): Unit fun HttpMessage .shouldHaveHeader(name: String , expected: Regex ): Unit infix fun HttpMessage .shouldHaveHeader(name: String ): Unit fun HttpMessage .shouldHaveHeader(name: String , expected: List < String ?>): Unit |
shouldHaveHost | infix fun Uri .shouldHaveHost(expected: String ): Unit |
shouldHaveMethod | infix fun Request .shouldHaveMethod(expected: Method ): Unit |
shouldHaveName | infix fun Cookie .shouldHaveName(expected: String ): Unit |
shouldHavePath | infix fun Cookie .shouldHavePath(expected: String ): Unit infix fun Uri .shouldHavePath(match: Matcher< String ?>): Unit infix fun Uri .shouldHavePath(expected: String ?): Unit infix fun Uri .shouldHavePath(expected: Regex ): Unit |
shouldHavePort | infix fun Uri .shouldHavePort(expected: Int ): Unit |
shouldHaveQuery | fun <T> Request .shouldHaveQuery(lens: QueryLens <T>, matcher: Matcher<T>): Unit fun Request .shouldHaveQuery(name: String , matcher: Matcher< String ?>): Unit fun Request .shouldHaveQuery(name: String , expected: CharSequence ): Unit fun Request .shouldHaveQuery(name: String , expected: Regex ): Unit fun Request .shouldHaveQuery(name: String , expected: List < String ?>): Unit infix fun Uri .shouldHaveQuery(expected: String ): Unit |
shouldHaveRequest | infix fun HttpTransaction .shouldHaveRequest(match: Matcher< Request >): Unit |
shouldHaveResponse | infix fun HttpTransaction .shouldHaveResponse(match: Matcher< Response >): Unit |
shouldHaveSameSite | infix fun Cookie .shouldHaveSameSite(expected: SameSite ): Unit |
shouldHaveSetCookie | infix fun Response .shouldHaveSetCookie(expected: Cookie ): Unit fun Response .shouldHaveSetCookie(name: String , match: Matcher< Cookie >): Unit |
shouldHaveStatus | infix fun Response .shouldHaveStatus(expected: Status ): Unit |
shouldHaveUri | infix fun Request .shouldHaveUri(expected: Regex ): Unit infix fun Request .shouldHaveUri(expected: Uri ): Unit infix fun Request .shouldHaveUri(expected: String ): Unit infix fun Request .shouldHaveUri(match: Matcher< Uri >): Unit |
shouldHaveValue | infix fun Cookie .shouldHaveValue(expected: String ): Unit |
shouldNeverExpire | fun Cookie .shouldNeverExpire(): Unit |
shouldNotBeHttpOnly | fun Cookie .shouldNotBeHttpOnly(): Unit |
shouldNotBeSecure | fun Cookie .shouldNotBeSecure(): Unit |
shouldNotHaveAuthority | infix fun Uri .shouldNotHaveAuthority(expected: String ): Unit |
shouldNotHaveBody | infix fun HttpMessage .shouldNotHaveBody(expected: Matcher< Body >): Unit infix fun HttpMessage .shouldNotHaveBody(expected: Matcher< String ?>): Unit infix fun HttpMessage .shouldNotHaveBody(expected: String ): Unit infix fun HttpMessage .shouldNotHaveBody(expected: Regex ): Unit fun <T> HttpMessage .shouldNotHaveBody(lens: BodyLens <T>, matcher: Matcher<T>): Unit |
shouldNotHaveContentType | infix fun HttpMessage .shouldNotHaveContentType(expected: ContentType ): Unit |
shouldNotHaveCookie | infix fun Request .shouldNotHaveCookie(expected: Cookie ): Unit fun Request .shouldNotHaveCookie(name: String , expected: Regex ): Unit fun Request .shouldNotHaveCookie(name: String , expected: String ): Unit fun Request .shouldNotHaveCookie(name: String , match: Matcher< Cookie >): Unit |
shouldNotHaveDomain | infix fun Cookie .shouldNotHaveDomain(expected: String ): Unit |
shouldNotHaveExpiry | infix fun Cookie .shouldNotHaveExpiry(expected: LocalDateTime ): Unit |
shouldNotHaveForm | fun Request .shouldNotHaveForm(name: String , matcher: Matcher< String ?>): Unit fun Request .shouldNotHaveForm(name: String , matcher: Regex ): Unit fun Request .shouldNotHaveForm(name: String , expected: CharSequence ): Unit |
shouldNotHaveFormField | fun <T> WebForm .shouldNotHaveFormField(field: Lens < WebForm , T>, matcher: Matcher<T>): Unit |
shouldNotHaveHeader | fun <T> HttpMessage .shouldNotHaveHeader(lens: HeaderLens <T>, matcher: Matcher<T>): Unit fun HttpMessage .shouldNotHaveHeader(name: String , matcher: Matcher< String >): Unit fun HttpMessage .shouldNotHaveHeader(name: String , expected: String ): Unit fun HttpMessage .shouldNotHaveHeader(name: String , expected: Regex ): Unit infix fun HttpMessage .shouldNotHaveHeader(name: String ): Unit fun HttpMessage .shouldNotHaveHeader(name: String , expected: List < String ?>): Unit |
shouldNotHaveHost | infix fun Uri .shouldNotHaveHost(expected: String ): Unit |
shouldNotHaveMethod | infix fun Request .shouldNotHaveMethod(expected: Method ): Unit |
shouldNotHaveName | infix fun Cookie .shouldNotHaveName(expected: String ): Unit |
shouldNotHavePath | infix fun Cookie .shouldNotHavePath(expected: String ): Unit infix fun Uri .shouldNotHavePath(match: Matcher< String ?>): Unit infix fun Uri .shouldNotHavePath(expected: String ?): Unit infix fun Uri .shouldNotHavePath(expected: Regex ): Unit |
shouldNotHavePort | infix fun Uri .shouldNotHavePort(expected: Int ): Unit |
shouldNotHaveQuery | fun <T> Request .shouldNotHaveQuery(lens: QueryLens <T>, matcher: Matcher<T>): Unit fun Request .shouldNotHaveQuery(name: String , matcher: Matcher< String ?>): Unit fun Request .shouldNotHaveQuery(name: String , expected: CharSequence ): Unit fun Request .shouldNotHaveQuery(name: String , expected: Regex ): Unit fun Request .shouldNotHaveQuery(name: String , expected: List < String ?>): Unit infix fun Uri .shouldNotHaveQuery(expected: String ): Unit |
shouldNotHaveRequest | infix fun HttpTransaction .shouldNotHaveRequest(match: Matcher< Request >): Unit |
shouldNotHaveResponse | infix fun HttpTransaction .shouldNotHaveResponse(match: Matcher< Response >): Unit |
shouldNotHaveSameSite | infix fun Cookie .shouldNotHaveSameSite(expected: SameSite ): Unit |
shouldNotHaveSetCookie | infix fun Response .shouldNotHaveSetCookie(expected: Cookie ): Unit fun Response .shouldNotHaveSetCookie(name: String , match: Matcher< Cookie >): Unit |
shouldNotHaveStatus | infix fun Response .shouldNotHaveStatus(expected: Status ): Unit |
shouldNotHaveUri | infix fun Request .shouldNotHaveUri(expected: Regex ): Unit infix fun Request .shouldNotHaveUri(expected: Uri ): Unit infix fun Request .shouldNotHaveUri(expected: String ): Unit infix fun Request .shouldNotHaveUri(match: Matcher< Uri >): Unit |
shouldNotHaveValue | infix fun Cookie .shouldNotHaveValue(expected: String ): Unit |