public void testComplexRestriction2() throws Exception {
if (!shouldRunTest("ComplexRestriction2")) {
return;
}
// normal case, length=10
ComplexRestriction2 x = new ComplexRestriction2();
x.setValue("string_xxx");
ComplexRestriction2 yOrig = new ComplexRestriction2();
yOrig.setValue("string_yyy");
Holder<ComplexRestriction2> y = new Holder<ComplexRestriction2>(yOrig);
Holder<ComplexRestriction2> z = new Holder<ComplexRestriction2>();
ComplexRestriction2 ret;
if (testDocLiteral) {
ret = docClient.testComplexRestriction2(x, y, z);
} else if (testXMLBinding) {
ret = xmlClient.testComplexRestriction2(x, y, z);
} else {
ret = rpcClient.testComplexRestriction2(x, y, z);
}
if (!perfTestOnly) {
assertEquals("testComplexRestriction2(): Incorrect value for inout param",
x.getValue(), y.value.getValue());
assertEquals("testComplexRestriction2(): Incorrect value for out param",
yOrig.getValue(), z.value.getValue());
assertEquals("testComplexRestriction2(): Incorrect return value",
x.getValue(), ret.getValue());
}
// abnormal case
if (testDocLiteral || testXMLBinding) {
try {
x = new ComplexRestriction2();
x.setValue("str_x");
yOrig = new ComplexRestriction2();
yOrig.setValue("string_yyy");
y = new Holder<ComplexRestriction2>(yOrig);
z = new Holder<ComplexRestriction2>();
ret = testDocLiteral ? docClient.testComplexRestriction2(x, y, z)