public class org.apache.axiom.ts.dom.element.TestCloneNodeWithAttributes extends org.apache.axiom.ts.dom.DOMTestCase
{
private final boolean deep;
public void <init>(javax.xml.parsers.DocumentBuilderFactory, boolean)
{
org.apache.axiom.ts.dom.element.TestCloneNodeWithAttributes v;
javax.xml.parsers.DocumentBuilderFactory v;
boolean v;
v := @this: org.apache.axiom.ts.dom.element.TestCloneNodeWithAttributes;
v := @parameter: javax.xml.parsers.DocumentBuilderFactory;
v := @parameter: boolean;
specialinvoke v.<org.apache.axiom.ts.dom.DOMTestCase: void <init>(javax.xml.parsers.DocumentBuilderFactory)>(v);
v.<org.apache.axiom.ts.dom.element.TestCloneNodeWithAttributes: boolean deep> = v;
virtualinvoke v.<org.apache.axiom.ts.dom.element.TestCloneNodeWithAttributes: void addTestParameter(java.lang.String,boolean)>("deep", v);
return;
}
protected void runTest() throws java.lang.Throwable
{
org.w3c.dom.Attr v, v;
org.w3c.dom.Element v, v, v;
org.w3c.dom.Document v;
javax.xml.parsers.DocumentBuilder v;
org.w3c.dom.Node v;
int v;
org.apache.axiom.ts.dom.element.TestCloneNodeWithAttributes v;
org.w3c.dom.NamedNodeMap v;
java.lang.String v, v;
javax.xml.parsers.DocumentBuilderFactory v;
boolean v;
v := @this: org.apache.axiom.ts.dom.element.TestCloneNodeWithAttributes;
v = v.<org.apache.axiom.ts.dom.element.TestCloneNodeWithAttributes: javax.xml.parsers.DocumentBuilderFactory dbf>;
v = virtualinvoke v.<javax.xml.parsers.DocumentBuilderFactory: javax.xml.parsers.DocumentBuilder newDocumentBuilder()>();
v = virtualinvoke v.<javax.xml.parsers.DocumentBuilder: org.w3c.dom.Document newDocument()>();
v = interfaceinvoke v.<org.w3c.dom.Document: org.w3c.dom.Element createElementNS(java.lang.String,java.lang.String)>("urn:ns1", "p:elem");
interfaceinvoke v.<org.w3c.dom.Element: void setAttributeNS(java.lang.String,java.lang.String,java.lang.String)>(null, "attr1", "value1");
interfaceinvoke v.<org.w3c.dom.Element: void setAttributeNS(java.lang.String,java.lang.String,java.lang.String)>("urn:ns2", "q:attr2", "value2");
v = v.<org.apache.axiom.ts.dom.element.TestCloneNodeWithAttributes: boolean deep>;
v = interfaceinvoke v.<org.w3c.dom.Element: org.w3c.dom.Node cloneNode(boolean)>(v);
v = interfaceinvoke v.<org.w3c.dom.Element: org.w3c.dom.NamedNodeMap getAttributes()>();
v = interfaceinvoke v.<org.w3c.dom.NamedNodeMap: int getLength()>();
staticinvoke <org.apache.axiom.ts.dom.element.TestCloneNodeWithAttributes: void assertEquals(int,int)>(2, v);
v = interfaceinvoke v.<org.w3c.dom.Element: org.w3c.dom.Attr getAttributeNodeNS(java.lang.String,java.lang.String)>(null, "attr1");
v = interfaceinvoke v.<org.w3c.dom.Element: org.w3c.dom.Attr getAttributeNodeNS(java.lang.String,java.lang.String)>("urn:ns2", "attr2");
staticinvoke <org.apache.axiom.ts.dom.element.TestCloneNodeWithAttributes: void assertNotNull(java.lang.Object)>(v);
staticinvoke <org.apache.axiom.ts.dom.element.TestCloneNodeWithAttributes: void assertNotNull(java.lang.Object)>(v);
v = interfaceinvoke v.<org.w3c.dom.Attr: org.w3c.dom.Element getOwnerElement()>();
staticinvoke <org.apache.axiom.ts.dom.element.TestCloneNodeWithAttributes: void assertSame(java.lang.Object,java.lang.Object)>(v, v);
v = interfaceinvoke v.<org.w3c.dom.Attr: org.w3c.dom.Element getOwnerElement()>();
staticinvoke <org.apache.axiom.ts.dom.element.TestCloneNodeWithAttributes: void assertSame(java.lang.Object,java.lang.Object)>(v, v);
v = interfaceinvoke v.<org.w3c.dom.Attr: java.lang.String getValue()>();
staticinvoke <org.apache.axiom.ts.dom.element.TestCloneNodeWithAttributes: void assertEquals(java.lang.String,java.lang.String)>("value1", v);
v = interfaceinvoke v.<org.w3c.dom.Attr: java.lang.String getValue()>();
staticinvoke <org.apache.axiom.ts.dom.element.TestCloneNodeWithAttributes: void assertEquals(java.lang.String,java.lang.String)>("value2", v);
return;
}
}