public class org.apache.axiom.ts.om.element.TestAddAttributeReuseExistingPrefix 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.TestAddAttributeReuseExistingPrefix v;
v := @this: org.apache.axiom.ts.om.element.TestAddAttributeReuseExistingPrefix;
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;
org.apache.axiom.truth.OMElementSubject v;
org.apache.axiom.om.OMMetaFactory v;
org.apache.axiom.om.OMNamespace v;
org.apache.axiom.ts.om.element.TestAddAttributeReuseExistingPrefix v;
org.apache.axiom.truth.OMAttributeSubject v;
org.apache.axiom.om.OMFactory v;
org.apache.axiom.om.OMAttribute v;
v := @this: org.apache.axiom.ts.om.element.TestAddAttributeReuseExistingPrefix;
v = v.<org.apache.axiom.ts.om.element.TestAddAttributeReuseExistingPrefix: 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)>("parent", null);
v = interfaceinvoke v.<org.apache.axiom.om.OMFactory: org.apache.axiom.om.OMElement createOMElement(java.lang.String,org.apache.axiom.om.OMNamespace,org.apache.axiom.om.OMContainer)>("element", null, v);
interfaceinvoke v.<org.apache.axiom.om.OMElement: org.apache.axiom.om.OMNamespace declareNamespace(java.lang.String,java.lang.String)>("urn:test", "p");
v = interfaceinvoke v.<org.apache.axiom.om.OMFactory: org.apache.axiom.om.OMNamespace createOMNamespace(java.lang.String,java.lang.String)>("urn:test", null);
v = interfaceinvoke v.<org.apache.axiom.om.OMElement: org.apache.axiom.om.OMAttribute addAttribute(java.lang.String,java.lang.String,org.apache.axiom.om.OMNamespace)>("attr", "test", v);
v = staticinvoke <org.apache.axiom.truth.AxiomTruth: org.apache.axiom.truth.OMAttributeSubject assertThat(org.apache.axiom.om.OMAttribute)>(v);
virtualinvoke v.<org.apache.axiom.truth.OMAttributeSubject: void hasPrefix(java.lang.String)>("p");
v = staticinvoke <org.apache.axiom.truth.AxiomTruth: org.apache.axiom.truth.OMElementSubject assertThat(org.apache.axiom.om.OMElement)>(v);
virtualinvoke v.<org.apache.axiom.truth.OMElementSubject: void hasNoNamespaceDeclarations()>();
return;
}
}