public class org.apache.axiom.ts.om.element.sr.TestGetElementTextFromParser extends org.apache.axiom.ts.AxiomTestCase
{
private final org.apache.axiom.ts.dimension.BuilderFactory builderFactory;
private final boolean cache;
private final int build;
public void <init>(org.apache.axiom.om.OMMetaFactory, org.apache.axiom.ts.dimension.BuilderFactory, boolean, int)
{
org.apache.axiom.om.OMMetaFactory v;
org.apache.axiom.ts.om.element.sr.TestGetElementTextFromParser v;
org.apache.axiom.ts.dimension.BuilderFactory v;
int v;
boolean v;
v := @this: org.apache.axiom.ts.om.element.sr.TestGetElementTextFromParser;
v := @parameter: org.apache.axiom.om.OMMetaFactory;
v := @parameter: org.apache.axiom.ts.dimension.BuilderFactory;
v := @parameter: boolean;
v := @parameter: int;
specialinvoke v.<org.apache.axiom.ts.AxiomTestCase: void <init>(org.apache.axiom.om.OMMetaFactory)>(v);
v.<org.apache.axiom.ts.om.element.sr.TestGetElementTextFromParser: org.apache.axiom.ts.dimension.BuilderFactory builderFactory> = v;
v.<org.apache.axiom.ts.om.element.sr.TestGetElementTextFromParser: boolean cache> = v;
v.<org.apache.axiom.ts.om.element.sr.TestGetElementTextFromParser: int build> = v;
virtualinvoke v.<org.apache.axiom.ts.dimension.BuilderFactory: void addTestParameters(org.apache.axiom.testutils.suite.MatrixTestCase)>(v);
virtualinvoke v.<org.apache.axiom.ts.om.element.sr.TestGetElementTextFromParser: void addTestParameter(java.lang.String,boolean)>("cache", v);
virtualinvoke v.<org.apache.axiom.ts.om.element.sr.TestGetElementTextFromParser: void addTestParameter(java.lang.String,int)>("build", v);
return;
}
protected void runTest() throws java.lang.Throwable
{
org.apache.axiom.om.OMElement v;
org.xml.sax.InputSource v;
java.util.Iterator v;
org.apache.axiom.om.OMXMLParserWrapper v;
org.apache.axiom.om.OMMetaFactory v;
org.apache.axiom.ts.om.element.sr.TestGetElementTextFromParser v;
org.apache.axiom.ts.dimension.BuilderFactory v;
java.io.StringReader v;
javax.xml.stream.XMLStreamReader v;
int v, v, v, v;
java.lang.String v;
boolean v;
v := @this: org.apache.axiom.ts.om.element.sr.TestGetElementTextFromParser;
v = v.<org.apache.axiom.ts.om.element.sr.TestGetElementTextFromParser: org.apache.axiom.ts.dimension.BuilderFactory builderFactory>;
v = v.<org.apache.axiom.ts.om.element.sr.TestGetElementTextFromParser: org.apache.axiom.om.OMMetaFactory metaFactory>;
v = new org.xml.sax.InputSource;
v = new java.io.StringReader;
specialinvoke v.<java.io.StringReader: void <init>(java.lang.String)>("<a><b>AB<!--comment text-->CD</b></a>");
specialinvoke v.<org.xml.sax.InputSource: void <init>(java.io.Reader)>(v);
v = virtualinvoke v.<org.apache.axiom.ts.dimension.BuilderFactory: org.apache.axiom.om.OMXMLParserWrapper getBuilder(org.apache.axiom.om.OMMetaFactory,org.xml.sax.InputSource)>(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 getDescendants(boolean)>(1);
v = 0;
label:
v = v.<org.apache.axiom.ts.om.element.sr.TestGetElementTextFromParser: int build>;
if v >= v goto label;
interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
v = v + 1;
goto label;
label:
v = v.<org.apache.axiom.ts.om.element.sr.TestGetElementTextFromParser: boolean cache>;
v = interfaceinvoke v.<org.apache.axiom.om.OMElement: javax.xml.stream.XMLStreamReader getXMLStreamReader(boolean)>(v);
v = interfaceinvoke v.<javax.xml.stream.XMLStreamReader: int next()>();
staticinvoke <org.apache.axiom.ts.om.element.sr.TestGetElementTextFromParser: void assertEquals(int,int)>(1, v);
v = interfaceinvoke v.<javax.xml.stream.XMLStreamReader: int next()>();
staticinvoke <org.apache.axiom.ts.om.element.sr.TestGetElementTextFromParser: void assertEquals(int,int)>(1, v);
v = interfaceinvoke v.<javax.xml.stream.XMLStreamReader: java.lang.String getElementText()>();
staticinvoke <org.apache.axiom.ts.om.element.sr.TestGetElementTextFromParser: void assertEquals(java.lang.String,java.lang.String)>("ABCD", v);
return;
}
}