public class org.apache.axiom.ts.om.element.TestAddChild extends org.apache.axiom.ts.AxiomTestCase
{
public void <init>(org.apache.axiom.om.OMMetaFactory)
{
org.apache.axiom.om.OMMetaFactory v;
org.apache.axiom.ts.om.element.TestAddChild v;
v := @this: org.apache.axiom.ts.om.element.TestAddChild;
v := @parameter: org.apache.axiom.om.OMMetaFactory;
specialinvoke v.<org.apache.axiom.ts.AxiomTestCase: void <init>(org.apache.axiom.om.OMMetaFactory)>(v);
return;
}
protected void runTest() throws java.lang.Throwable
{
org.apache.axiom.om.OMElement v, v;
java.util.Iterator v;
org.apache.axiom.ts.om.element.TestAddChild v;
org.apache.axiom.om.OMMetaFactory v;
org.apache.axiom.om.OMNamespace v;
int v;
java.lang.Object v;
org.apache.axiom.om.OMFactory v;
java.lang.String v, v;
javax.xml.namespace.QName v;
boolean v;
v := @this: org.apache.axiom.ts.om.element.TestAddChild;
v = v.<org.apache.axiom.ts.om.element.TestAddChild2: org.apache.axiom.om.OMMetaFactory metaFactory>;
v = interfaceinvoke v.<org.apache.axiom.om.OMMetaFactory: org.apache.axiom.om.OMFactory getOMFactory()>();
v = interfaceinvoke v.<org.apache.axiom.om.OMFactory: org.apache.axiom.om.OMElement createOMElement(java.lang.String,java.lang.String,java.lang.String)>("TestLocalName", "http://ws.apache.org/axis2/ns", "axis2");
v = interfaceinvoke v.<org.apache.axiom.om.OMFactory: org.apache.axiom.om.OMElement createOMElement(java.lang.String,java.lang.String,java.lang.String)>("TestChildLocalName", "http://ws.apache.org/axis2/ns", "axis2");
interfaceinvoke v.<org.apache.axiom.om.OMElement: void addChild(org.apache.axiom.om.OMNode)>(v);
v = new javax.xml.namespace.QName;
specialinvoke v.<javax.xml.namespace.QName: void <init>(java.lang.String,java.lang.String)>("http://ws.apache.org/axis2/ns", "TestChildLocalName");
v = interfaceinvoke v.<org.apache.axiom.om.OMElement: java.util.Iterator getChildrenWithName(javax.xml.namespace.QName)>(v);
v = 0;
label:
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
if v == 0 goto label;
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
v = interfaceinvoke v.<org.apache.axiom.om.OMElement: java.lang.String getLocalName()>();
staticinvoke <org.apache.axiom.ts.om.element.TestAddChild2: void assertEquals(java.lang.String,java.lang.String,java.lang.String)>("Child local name mismatch", "TestChildLocalName", v);
v = interfaceinvoke v.<org.apache.axiom.om.OMElement: org.apache.axiom.om.OMNamespace getNamespace()>();
v = interfaceinvoke v.<org.apache.axiom.om.OMNamespace: java.lang.String getNamespaceURI()>();
staticinvoke <org.apache.axiom.ts.om.element.TestAddChild2: void assertEquals(java.lang.String,java.lang.String,java.lang.String)>("Child namespace mismatch", "http://ws.apache.org/axis2/ns", v);
v = v + 1;
goto label;
label:
staticinvoke <org.apache.axiom.ts.om.element.TestAddChild2: void assertEquals(java.lang.String,int,int)>("In correct number of children", 1, v);
return;
}
}