use of org.ovirt.engine.core.common.businessentities.Provider in project ovirt-engine by oVirt.
the class BackendExternalProviderHelperTest method setUpProvider.
private Provider setUpProvider(Guid id) {
Provider provider = mock(Provider.class);
when(provider.getId()).thenReturn(id);
return provider;
}
use of org.ovirt.engine.core.common.businessentities.Provider in project ovirt-engine by oVirt.
the class BackendOpenStackImageProvidersResourceTest method getEntity.
@Override
protected Provider getEntity(int index) {
Provider provider = mock(Provider.class);
when(provider.getId()).thenReturn(GUIDS[index]);
when(provider.getName()).thenReturn(NAMES[index]);
when(provider.getDescription()).thenReturn(DESCRIPTIONS[index]);
return provider;
}
use of org.ovirt.engine.core.common.businessentities.Provider in project ovirt-engine by oVirt.
the class BackendOpenStackNetworkProviderResourceTest method getEntity.
@Override
protected Provider getEntity(int index) {
Provider provider = mock(Provider.class);
when(provider.getId()).thenReturn(GUIDS[index]);
when(provider.getName()).thenReturn(NAMES[index]);
when(provider.getDescription()).thenReturn(DESCRIPTIONS[index]);
when(provider.getType()).thenReturn(ProviderType.OPENSTACK_NETWORK);
return provider;
}
use of org.ovirt.engine.core.common.businessentities.Provider in project ovirt-engine by oVirt.
the class BackendOpenStackVolumeProviderResourceTest method getEntity.
@Override
protected Provider getEntity(int index) {
Provider provider = mock(Provider.class);
when(provider.getId()).thenReturn(GUIDS[index]);
when(provider.getName()).thenReturn(NAMES[index]);
when(provider.getDescription()).thenReturn(DESCRIPTIONS[index]);
return provider;
}
use of org.ovirt.engine.core.common.businessentities.Provider in project ovirt-engine by oVirt.
the class BackendExternalComputeResourceResourceTest method getProvider.
private Provider getProvider() {
Provider provider = mock(Provider.class);
when(provider.getId()).thenReturn(GUIDS[0]);
when(provider.getName()).thenReturn(NAMES[0]);
return provider;
}
Aggregations