Search in sources :

Example 1 with ExpectedCount

use of org.springframework.test.web.client.ExpectedCount in project spring-boot by spring-projects.

the class RootUriRequestExpectationManagerTests method expectRequestShouldDelegateToExpectationManager.

@Test
public void expectRequestShouldDelegateToExpectationManager() throws Exception {
    ExpectedCount count = mock(ExpectedCount.class);
    RequestMatcher requestMatcher = mock(RequestMatcher.class);
    this.manager.expectRequest(count, requestMatcher);
    verify(this.delegate).expectRequest(count, requestMatcher);
}
Also used : RequestMatcher(org.springframework.test.web.client.RequestMatcher) ExpectedCount(org.springframework.test.web.client.ExpectedCount) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 ExpectedCount (org.springframework.test.web.client.ExpectedCount)1 RequestMatcher (org.springframework.test.web.client.RequestMatcher)1