public class org.apache.axiom.ts.dom.element.TestRemoveLastChild extends org.apache.axiom.ts.dom.DOMTestCase
{
public void <init>(javax.xml.parsers.DocumentBuilderFactory)
{
javax.xml.parsers.DocumentBuilderFactory v;
org.apache.axiom.ts.dom.element.TestRemoveLastChild v;
v := @this: org.apache.axiom.ts.dom.element.TestRemoveLastChild;
v := @parameter: javax.xml.parsers.DocumentBuilderFactory;
specialinvoke v.<org.apache.axiom.ts.dom.DOMTestCase: void <init>(javax.xml.parsers.DocumentBuilderFactory)>(v);
return;
}
protected void runTest() throws java.lang.Throwable
{
org.xml.sax.InputSource v;
org.apache.axiom.ts.dom.element.TestRemoveLastChild v;
org.w3c.dom.Element v;
java.io.StringReader v;
org.w3c.dom.Document v;
javax.xml.parsers.DocumentBuilder v;
org.w3c.dom.Node v, v;
java.lang.String v;
javax.xml.parsers.DocumentBuilderFactory v;
v := @this: org.apache.axiom.ts.dom.element.TestRemoveLastChild;
v = v.<org.apache.axiom.ts.dom.element.TestRemoveLastChild: javax.xml.parsers.DocumentBuilderFactory dbf>;
v = virtualinvoke v.<javax.xml.parsers.DocumentBuilderFactory: javax.xml.parsers.DocumentBuilder newDocumentBuilder()>();
v = new org.xml.sax.InputSource;
v = new java.io.StringReader;
specialinvoke v.<java.io.StringReader: void <init>(java.lang.String)>("<root><a/><b/><c/></root>");
specialinvoke v.<org.xml.sax.InputSource: void <init>(java.io.Reader)>(v);
v = virtualinvoke v.<javax.xml.parsers.DocumentBuilder: org.w3c.dom.Document parse(org.xml.sax.InputSource)>(v);
v = interfaceinvoke v.<org.w3c.dom.Document: org.w3c.dom.Element getDocumentElement()>();
v = interfaceinvoke v.<org.w3c.dom.Element: org.w3c.dom.Node getLastChild()>();
interfaceinvoke v.<org.w3c.dom.Element: org.w3c.dom.Node removeChild(org.w3c.dom.Node)>(v);
v = interfaceinvoke v.<org.w3c.dom.Element: org.w3c.dom.Node getLastChild()>();
staticinvoke <org.apache.axiom.ts.dom.element.TestRemoveLastChild: void assertNotNull(java.lang.Object)>(v);
v = interfaceinvoke v.<org.w3c.dom.Node: java.lang.String getNodeName()>();
staticinvoke <org.apache.axiom.ts.dom.element.TestRemoveLastChild: void assertEquals(java.lang.String,java.lang.String)>("b", v);
return;
}
}