public class CookieResultMatchers extends ObjectSE
このクラスのインスタンスは通常、MockMvcResultMatchers.cookie() を介してアクセスされます。
| 修飾子 | コンストラクターと説明 |
|---|---|
protected | CookieResultMatchers()protected コンストラクター。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
ResultMatcher | comment(StringSE name, Matcher<? super StringSE> matcher)Hamcrest Matcher で Cookie のコメントをアサートします。 |
ResultMatcher | comment(StringSE name, StringSE comment)Cookie のコメントをアサートします。 |
ResultMatcher | doesNotExist(StringSE name)Cookie が存在しないことを表明します。 |
ResultMatcher | domain(StringSE name, Matcher<? super StringSE> matcher)Hamcrest Matcher を使用して Cookie のドメインをアサートします。 |
ResultMatcher | domain(StringSE name, StringSE domain)Cookie のドメインをアサートします。 |
ResultMatcher | exists(StringSE name)Cookie が存在することを表明します。 |
ResultMatcher | httpOnly(StringSE name, boolean httpOnly)Cookie を HTTP のみにする必要があるかどうかをアサートします。 |
ResultMatcher | maxAge(StringSE name, int maxAge) クッキーの maxAge をアサートします。 |
ResultMatcher | maxAge(StringSE name, Matcher<? super IntegerSE> matcher)Hamcrest Matcher を使用して、Cookie の maxAge をアサートします。 |
ResultMatcher | path(StringSE name, Matcher<? super StringSE> matcher)Hamcrest Matcher を使用して Cookie のパスをアサートします。 |
ResultMatcher | path(StringSE name, StringSE path)Cookie のパスをアサートします。 |
ResultMatcher | secure(StringSE name, boolean secure)Cookie を安全なプロトコルで送信する必要があるかどうかを表明します。 |
ResultMatcher | value(StringSE name, Matcher<? super StringSE> matcher) 指定された Hamcrest Matcher で Cookie 値をアサートします。 |
ResultMatcher | value(StringSE name, StringSE expectedValue)cookie 値をアサートします。 |
ResultMatcher | version(StringSE name, int version)Cookie のバージョンをアサートします。 |
ResultMatcher | version(StringSE name, Matcher<? super IntegerSE> matcher)Hamcrest Matcher を使用して Cookie のバージョンをアサートします。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEprotected CookieResultMatchers()
MockMvcResultMatchers.cookie() を使用します。public ResultMatcher value(StringSE name, Matcher<? super StringSE> matcher)
Matcher で Cookie 値をアサートします。public ResultMatcher value(StringSE name, StringSE expectedValue)
public ResultMatcher exists(StringSE name)
public ResultMatcher doesNotExist(StringSE name)
public ResultMatcher maxAge(StringSE name, Matcher<? super IntegerSE> matcher)
Matcher を使用して、Cookie の maxAge をアサートします。public ResultMatcher maxAge(StringSE name, int maxAge)
public ResultMatcher path(StringSE name, Matcher<? super StringSE> matcher)
Matcher を使用して Cookie のパスをアサートします。public ResultMatcher path(StringSE name, StringSE path)
public ResultMatcher domain(StringSE name, Matcher<? super StringSE> matcher)
Matcher を使用して Cookie のドメインをアサートします。public ResultMatcher domain(StringSE name, StringSE domain)
public ResultMatcher comment(StringSE name, Matcher<? super StringSE> matcher)
Matcher で Cookie のコメントをアサートします。public ResultMatcher comment(StringSE name, StringSE comment)
public ResultMatcher version(StringSE name, Matcher<? super IntegerSE> matcher)
Matcher を使用して Cookie のバージョンをアサートします。public ResultMatcher version(StringSE name, int version)
public ResultMatcher secure(StringSE name, boolean secure)
public ResultMatcher httpOnly(StringSE name, boolean httpOnly)