}
//org.apache.type_test.types1.BoundedArray
public void testBoundedArray() throws Exception {
BoundedArray x = new BoundedArray();
x.getItem().addAll(Arrays.asList(-100.00f, 0f, 100.00f));
BoundedArray yOrig = new BoundedArray();
yOrig.getItem().addAll(Arrays.asList(-1f, 0f, 1f));
Holder<BoundedArray> y = new Holder<BoundedArray>(yOrig);
Holder<BoundedArray> z = new Holder<BoundedArray>();
BoundedArray ret = client.testBoundedArray(x, y, z);
if (!perfTestOnly) {
float delta = 0.0f;
int xSize = x.getItem().size();
int ySize = y.value.getItem().size();
int zSize = z.value.getItem().size();
int retSize = ret.getItem().size();
assertTrue("testBoundedArray() array size incorrect",
xSize == ySize && ySize == zSize && zSize == retSize && xSize == 3);
for (int i = 0; i < xSize; i++) {
assertEquals("testBoundedArray(): Incorrect value for inout param",
x.getItem().get(i), y.value.getItem().get(i), delta);
assertEquals("testBoundedArray(): Incorrect value for out param",
yOrig.getItem().get(i), z.value.getItem().get(i), delta);
assertEquals("testBoundedArray(): Incorrect return value",
x.getItem().get(i), ret.getItem().get(i), delta);
}
}
}