Package com.github.restdriver.clientdriver

Examples of com.github.restdriver.clientdriver.ClientDriverExpectation.whenMatched()


   
    @Test
    public void matchingExpectationCallsMatcher() {
        MatchedRequestHandler matchHandlerMock = mock(MatchedRequestHandler.class);
        ClientDriverExpectation expectation = new ClientDriverExpectation(PAIR);
        expectation.whenMatched(matchHandlerMock);
       
        HttpRealRequest realRequest = mock(HttpRealRequest.class);
       
        expectation.match(realRequest);
        verify(matchHandlerMock).onMatch(realRequest);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.