Ejemplo n.º 1
0
 @Test
 public void deleteAsyncRetrycanceled() throws Exception {
   try {
     ServiceResponse<Void> response = client.getLROsOperations().deleteAsyncRetrycanceled();
     fail();
   } catch (CloudException e) {
     Assert.assertEquals("Async operation failed", e.getMessage());
   }
 }
Ejemplo n.º 2
0
 @Test
 public void postAsyncRetrycanceled() throws Exception {
   try {
     Product product = new Product();
     product.setLocation("West US");
     ServiceResponse<Void> response = client.getLROsOperations().postAsyncRetrycanceled(product);
     fail();
   } catch (CloudException e) {
     Assert.assertEquals("Async operation failed", e.getMessage());
   }
 }
Ejemplo n.º 3
0
 @Test
 public void put200Acceptedcanceled200() throws Exception {
   Product product = new Product();
   product.setLocation("West US");
   try {
     ServiceResponse<Product> response =
         client.getLROsOperations().put200Acceptedcanceled200(product);
     fail();
   } catch (CloudException e) {
     Assert.assertEquals("Async operation failed", e.getMessage());
   }
 }