Search in sources :

Example 1 with IStorageHelper

use of org.ovirt.engine.core.bll.storage.connection.IStorageHelper in project ovirt-engine by oVirt.

the class RemoveStorageDomainCommandTest method setUpStorageHelper.

private void setUpStorageHelper() {
    IStorageHelper helper = mock(IStorageHelper.class);
    when(helper.connectStorageToDomainByVdsIdDetails(storageDomain, command.getParameters().getVdsId())).thenReturn(new Pair<>(true, null));
    when(helper.disconnectStorageFromDomainByVdsId(storageDomain, command.getParameters().getVdsId())).thenReturn(true);
    doReturn(helper).when(command).getStorageHelper(storageDomain);
}
Also used : IStorageHelper(org.ovirt.engine.core.bll.storage.connection.IStorageHelper)

Aggregations

IStorageHelper (org.ovirt.engine.core.bll.storage.connection.IStorageHelper)1