protected static class AbstractRequestExpectationManager.RequestExpectationGroup
extends java.lang.Object
修飾子 | コンストラクターと説明 |
---|---|
protected | RequestExpectationGroup() |
修飾子と型 | メソッドと説明 |
---|---|
void | addAllExpectations(java.util.Collection<RequestExpectation> expectations) |
RequestExpectation | findExpectation(ClientHttpRequest request) 一致する期待値を返します。一致するものがなければ null を返します。 |
java.util.Set<RequestExpectation> | getExpectations() |
void | reset() このグループのすべての期待をリセットします。 |
void | update(RequestExpectation expectation) 一致した期待値に対してこれを呼び出します。 |
void | updateAll(java.util.Collection<RequestExpectation> expectations) 使用すべきではありません。 |
public void addAllExpectations(java.util.Collection<RequestExpectation> expectations)
public java.util.Set<RequestExpectation> getExpectations()
@Nullable public RequestExpectation findExpectation(ClientHttpRequest request) throws java.io.IOException
null
を返します。java.io.IOException
public void update(RequestExpectation expectation)
指定された期待値のカウントが増分され、remainingCount > 0 の場合は保存され、それ以外の場合は削除されます。
@Deprecated public void updateAll(java.util.Collection<RequestExpectation> expectations)
addAllExpectations(java.util.Collection<org.springframework.test.web.client.RequestExpectation>)
が優先されます。public void reset()