クラス AbstractRequestExpectationManager.RequestExpectationGroup

java.lang.ObjectSE
org.springframework.test.web.client.AbstractRequestExpectationManager.RequestExpectationGroup
含まれているクラス:
AbstractRequestExpectationManager

protected static class AbstractRequestExpectationManager.RequestExpectationGroup extends ObjectSE
残りの期待のグループを管理するヘルパークラス。
  • コンストラクターの詳細

    • RequestExpectationGroup

      protected RequestExpectationGroup()
  • メソッドの詳細

    • addAllExpectations

      public void addAllExpectations(CollectionSE<RequestExpectation> expectations)
    • getExpectations

      public SetSE<RequestExpectation> getExpectations()
    • findExpectation

      @Nullable public RequestExpectation findExpectation(ClientHttpRequest request) throws IOExceptionSE
      一致する期待値を返します。一致するものがなければ null を返します。
      例外:
      IOExceptionSE
    • update

      public void update(RequestExpectation expectation)
      一致した期待値に対してこれを呼び出します。

      指定された期待値のカウントがインクリメントされ、remainingCount> 0 の場合に格納されるか、それ以外の場合は削除されます。

    • reset

      public void reset()
      このグループのすべての期待をリセットします。