Package com.github.restdriver.clientdriver.exception

Examples of com.github.restdriver.clientdriver.exception.ClientDriverFailedExpectationException


       
        if (matchedExpectation == null) {
            this.unexpectedRequests.add(new HttpRealRequest(request));
           
            if (failFastOnUnexpectedRequest) {
                throw new ClientDriverFailedExpectationException(unexpectedRequests, expectations);
            } else {
                return null;
            }
        } else {
            if (matchedExpectation.isSatisfied()) {
View Full Code Here


   
    @Override
    public void checkForUnexpectedRequests() {
       
        if (!unexpectedRequests.isEmpty()) {
            throw new ClientDriverFailedExpectationException(unexpectedRequests, expectations);
        }
       
    }
View Full Code Here

            if (period > 0) {
                continue;
            }
           
            if (!failedExpectations.isEmpty()) {
                throw new ClientDriverFailedExpectationException(failedExpectations);
            }
           
            break;
        }
    }
View Full Code Here

TOP

Related Classes of com.github.restdriver.clientdriver.exception.ClientDriverFailedExpectationException

Copyright © 2018 www.massapicom. 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.