use of org.ovirt.engine.ui.frontend.communication.AsyncOperationCompleteEvent in project ovirt-engine by oVirt.
the class FrontendActionTest method tearDown.
@After
public void tearDown() throws Exception {
// Make sure that the query start and end have not been called.
verify(mockEventBus, never()).fireEvent(new AsyncOperationCompleteEvent(testState, false, true));
verify(mockEventBus, never()).fireEvent(new AsyncOperationCompleteEvent(testState, false, false));
}
use of org.ovirt.engine.ui.frontend.communication.AsyncOperationCompleteEvent in project ovirt-engine by oVirt.
the class FrontendTest method verifyAsyncQueryFailed.
private void verifyAsyncQueryFailed() {
verify(mockEventBus, never()).fireEvent(new AsyncOperationCompleteEvent(mockAsyncQuery.getModel(), false, true));
verify(mockEventBus, atLeastOnce()).fireEvent(new AsyncOperationCompleteEvent(mockAsyncQuery.getModel(), false, false));
}
use of org.ovirt.engine.ui.frontend.communication.AsyncOperationCompleteEvent in project ovirt-engine by oVirt.
the class FrontendActionTest method verifyAsyncActionStartedAndSucceeded.
private void verifyAsyncActionStartedAndSucceeded() {
verifyAsyncActionStarted();
verify(mockEventBus, atLeastOnce()).fireEvent(new AsyncOperationCompleteEvent(testState, true, true));
verify(mockEventBus, never()).fireEvent(new AsyncOperationCompleteEvent(testState, true, false));
}
use of org.ovirt.engine.ui.frontend.communication.AsyncOperationCompleteEvent in project ovirt-engine by oVirt.
the class FrontendActionTest method verifyAsyncActionStartedAndFailed.
private void verifyAsyncActionStartedAndFailed() {
verifyAsyncActionStarted();
verify(mockEventBus, never()).fireEvent(new AsyncOperationCompleteEvent(testState, true, true));
verify(mockEventBus, atLeastOnce()).fireEvent(new AsyncOperationCompleteEvent(testState, true, false));
}
use of org.ovirt.engine.ui.frontend.communication.AsyncOperationCompleteEvent in project ovirt-engine by oVirt.
the class FrontendActionTest method verifyAsyncActionStartedButNotCompleted.
private void verifyAsyncActionStartedButNotCompleted() {
verifyAsyncActionStarted();
verify(mockEventBus, never()).fireEvent(new AsyncOperationCompleteEvent(testState, true, true));
verify(mockEventBus, never()).fireEvent(new AsyncOperationCompleteEvent(testState, true, false));
}
Aggregations