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);
}
Aggregations