assertEquals("testStruct(): Incorrect return value", in.getStruct1Short(), ret.getStruct1Short());
}
}
public void testUnion() {
IdltowsdlTypeTestUnion1 u0 = new IdltowsdlTypeTestUnion1();
u0.setDiscriminator(IdltowsdlTypeTestEnum1.E_1_1);
u0.setU11(Integer.MAX_VALUE);
IdltowsdlTypeTestUnion1 u1 = new IdltowsdlTypeTestUnion1();
u1.setDiscriminator(IdltowsdlTypeTestEnum1.E_1_2);
u1.setU12(new String("foo"));
IdltowsdlTypeTestUnion1 u2 = new IdltowsdlTypeTestUnion1();
u2.setDiscriminator(IdltowsdlTypeTestEnum1.E_1_3);
u2.setU12(new String("bar"));
IdltowsdlTypeTestUnion1 u3 = new IdltowsdlTypeTestUnion1();
u3.setU13(Short.MAX_VALUE);
IdltowsdlTypeTestUnion1 valueSets[][] = {
{u0, u0},
{u0, u1},
{u1, u2},
{u2, u3}
};
for (int i = 0; i < valueSets.length; i++) {
IdltowsdlTypeTestUnion1 in = valueSets[i][0];
Holder<IdltowsdlTypeTestUnion1> inoutOrig = new Holder<IdltowsdlTypeTestUnion1>(valueSets[i][1]);
Holder<IdltowsdlTypeTestUnion1> inout = new Holder<IdltowsdlTypeTestUnion1>(valueSets[i][1]);
Holder<IdltowsdlTypeTestUnion1> out = new Holder<IdltowsdlTypeTestUnion1>();
IdltowsdlTypeTestUnion1 ret = client.testUnion(in, inout, out);
assertTrue("testStruct(): Incorrect value for out param", compareUnion(inoutOrig.value, out.value));
assertTrue("testStruct(): Incorrect value for inout param", compareUnion(in,inout.value));
assertTrue("testStruct(): Incorrect return value", compareUnion(in, ret));
}