public class CookieAssertions extends ObjectSE
コンストラクターと説明 |
---|
CookieAssertions(ExchangeResult exchangeResult, WebTestClient.ResponseSpec responseSpec) |
修飾子と型 | メソッドと説明 |
---|---|
WebTestClient.ResponseSpec | doesNotExist(StringSE name) 指定された名前の Cookie が存在しないことを期待してください。 |
WebTestClient.ResponseSpec | domain(StringSE name, Matcher<? super StringSE> matcher) Hamcrest Matcher を使用して Cookie のドメイン属性をアサートします。 |
WebTestClient.ResponseSpec | domain(StringSE name, StringSE expected) Cookie のドメイン属性をアサートします。 |
WebTestClient.ResponseSpec | exists(StringSE name) 指定された名前の Cookie が存在することを期待してください。 |
WebTestClient.ResponseSpec | httpOnly(StringSE name, boolean expected) Cookie の httpOnly 属性をアサートします。 |
WebTestClient.ResponseSpec | maxAge(StringSE name, DurationSE expected) Cookie の maxAge 属性をアサートします。 |
WebTestClient.ResponseSpec | maxAge(StringSE name, Matcher<? super LongSE> matcher) クッキーの maxAge 属性を Hamcrest Matcher でアサートします。 |
WebTestClient.ResponseSpec | path(StringSE name, Matcher<? super StringSE> matcher) Hamcrest Matcher を使用して Cookie のパス属性をアサートします。 |
WebTestClient.ResponseSpec | path(StringSE name, StringSE expected) Cookie のパス属性をアサートします。 |
WebTestClient.ResponseSpec | sameSite(StringSE name, StringSE expected) Cookie の sameSite 属性をアサートします。 |
WebTestClient.ResponseSpec | secure(StringSE name, boolean expected) Cookie の安全な属性をアサートします。 |
WebTestClient.ResponseSpec | value(StringSE name, ConsumerSE<StringSE> consumer) レスポンス Cookie の値を消費します。 |
WebTestClient.ResponseSpec | value(StringSE name, Matcher<? super StringSE> matcher) Hamcrest Matcher を使用してレスポンス Cookie の最初の値をアサートします。 |
WebTestClient.ResponseSpec | valueEquals(StringSE name, StringSE value) 指定された名前のヘッダーが指定された値と一致することを期待します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public CookieAssertions(ExchangeResult exchangeResult, WebTestClient.ResponseSpec responseSpec)
public WebTestClient.ResponseSpec valueEquals(StringSE name, StringSE value)
public WebTestClient.ResponseSpec value(StringSE name, Matcher<? super StringSE> matcher)
Matcher
を使用してレスポンス Cookie の最初の値をアサートします。public WebTestClient.ResponseSpec value(StringSE name, ConsumerSE<StringSE> consumer)
public WebTestClient.ResponseSpec exists(StringSE name)
public WebTestClient.ResponseSpec doesNotExist(StringSE name)
public WebTestClient.ResponseSpec maxAge(StringSE name, DurationSE expected)
public WebTestClient.ResponseSpec maxAge(StringSE name, Matcher<? super LongSE> matcher)
Matcher
でアサートします。public WebTestClient.ResponseSpec path(StringSE name, StringSE expected)
public WebTestClient.ResponseSpec path(StringSE name, Matcher<? super StringSE> matcher)
Matcher
を使用して Cookie のパス属性をアサートします。public WebTestClient.ResponseSpec domain(StringSE name, StringSE expected)
public WebTestClient.ResponseSpec domain(StringSE name, Matcher<? super StringSE> matcher)
Matcher
を使用して Cookie のドメイン属性をアサートします。public WebTestClient.ResponseSpec secure(StringSE name, boolean expected)
public WebTestClient.ResponseSpec httpOnly(StringSE name, boolean expected)
public WebTestClient.ResponseSpec sameSite(StringSE name, StringSE expected)