Search in sources :

Example 6 with ProviderList

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

Aggregations

ProviderList (org.guvnor.ala.services.api.itemlist.ProviderList)6 ProviderTypeList (org.guvnor.ala.services.api.itemlist.ProviderTypeList)5 DockerProviderConfig (org.guvnor.ala.docker.config.DockerProviderConfig)4 DockerProvider (org.guvnor.ala.docker.model.DockerProvider)4 RuntimeList (org.guvnor.ala.services.api.itemlist.RuntimeList)4 Client (javax.ws.rs.client.Client)3 WebTarget (javax.ws.rs.client.WebTarget)3 DockerProviderConfigImpl (org.guvnor.ala.docker.config.impl.DockerProviderConfigImpl)3 Provider (org.guvnor.ala.runtime.providers.Provider)3 RuntimeProvisioningService (org.guvnor.ala.services.api.RuntimeProvisioningService)3 ResteasyWebTarget (org.jboss.resteasy.client.jaxrs.ResteasyWebTarget)3 Ignore (org.junit.Ignore)3 Test (org.junit.Test)3 ArrayList (java.util.ArrayList)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