public class org.apache.axiom.ts.om.element.TestGetAllAttributes extends org.apache.axiom.ts.AxiomTestCase
{
public void <init>(org.apache.axiom.om.OMMetaFactory)
{
org.apache.axiom.ts.om.element.TestGetAllAttributes v;
org.apache.axiom.om.OMMetaFactory v;
v := @this: org.apache.axiom.ts.om.element.TestGetAllAttributes;
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;
org.apache.axiom.ts.om.element.TestGetAllAttributes v;
java.util.Iterator v;
org.apache.axiom.om.OMMetaFactory v;
java.lang.Object v, v;
org.apache.axiom.om.OMFactory v;
java.lang.String v, v;
boolean v, v, v;
v := @this: org.apache.axiom.ts.om.element.TestGetAllAttributes;
v = v.<org.apache.axiom.ts.om.element.TestGetAllAttributes1: 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,org.apache.axiom.om.OMNamespace)>("test", null);
interfaceinvoke v.<org.apache.axiom.om.OMElement: org.apache.axiom.om.OMAttribute addAttribute(java.lang.String,java.lang.String,org.apache.axiom.om.OMNamespace)>("attr1", "value1", null);
interfaceinvoke v.<org.apache.axiom.om.OMElement: org.apache.axiom.om.OMAttribute addAttribute(java.lang.String,java.lang.String,org.apache.axiom.om.OMNamespace)>("attr2", "value2", null);
v = interfaceinvoke v.<org.apache.axiom.om.OMElement: java.util.Iterator getAllAttributes()>();
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
staticinvoke <org.apache.axiom.ts.om.element.TestGetAllAttributes1: void assertTrue(boolean)>(v);
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
v = interfaceinvoke v.<org.apache.axiom.om.OMAttribute: java.lang.String getLocalName()>();
staticinvoke <org.apache.axiom.ts.om.element.TestGetAllAttributes1: void assertEquals(java.lang.String,java.lang.String)>("attr1", v);
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
staticinvoke <org.apache.axiom.ts.om.element.TestGetAllAttributes1: void assertTrue(boolean)>(v);
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
v = interfaceinvoke v.<org.apache.axiom.om.OMAttribute: java.lang.String getLocalName()>();
staticinvoke <org.apache.axiom.ts.om.element.TestGetAllAttributes1: void assertEquals(java.lang.String,java.lang.String)>("attr2", v);
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
staticinvoke <org.apache.axiom.ts.om.element.TestGetAllAttributes1: void assertFalse(boolean)>(v);
return;
}
}