@Test public void testPostVM() { System.out.println("postVM"); Object requestEntity = null; RestVMClient instance = new RestVMClient("", ""); ClientResponse expResult = null; ClientResponse result = instance.postVM(requestEntity); assertEquals(expResult, result); fail("The test case is a prototype."); }
public ClientResponse postVM(Object requestEntity) throws UniformInterfaceException { return webResource.type(javax.ws.rs.core.MediaType.APPLICATION_XML).post(ClientResponse.class, requestEntity); }
RestVMClient { public ClientResponse postVM(Object requestEntity) throws UniformInterfaceException { return webResource.type(javax.ws.rs.core.MediaType.APPLICATION_XML).post(ClientResponse.class, requestEntity); } }
RestVMClient { public ClientResponse postVM(Object requestEntity) throws UniformInterfaceException { return webResource.type(javax.ws.rs.core.MediaType.APPLICATION_XML).post(ClientResponse.class, requestEntity); } RestVMClient(String applicationName, String deploymentId); }
RestVMClient { public ClientResponse postVM(Object requestEntity) throws UniformInterfaceException { return webResource.type(javax.ws.rs.core.MediaType.APPLICATION_XML).post(ClientResponse.class, requestEntity); } RestVMClient(String applicationName, String deploymentId); void setResourcePath(String applicationName, String deploymentId); T getEnergySample(Class<T> responseType, String vmId, String eventId, String startTime, String interval, String endTime); T getPowerConsumption(Class<T> responseType, String vmId, String startTime, String endTime); T getCostEstimation(Class<T> responseType, String vmId, String eventId); T getVM(Class<T> responseType, String vmId); ClientResponse postVM(Object requestEntity); T getEnergyConsumption(Class<T> responseType, String vmId, String startTime, String endTime); ClientResponse deleteVM(String vm_id); T getVMs(Class<T> responseType); T getEnergyEstimation(Class<T> responseType, String vmId, String duration); T getEventPowerConsumption(Class<T> responseType, String vmId, String eventId, String startTime, String endTime); T getPowerEstimationForAnEvent(Class<T> responseType, String vmId, String eventId); T getPowerEstimation(Class<T> responseType, String vmId); T getEventEnergyConsumption(Class<T> responseType, String vmId, String eventId, String startTime, String endTime); T getEnergyEstimationForAnEvent(Class<T> responseType, String vmId, String eventId, String duration); void close(); }
RestVMClient { public ClientResponse postVM(Object requestEntity) throws UniformInterfaceException { return webResource.type(javax.ws.rs.core.MediaType.APPLICATION_XML).post(ClientResponse.class, requestEntity); } RestVMClient(String applicationName, String deploymentId); void setResourcePath(String applicationName, String deploymentId); T getEnergySample(Class<T> responseType, String vmId, String eventId, String startTime, String interval, String endTime); T getPowerConsumption(Class<T> responseType, String vmId, String startTime, String endTime); T getCostEstimation(Class<T> responseType, String vmId, String eventId); T getVM(Class<T> responseType, String vmId); ClientResponse postVM(Object requestEntity); T getEnergyConsumption(Class<T> responseType, String vmId, String startTime, String endTime); ClientResponse deleteVM(String vm_id); T getVMs(Class<T> responseType); T getEnergyEstimation(Class<T> responseType, String vmId, String duration); T getEventPowerConsumption(Class<T> responseType, String vmId, String eventId, String startTime, String endTime); T getPowerEstimationForAnEvent(Class<T> responseType, String vmId, String eventId); T getPowerEstimation(Class<T> responseType, String vmId); T getEventEnergyConsumption(Class<T> responseType, String vmId, String eventId, String startTime, String endTime); T getEnergyEstimationForAnEvent(Class<T> responseType, String vmId, String eventId, String duration); void close();  }