Search in sources :

Example 6 with RuntimeList

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);
}
Also used : Runtime(org.guvnor.ala.runtime.Runtime) RuntimeList(org.guvnor.ala.services.api.itemlist.RuntimeList) Test(org.junit.Test)

Aggregations

RuntimeList (org.guvnor.ala.services.api.itemlist.RuntimeList)6 DockerProviderConfig (org.guvnor.ala.docker.config.DockerProviderConfig)4 DockerProvider (org.guvnor.ala.docker.model.DockerProvider)4 ProviderList (org.guvnor.ala.services.api.itemlist.ProviderList)4 ProviderTypeList (org.guvnor.ala.services.api.itemlist.ProviderTypeList)4 DockerProviderConfigImpl (org.guvnor.ala.docker.config.impl.DockerProviderConfigImpl)3 Runtime (org.guvnor.ala.runtime.Runtime)3 Test (org.junit.Test)3 ArrayList (java.util.ArrayList)2 Client (javax.ws.rs.client.Client)2 WebTarget (javax.ws.rs.client.WebTarget)2 MavenBuildConfigImpl (org.guvnor.ala.build.maven.config.impl.MavenBuildConfigImpl)2 MavenBuildExecConfigImpl (org.guvnor.ala.build.maven.config.impl.MavenBuildExecConfigImpl)2 MavenProjectConfigImpl (org.guvnor.ala.build.maven.config.impl.MavenProjectConfigImpl)2 DockerRuntimeConfig (org.guvnor.ala.docker.config.DockerRuntimeConfig)2 ContextAwareDockerProvisioningConfig (org.guvnor.ala.docker.config.impl.ContextAwareDockerProvisioningConfig)2 ContextAwareDockerRuntimeExecConfig (org.guvnor.ala.docker.config.impl.ContextAwareDockerRuntimeExecConfig)2 DockerBuildConfigImpl (org.guvnor.ala.docker.config.impl.DockerBuildConfigImpl)2 DockerRuntime (org.guvnor.ala.docker.model.DockerRuntime)2 OpenShiftRuntime (org.guvnor.ala.openshift.model.OpenShiftRuntime)2