Package com.yammer.tenacity.core.helper

Examples of com.yammer.tenacity.core.helper.ClientException


    }

    @Test
    public void testFallback(){
        UniformInterfaceException exception = new UniformInterfaceException("failed request", mock(ClientResponse.class));
        ClientException clientException = new ClientException(exception);
        ClientResponseResult<String> failedResult = ClientResponseResult.clientFailure(clientException);

        assertThat(failedResult.isSuccess(), is(false));
        assertThat(failedResult.getFallbackException(), is(clientException));
        assertThat(failedResult.getFallbackException().getCause().getMessage(), is("failed request"));
View Full Code Here

TOP

Related Classes of com.yammer.tenacity.core.helper.ClientException

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.