use of org.apache.type_test.types3.StructWithSubstitutionGroupAbstract in project cxf by apache.
the class AbstractTypeTestClient2 method equals.
// org.apache.type_test.types3.StructWithSubstitutionGroupAbstract
protected boolean equals(StructWithSubstitutionGroupAbstract x, StructWithSubstitutionGroupAbstract y) {
if (x.getSg03AbstractBaseElementA() != null && y.getSg03AbstractBaseElementA() != null) {
SgBaseTypeA xTypeA = x.getSg03AbstractBaseElementA().getValue();
SgBaseTypeA yTypeA = y.getSg03AbstractBaseElementA().getValue();
return equals(xTypeA, yTypeA);
}
return false;
}
use of org.apache.type_test.types3.StructWithSubstitutionGroupAbstract in project cxf by apache.
the class AbstractTypeTestClient2 method testStructWithSubstitutionGroupAbstract.
@Test
public void testStructWithSubstitutionGroupAbstract() throws Exception {
if (!shouldRunTest("StructWithSubstitutionGroupAbstract")) {
return;
}
SgDerivedTypeB derivedB = new SgDerivedTypeB();
derivedB.setVarInt(new BigInteger("32"));
derivedB.setVarString("foo");
ObjectFactory objectFactory = new ObjectFactory();
JAXBElement<SgDerivedTypeB> elementB = objectFactory.createSg03DerivedElementB(derivedB);
SgDerivedTypeC derivedC = new SgDerivedTypeC();
derivedC.setVarInt(new BigInteger("32"));
derivedC.setVarFloat(3.14f);
JAXBElement<SgDerivedTypeC> elementC = objectFactory.createSg03DerivedElementC(derivedC);
StructWithSubstitutionGroupAbstract x = new StructWithSubstitutionGroupAbstract();
x.setSg03AbstractBaseElementA(elementC);
StructWithSubstitutionGroupAbstract yOrig = new StructWithSubstitutionGroupAbstract();
yOrig.setSg03AbstractBaseElementA(elementB);
Holder<StructWithSubstitutionGroupAbstract> y = new Holder<StructWithSubstitutionGroupAbstract>(yOrig);
Holder<StructWithSubstitutionGroupAbstract> z = new Holder<StructWithSubstitutionGroupAbstract>();
StructWithSubstitutionGroupAbstract ret;
if (testDocLiteral) {
ret = docClient.testStructWithSubstitutionGroupAbstract(x, y, z);
} else if (testXMLBinding) {
ret = xmlClient.testStructWithSubstitutionGroupAbstract(x, y, z);
} else {
ret = rpcClient.testStructWithSubstitutionGroupAbstract(x, y, z);
}
if (!perfTestOnly) {
assertTrue("testStructWithSubstitutionGroupAbstract(): Incorrect value for inout param", equals(x, y.value));
assertTrue("testStructWithSubstitutionGroupAbstract(): Incorrect value for out param", equals(yOrig, z.value));
assertTrue("testStructWithSubstitutionGroupAbstract(): Incorrect return value", equals(x, ret));
}
}
Aggregations