public class org.apache.axiom.ts.om.builder.TestCreateStAXOMBuilderNamespaceRepairing 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.builder.TestCreateStAXOMBuilderNamespaceRepairing v;
v := @this: org.apache.axiom.ts.om.builder.TestCreateStAXOMBuilderNamespaceRepairing;
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.ts.om.builder.NamespaceDeclarationFilter v;
javax.xml.stream.XMLStreamReader v;
java.lang.String v, v, v, v;
boolean v, v, v, v;
org.apache.axiom.om.OMElement v, v;
java.util.Iterator v, v;
org.apache.axiom.om.OMXMLParserWrapper v;
org.apache.axiom.om.OMMetaFactory v;
java.io.StringReader v;
java.lang.Object v, v;
org.apache.axiom.om.OMFactory v;
org.apache.axiom.ts.om.builder.TestCreateStAXOMBuilderNamespaceRepairing v;
v := @this: org.apache.axiom.ts.om.builder.TestCreateStAXOMBuilderNamespaceRepairing;
v = new java.io.StringReader;
specialinvoke v.<java.io.StringReader: void <init>(java.lang.String)>("<p:root xmlns:p=\'urn:ns1\' xmlns:q=\'urn:ns2\'><child q:attr=\'value\'/></p:root>");
v = staticinvoke <org.apache.axiom.om.util.StAXUtils: javax.xml.stream.XMLStreamReader createXMLStreamReader(java.io.Reader)>(v);
v = v.<org.apache.axiom.ts.om.builder.TestCreateStAXOMBuilderNamespaceRepairing: org.apache.axiom.om.OMMetaFactory metaFactory>;
v = interfaceinvoke v.<org.apache.axiom.om.OMMetaFactory: org.apache.axiom.om.OMFactory getOMFactory()>();
v = new org.apache.axiom.ts.om.builder.NamespaceDeclarationFilter;
specialinvoke v.<org.apache.axiom.ts.om.builder.NamespaceDeclarationFilter: void <init>(javax.xml.stream.XMLStreamReader)>(v);
v = staticinvoke <org.apache.axiom.om.OMXMLBuilderFactory: org.apache.axiom.om.OMXMLParserWrapper createStAXOMBuilder(org.apache.axiom.om.OMFactory,javax.xml.stream.XMLStreamReader)>(v, v);
v = interfaceinvoke v.<org.apache.axiom.om.OMXMLParserWrapper: org.apache.axiom.om.OMElement getDocumentElement()>();
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.builder.TestCreateStAXOMBuilderNamespaceRepairing: 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.builder.TestCreateStAXOMBuilderNamespaceRepairing: 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.builder.TestCreateStAXOMBuilderNamespaceRepairing: void assertEquals(java.lang.String,java.lang.String)>("urn:ns1", v);
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
staticinvoke <org.apache.axiom.ts.om.builder.TestCreateStAXOMBuilderNamespaceRepairing: void assertFalse(boolean)>(v);
v = interfaceinvoke v.<org.apache.axiom.om.OMElement: org.apache.axiom.om.OMElement getFirstElement()>();
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.builder.TestCreateStAXOMBuilderNamespaceRepairing: 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.builder.TestCreateStAXOMBuilderNamespaceRepairing: void assertEquals(java.lang.String,java.lang.String)>("q", v);
v = interfaceinvoke v.<org.apache.axiom.om.OMNamespace: java.lang.String getNamespaceURI()>();
staticinvoke <org.apache.axiom.ts.om.builder.TestCreateStAXOMBuilderNamespaceRepairing: void assertEquals(java.lang.String,java.lang.String)>("urn:ns2", v);
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
staticinvoke <org.apache.axiom.ts.om.builder.TestCreateStAXOMBuilderNamespaceRepairing: void assertFalse(boolean)>(v);
return;
}
}