@Test
public void testOccuringChoice2() throws Exception {
if (!shouldRunTest("OccuringChoice2")) {
return;
}
OccuringChoice2 x = new OccuringChoice2();
x.setVarString("x1");
OccuringChoice2 yOriginal = new OccuringChoice2();
yOriginal.setVarString("y1");
Holder<OccuringChoice2> y = new Holder<OccuringChoice2>(yOriginal);
Holder<OccuringChoice2> z = new Holder<OccuringChoice2>();
OccuringChoice2 ret;
if (testDocLiteral) {
ret = docClient.testOccuringChoice2(x, y, z);
} else if (testXMLBinding) {
ret = xmlClient.testOccuringChoice2(x, y, z);
} else {
ret = rpcClient.testOccuringChoice2(x, y, z);
}
if (!perfTestOnly) {
assertTrue("testOccuringChoice2(): Incorrect value for inout param",
equals(x, y.value));
assertTrue("testOccuringChoice2(): Incorrect value for out param",
equals(yOriginal, z.value));
assertTrue("testOccuringChoice2(): Incorrect return value",
equals(x, ret));
}
x = new OccuringChoice2();
yOriginal = new OccuringChoice2();
yOriginal.setVarString("y1");
y = new Holder<OccuringChoice2>(yOriginal);
z = new Holder<OccuringChoice2>();
if (testDocLiteral) {
ret = docClient.testOccuringChoice2(x, y, z);