Package org.fishwife.jrugged

Examples of org.fishwife.jrugged.CircuitBreakerException


        for (int i = 0; i < callCount; i++) {
            callMonitorCatchThrowable(mockPjp, e);
        }

        CircuitBreakerException cbe = new CircuitBreakerException();
        callMonitorCatchThrowable(mockPjp, cbe);
        verifyBreakerExists(TEST_CIRCUIT_BREAKER);

        verify(mockPjp);
        verify(mockAnnotation);
View Full Code Here


    }
   
    @Test
    public void throwsIOExceptionForCircuitBreakerException() throws Exception {
        expect(mockBackend.execute(host, req, ctx))
            .andThrow(new CircuitBreakerException());
        replay(mockBackend);   
        try {
            impl.execute(host, req, ctx);
            fail("should have thrown exception");
        } catch (IOException expected) {
View Full Code Here

TOP

Related Classes of org.fishwife.jrugged.CircuitBreakerException

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.