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