use of org.ovirt.engine.ui.frontend.communication.AsyncOperationCompleteEvent in project ovirt-engine by oVirt.
the class FrontendTest method verifyAsyncQuerySucceeded.
private void verifyAsyncQuerySucceeded() {
verify(mockEventBus, atLeastOnce()).fireEvent(new AsyncOperationCompleteEvent(mockAsyncQuery.getModel(), false, true));
verify(mockEventBus, never()).fireEvent(new AsyncOperationCompleteEvent(mockAsyncQuery.getModel(), false, false));
}
use of org.ovirt.engine.ui.frontend.communication.AsyncOperationCompleteEvent in project ovirt-engine by oVirt.
the class FrontendTest method tearDown.
@After
public void tearDown() throws Exception {
// Make sure that the query start has been called at least once.
// Some of the tests might call it more than once.
// Make sure that the action start and end have not been called.
verify(mockEventBus, atLeastOnce()).fireEvent(new AsyncOperationStartedEvent(mockAsyncQuery.getModel()));
verify(mockEventBus, never()).fireEvent(new AsyncOperationCompleteEvent(mockAsyncQuery.getModel(), true, true));
verify(mockEventBus, never()).fireEvent(new AsyncOperationCompleteEvent(mockAsyncQuery.getModel(), true, false));
}
Aggregations