use of fixtures.lro.implementation.ProductInner in project autorest.java by Azure.
the class LROsTests method putAsyncRetrySucceeded.
@Test
public void putAsyncRetrySucceeded() throws Exception {
ProductInner product = new ProductInner();
product.withLocation("West US");
ProductInner response = client.lROs().putAsyncRetrySucceeded(product);
Assert.assertEquals("Succeeded", response.provisioningState());
}
use of fixtures.lro.implementation.ProductInner in project autorest.java by Azure.
the class LROsTests method put201CreatingSucceeded200.
@Test
public void put201CreatingSucceeded200() throws Exception {
ProductInner product = new ProductInner();
product.withLocation("West US");
ProductInner response = client.lROs().put201CreatingSucceeded200(product);
Assert.assertEquals("Succeeded", response.provisioningState());
}
use of fixtures.lro.implementation.ProductInner in project autorest.java by Azure.
the class LROsTests method putAsyncNoRetrycanceled.
@Test
public void putAsyncNoRetrycanceled() throws Exception {
ProductInner product = new ProductInner();
product.withLocation("West US");
try {
ProductInner response = client.lROs().putAsyncNoRetrycanceled(product);
fail();
} catch (CloudException e) {
Assert.assertEquals("Async operation failed with provisioning state: Canceled", e.getMessage());
}
}
use of fixtures.lro.implementation.ProductInner in project autorest.java by Azure.
the class LROsTests method postAsyncRetryFailed.
@Test
public void postAsyncRetryFailed() throws Exception {
try {
ProductInner product = new ProductInner();
product.withLocation("West US");
client.lROs().postAsyncRetryFailed(product);
fail();
} catch (CloudException e) {
Assert.assertEquals("Async operation failed with provisioning state: Failed", e.getMessage());
}
}
use of fixtures.lro.implementation.ProductInner in project autorest.java by Azure.
the class LRORetrysTests method deleteProvisioning202Accepted200Succeeded.
@Test
public void deleteProvisioning202Accepted200Succeeded() throws Exception {
ProductInner response = client.lRORetrys().deleteProvisioning202Accepted200Succeeded();
Assert.assertEquals("Succeeded", response.provisioningState());
}
Aggregations