// test AttributeComplexType
{
AttributeComplexType param = null;
InteropFactory factory = InteropFactory.INSTANCE;
org.apache.tuscany.interop.AttributeType attrib = factory.createAttributeType();
attrib.setAttribute("SomeText");
param = factory.createAttributeComplexType();
param.setAttributeElement(attrib);
AttributeComplexType result = greeterClient.greetAttributeComplexType(param);
assertEquals("data not changed corretly", "SomeChangedText", result.getAttributeElement().getAttribute());
}
// test AttributeReferenceComplexType
{
AttributeReferenceComplexType param = null;
InteropFactory factory = InteropFactory.INSTANCE;
param = factory.createAttributeReferenceComplexType();
param.setReferencedAttribute("SomeText");
AttributeReferenceComplexType result = greeterClient.greetAttributeReferenceComplexType(param);
assertEquals("data not changed corretly", "SomeChangedText", result.getReferencedAttribute());
}
// test SimpleTypeWithAbstractComplexType
{
SimpleTypeWithAbstractComplexType param = null;
InteropFactory factory = InteropFactory.INSTANCE;
param = factory.createSimpleTypeWithAbstractComplexType();
param.setSimpleTypeWithAbstractExtensionElement("SomeText");
SimpleTypeWithAbstractComplexType result = greeterClient.greetSimpleTypeWithAbstractComplexType(param);
assertEquals("data not changed corretly", "SomeChangedText", result.getSimpleTypeWithAbstractExtensionElement());
}
// test SimpleTypeWithNameComplexType
{
SimpleTypeWithNameComplexType param = null;
InteropFactory factory = InteropFactory.INSTANCE;
param = factory.createSimpleTypeWithNameComplexType();
param.setSimpleTypeWithNameElement("SomeText");
SimpleTypeWithNameComplexType result = greeterClient.greetSimpleTypeWithNameComplexType(param);
assertEquals("data not changed corretly", "SomeChangedText", result.getSimpleTypeWithNameElement());
}
// test ComplexTypeWithContentType
{
ComplexTypeWithContentType param = null;
InteropFactory factory = InteropFactory.INSTANCE;
param = factory.createComplexTypeWithContentType();
param.setSimpleTypeWithName("SomeText");
ComplexTypeWithContentType result = greeterClient.greetComplexTypeWithContentType(param);
assertEquals("data not changed corretly", "SomeChangedText", result.getSimpleTypeWithName());