public class org.apache.axiom.ts.om.element.TestGetAllDeclaredNamespaces 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.TestGetAllDeclaredNamespaces v;
v := @this: org.apache.axiom.ts.om.element.TestGetAllDeclaredNamespaces;
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;
java.util.Iterator v;
org.apache.axiom.om.OMMetaFactory v;
org.apache.axiom.ts.om.element.TestGetAllDeclaredNamespaces v;
java.lang.Object v;
org.apache.axiom.om.OMFactory v;
java.lang.String v, v;
boolean v, v;
v := @this: org.apache.axiom.ts.om.element.TestGetAllDeclaredNamespaces;
v = v.<org.apache.axiom.ts.om.element.TestGetAllDeclaredNamespaces: org.apache.axiom.om.OMMetaFactory metaFactory>;
v = interfaceinvoke v.<org.apache.axiom.om.OMMetaFactory: org.apache.axiom.om.OMFactory getOMFactory()>();
v = staticinvoke <org.apache.axiom.om.util.AXIOMUtil: org.apache.axiom.om.OMElement stringToOM(org.apache.axiom.om.OMFactory,java.lang.String)>(v, "<e xmlns:p=\'urn:test\' p:attr=\'test\'/>");
v = interfaceinvoke v.<org.apache.axiom.om.OMElement: java.util.Iterator getAllDeclaredNamespaces()>();
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
staticinvoke <org.apache.axiom.ts.om.element.TestGetAllDeclaredNamespaces: void assertTrue(boolean)>(v);
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
v = interfaceinvoke v.<org.apache.axiom.om.OMNamespace: java.lang.String getPrefix()>();
staticinvoke <org.apache.axiom.ts.om.element.TestGetAllDeclaredNamespaces: void assertEquals(java.lang.String,java.lang.String)>("p", v);
v = interfaceinvoke v.<org.apache.axiom.om.OMNamespace: java.lang.String getNamespaceURI()>();
staticinvoke <org.apache.axiom.ts.om.element.TestGetAllDeclaredNamespaces: void assertEquals(java.lang.String,java.lang.String)>("urn:test", v);
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
staticinvoke <org.apache.axiom.ts.om.element.TestGetAllDeclaredNamespaces: void assertFalse(boolean)>(v);
return;
}
}