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