Package com.google.dataconnector.client.HealthCheckHandler

Examples of com.google.dataconnector.client.HealthCheckHandler.FailCallback


    // We throw an exception to break out of the loop.  This is called at the log.trace.
    EasyMock.expectLastCall().andThrow(new RuntimeException(BREAK_MESSAGE));
    EasyMock.replay(clock);

    // Should have no calls.
    FailCallback failCallback = EasyMock.createMock(FailCallback.class);
    EasyMock.replay(failCallback);

    HealthCheckHandler healthCheckHandler = new HealthCheckHandler(clock, shutdownManager);
    healthCheckHandler.setFrameSender(frameSender);
    healthCheckHandler.setFailCallback(failCallback);
View Full Code Here


    EasyMock.expectLastCall().andReturn(FAKE_TIME_STAMP + 45000); // checking response time + 45 sec
    EasyMock.expectLastCall().andReturn(FAKE_TIME_STAMP + 45000); // log message.
    EasyMock.replay(clock);

    // Call back handler should fire.
    FailCallback failCallback = EasyMock.createMock(FailCallback.class);
    failCallback.handleFailure();
    EasyMock.expectLastCall();
    EasyMock.replay(failCallback);

    HealthCheckHandler healthCheckHandler = new HealthCheckHandler(clock, shutdownManager);
    healthCheckHandler.setFrameSender(frameSender);
View Full Code Here

TOP

Related Classes of com.google.dataconnector.client.HealthCheckHandler.FailCallback

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.