use of com.synopsys.integration.alert.common.persistence.accessor.ProviderDataAccessor in project hub-alert by blackducksoftware.
the class BlackDuckDistributionFieldModelTestActionTest method createProviderDataAccessor.
private ProviderDataAccessor createProviderDataAccessor() {
ProviderDataAccessor providerDataAccessor = Mockito.mock(ProviderDataAccessor.class);
Mockito.when(providerDataAccessor.getProjectsByProviderConfigId(Mockito.any(), Mockito.anyInt(), Mockito.anyInt(), Mockito.anyString())).thenReturn(createProviderProjects());
createHrefsToVersionsMap().entrySet().forEach(entry -> Mockito.when(providerDataAccessor.getProjectVersionNamesByHref(1L, entry.getKey(), 0)).thenReturn(entry.getValue()));
return providerDataAccessor;
}
Aggregations