use of fixtures.lro.implementation.ProductInner in project autorest.java by Azure.
the class LROsCustomHeaderTests method postAsyncRetrySucceeded.
@Ignore("Pending headermap")
public void postAsyncRetrySucceeded() throws Exception {
ProductInner product = new ProductInner();
product.withLocation("West US");
client.lROsCustomHeaders().postAsyncRetrySucceeded(product);
}
use of fixtures.lro.implementation.ProductInner in project autorest.java by Azure.
the class LROSADsTests method putAsyncRelativeRetryInvalidHeader.
@Test
public void putAsyncRelativeRetryInvalidHeader() throws Exception {
ProductInner product = new ProductInner();
product.withLocation("West US");
try {
client.lROSADs().putAsyncRelativeRetryInvalidHeader(product);
fail();
} catch (NumberFormatException ex) {
Assert.assertEquals("For input string: \"/bar\"", ex.getMessage());
}
}
use of fixtures.lro.implementation.ProductInner in project autorest.java by Azure.
the class LROSADsTests method postAsyncRelativeRetryInvalidHeader.
@Test
public void postAsyncRelativeRetryInvalidHeader() throws Exception {
ProductInner product = new ProductInner();
product.withLocation("West US");
try {
client.lROSADs().postAsyncRelativeRetryInvalidHeader(product);
fail();
} catch (NumberFormatException ex) {
Assert.assertEquals("For input string: \"/bar\"", ex.getMessage());
}
}
use of fixtures.lro.implementation.ProductInner in project autorest.java by Azure.
the class LROSADsTests method post202NonRetry400.
@Test
public void post202NonRetry400() throws Exception {
ProductInner product = new ProductInner();
product.withLocation("West US");
try {
client.lROSADs().post202NonRetry400(product);
fail();
} catch (CloudException ex) {
Assert.assertEquals(400, ex.response().code());
}
}
use of fixtures.lro.implementation.ProductInner in project autorest.java by Azure.
the class LROSADsTests method putAsyncRelativeRetry400.
@Test
public void putAsyncRelativeRetry400() throws Exception {
ProductInner product = new ProductInner();
product.withLocation("West US");
try {
client.lROSADs().putAsyncRelativeRetry400(product);
fail();
} catch (CloudException ex) {
Assert.assertEquals(400, ex.response().code());
}
}
Aggregations