use of org.guvnor.ala.services.api.itemlist.ProviderList in project kie-wb-common by kiegroup.
the class RuntimeProvisioningServiceBackendImplTest method testGetProviders.
@Test
public void testGetProviders() {
List<Provider> values = mockList(Provider.class, ELEMENTS_COUNT);
ProviderList list = new ProviderList(values);
when(runtimeProvisioningService.getProviders(PAGE, PAGE_SIZE, SORT, SORT_ORDER)).thenReturn(list);
List<Provider> result = runtimeProvisioningServiceBackend.getProviders(PAGE, PAGE_SIZE, SORT, SORT_ORDER);
verify(runtimeProvisioningService, times(1)).getProviders(PAGE, PAGE_SIZE, SORT, SORT_ORDER);
assertEquals(values, result);
}
Aggregations