> + final DeploymentApi deploymentApi = > api.getDeploymentApi(resourceGroup); > + > + // check if deployment succeeded > + server.enqueue(jsonResponse("/listdeployments.json")); > + List<Deployment> deployments = deploymentApi.list(); > + assertTrue(deployments.size() > 0); > + } > + > + @Test > + public void testListDeploymentEmpty() throws Exception { > + final DeploymentApi deploymentApi = > api.getDeploymentApi(resourceGroup); > + > + server.enqueue(new MockResponse().setResponseCode(404)); > + > + List<Deployment> deployments = deploymentApi.list(); > + assertTrue(deployments.size() == 0);
Done. --- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs/pull/273/files/534e8540c90b57d7d1b6cacd6cad8938788f176a#r65290816