Search in sources :

Example 1 with FlattenParameterGroup

use of fixtures.modelflattening.models.FlattenParameterGroup in project autorest.java by Azure.

the class ModelFlatteningTests method putSimpleProductWithGrouping.

@Test
public void putSimpleProductWithGrouping() throws Exception {
    SimpleProduct simpleProduct = new SimpleProduct();
    simpleProduct.withDescription("product description");
    simpleProduct.withProductId("123");
    simpleProduct.withMaxProductDisplayName("max name");
    simpleProduct.withCapacity("Large");
    simpleProduct.withOdatavalue("http://foo");
    FlattenParameterGroup flattenParameterGroup = new FlattenParameterGroup();
    flattenParameterGroup.withDescription("product description");
    flattenParameterGroup.withProductId("123");
    flattenParameterGroup.withMaxProductDisplayName("max name");
    flattenParameterGroup.withOdatavalue("http://foo");
    flattenParameterGroup.withName("groupproduct");
    SimpleProduct product = client.putSimpleProductWithGrouping(flattenParameterGroup);
    assertSimpleProductEquals(simpleProduct, product);
}
Also used : SimpleProduct(fixtures.modelflattening.models.SimpleProduct) FlattenParameterGroup(fixtures.modelflattening.models.FlattenParameterGroup) Test(org.junit.Test)

Aggregations

FlattenParameterGroup (fixtures.modelflattening.models.FlattenParameterGroup)1 SimpleProduct (fixtures.modelflattening.models.SimpleProduct)1 Test (org.junit.Test)1