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);
}
Aggregations