Package com.github.restdriver.clientdriver

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


    }
   
    @Test
    public void expectationExpectedANumberOfTimesHasCorrectStatusString() {
        ClientDriverExpectation expectation = new ClientDriverExpectation(PAIR);
        expectation.times(10);
        assertThat(expectation.getStatusString(), is("expected: 10, actual: 0"));
    }
   
    @Test
    public void specifyingNumberOfExpectationsBelowOneThrowsException() {
View Full Code Here


    public void specifyingNumberOfExpectationsBelowOneThrowsException() {
        thrown.expect(ClientDriverInvalidExpectationException.class);
        thrown.expectMessage("Expectation cannot be matched less than once");
       
        ClientDriverExpectation expectation = new ClientDriverExpectation(PAIR);
        expectation.times(0);
    }
   
    @Test
    public void matchingExpectationSatisfiesIt() {
        ClientDriverExpectation expectation = new ClientDriverExpectation(PAIR);
View Full Code Here

    }
   
    @Test
    public void matchingExpectationSatisfiesIt() {
        ClientDriverExpectation expectation = new ClientDriverExpectation(PAIR);
        expectation.times(3);
       
        assertThat(expectation.isSatisfied(), is(false));
       
        HttpRealRequest realRequest = mock(HttpRealRequest.class);
       
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.