Search in sources :

Example 1 with AsyncOperationStartedEvent

use of org.ovirt.engine.ui.frontend.communication.AsyncOperationStartedEvent 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));
}
Also used : AsyncOperationStartedEvent(org.ovirt.engine.ui.frontend.communication.AsyncOperationStartedEvent) AsyncOperationCompleteEvent(org.ovirt.engine.ui.frontend.communication.AsyncOperationCompleteEvent) After(org.junit.After)

Aggregations

After (org.junit.After)1 AsyncOperationCompleteEvent (org.ovirt.engine.ui.frontend.communication.AsyncOperationCompleteEvent)1 AsyncOperationStartedEvent (org.ovirt.engine.ui.frontend.communication.AsyncOperationStartedEvent)1