Search in sources :

Example 46 with ProductInner

use of fixtures.lro.implementation.ProductInner in project autorest.java by Azure.

the class LRORetrysTests method put201CreatingSucceeded200.

@Test
public void put201CreatingSucceeded200() throws Exception {
    ProductInner product = new ProductInner();
    product.withLocation("West US");
    ProductInner response = client.lRORetrys().put201CreatingSucceeded200(product);
    Assert.assertEquals("Succeeded", response.provisioningState());
}
Also used : ProductInner(fixtures.lro.implementation.ProductInner) Test(org.junit.Test)

Example 47 with ProductInner

use of fixtures.lro.implementation.ProductInner in project autorest.java by Azure.

the class LRORetrysTests method post202Retry200.

@Test
public void post202Retry200() throws Exception {
    ProductInner product = new ProductInner();
    product.withLocation("West US");
    client.lRORetrys().post202Retry200(product);
}
Also used : ProductInner(fixtures.lro.implementation.ProductInner) Test(org.junit.Test)

Example 48 with ProductInner

use of fixtures.lro.implementation.ProductInner in project autorest.java by Azure.

the class LRORetrysTests method postAsyncRelativeRetrySucceeded.

@Test
public void postAsyncRelativeRetrySucceeded() throws Exception {
    ProductInner product = new ProductInner();
    product.withLocation("West US");
    client.lRORetrys().postAsyncRelativeRetrySucceeded(product);
}
Also used : ProductInner(fixtures.lro.implementation.ProductInner) Test(org.junit.Test)

Example 49 with ProductInner

use of fixtures.lro.implementation.ProductInner in project autorest.java by Azure.

the class LROsCustomHeaderTests method post202Retry200.

@Ignore("Pending headermap")
public void post202Retry200() throws Exception {
    ProductInner product = new ProductInner();
    product.withLocation("West US");
    client.lROsCustomHeaders().post202Retry200(product);
}
Also used : ProductInner(fixtures.lro.implementation.ProductInner) Ignore(org.junit.Ignore)

Example 50 with ProductInner

use of fixtures.lro.implementation.ProductInner in project autorest.java by Azure.

the class LROsCustomHeaderTests method put201CreatingSucceeded200.

@Ignore("Pending headermap")
public void put201CreatingSucceeded200() throws Exception {
    ProductInner product = new ProductInner();
    product.withLocation("West US");
    ProductInner response = client.lROsCustomHeaders().put201CreatingSucceeded200(product);
    Assert.assertEquals("Succeeded", response.provisioningState());
}
Also used : ProductInner(fixtures.lro.implementation.ProductInner) Ignore(org.junit.Ignore)

Aggregations

ProductInner (fixtures.lro.implementation.ProductInner)51 Test (org.junit.Test)46 SubProductInner (fixtures.lro.implementation.SubProductInner)25 CloudException (com.microsoft.azure.CloudException)17 Ignore (org.junit.Ignore)5 CountDownLatch (java.util.concurrent.CountDownLatch)1