インターフェース WebTestClient.ListBodySpec<E>

型パラメーター:
E - 本文リスト要素型
すべてのスーパーインターフェース:
WebTestClient.BodySpec<ListSE<E>,WebTestClient.ListBodySpec<E>>
含まれているインターフェース:
WebTestClient

public static interface WebTestClient.ListBodySpec<E> extends WebTestClient.BodySpec<ListSE<E>,WebTestClient.ListBodySpec<E>>
リストにデコードされたレスポンス本文に対する期待の仕様。
  • メソッドの詳細

    • hasSize

      WebTestClient.ListBodySpec<E> hasSize(int size)
      抽出された値のリストが指定されたサイズであることをアサートします。
      パラメーター:
      size - 予想されるサイズ
    • contains

      WebTestClient.ListBodySpec<E> contains(E... elements)
      抽出された値のリストに指定された要素が含まれていることをアサートします。
      パラメーター:
      elements - チェックする要素
    • doesNotContain

      WebTestClient.ListBodySpec<E> doesNotContain(E... elements)
      抽出された値のリストに、指定された要素が含まれていないことを表明します。
      パラメーター:
      elements - チェックする要素