public class org.apache.axiom.ts.om.element.TestAddAttributeWithoutExistingNamespaceDeclaration extends org.apache.axiom.ts.AxiomTestCase
{
private final org.apache.axiom.ts.dimension.AddAttributeStrategy strategy;
public void <init>(org.apache.axiom.om.OMMetaFactory, org.apache.axiom.ts.dimension.AddAttributeStrategy)
{
org.apache.axiom.ts.om.element.TestAddAttributeWithoutExistingNamespaceDeclaration v;
org.apache.axiom.om.OMMetaFactory v;
org.apache.axiom.ts.dimension.AddAttributeStrategy v;
v := @this: org.apache.axiom.ts.om.element.TestAddAttributeWithoutExistingNamespaceDeclaration;
v := @parameter: org.apache.axiom.om.OMMetaFactory;
v := @parameter: org.apache.axiom.ts.dimension.AddAttributeStrategy;
specialinvoke v.<org.apache.axiom.ts.AxiomTestCase: void <init>(org.apache.axiom.om.OMMetaFactory)>(v);
v.<org.apache.axiom.ts.om.element.TestAddAttributeWithoutExistingNamespaceDeclaration: org.apache.axiom.ts.dimension.AddAttributeStrategy strategy> = v;
virtualinvoke v.<org.apache.axiom.ts.dimension.AddAttributeStrategy: void addTestParameters(org.apache.axiom.testutils.suite.MatrixTestCase)>(v);
return;
}
protected void runTest() throws java.lang.Throwable
{
org.apache.axiom.om.OMElement v;
org.apache.axiom.ts.om.element.TestAddAttributeWithoutExistingNamespaceDeclaration v;
java.util.Iterator v;
org.apache.axiom.ts.dimension.AddAttributeStrategy v;
org.apache.axiom.om.OMMetaFactory v;
org.apache.axiom.om.OMNamespace v, v;
java.lang.Object v;
org.apache.axiom.om.OMFactory v;
java.lang.String v, v;
javax.xml.namespace.QName v;
boolean v, v;
v := @this: org.apache.axiom.ts.om.element.TestAddAttributeWithoutExistingNamespaceDeclaration;
v = v.<org.apache.axiom.ts.om.element.TestAddAttributeWithoutExistingNamespaceDeclaration: org.apache.axiom.om.OMMetaFactory metaFactory>;
v = interfaceinvoke v.<org.apache.axiom.om.OMMetaFactory: org.apache.axiom.om.OMFactory getOMFactory()>();
v = new javax.xml.namespace.QName;
specialinvoke v.<javax.xml.namespace.QName: void <init>(java.lang.String)>("test");
v = interfaceinvoke v.<org.apache.axiom.om.OMFactory: org.apache.axiom.om.OMElement createOMElement(javax.xml.namespace.QName)>(v);
v = interfaceinvoke v.<org.apache.axiom.om.OMFactory: org.apache.axiom.om.OMNamespace createOMNamespace(java.lang.String,java.lang.String)>("urn:ns", "p");
v = v.<org.apache.axiom.ts.om.element.TestAddAttributeWithoutExistingNamespaceDeclaration: org.apache.axiom.ts.dimension.AddAttributeStrategy strategy>;
virtualinvoke v.<org.apache.axiom.ts.dimension.AddAttributeStrategy: org.apache.axiom.om.OMAttribute addAttribute(org.apache.axiom.om.OMElement,java.lang.String,org.apache.axiom.om.OMNamespace,java.lang.String)>(v, "test", v, "test");
v = interfaceinvoke v.<org.apache.axiom.om.OMNamespace: java.lang.String getNamespaceURI()>();
v = interfaceinvoke v.<org.apache.axiom.om.OMNamespace: java.lang.String getPrefix()>();
v = interfaceinvoke v.<org.apache.axiom.om.OMElement: org.apache.axiom.om.OMNamespace findNamespace(java.lang.String,java.lang.String)>(v, v);
staticinvoke <org.apache.axiom.ts.om.element.TestAddAttributeWithoutExistingNamespaceDeclaration: void assertEquals(java.lang.Object,java.lang.Object)>(v, v);
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.TestAddAttributeWithoutExistingNamespaceDeclaration: void assertTrue(boolean)>(v);
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
staticinvoke <org.apache.axiom.ts.om.element.TestAddAttributeWithoutExistingNamespaceDeclaration: void assertEquals(java.lang.Object,java.lang.Object)>(v, v);
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
staticinvoke <org.apache.axiom.ts.om.element.TestAddAttributeWithoutExistingNamespaceDeclaration: void assertFalse(boolean)>(v);
return;
}
}