public class org.apache.axiom.ts.om.builder.TestCreateStAXOMBuilderIncorrectState 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.builder.TestCreateStAXOMBuilderIncorrectState v;
v := @this: org.apache.axiom.ts.om.builder.TestCreateStAXOMBuilderIncorrectState;
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
{
java.lang.Throwable v;
org.apache.axiom.om.OMMetaFactory v;
java.io.StringReader v;
javax.xml.stream.XMLStreamReader v;
int v;
org.apache.axiom.ts.om.builder.TestCreateStAXOMBuilderIncorrectState v;
org.apache.axiom.om.OMFactory v;
v := @this: org.apache.axiom.ts.om.builder.TestCreateStAXOMBuilderIncorrectState;
v = new java.io.StringReader;
specialinvoke v.<java.io.StringReader: void <init>(java.lang.String)>("<root>text</root>");
v = staticinvoke <org.apache.axiom.om.util.StAXUtils: javax.xml.stream.XMLStreamReader createXMLStreamReader(java.io.Reader)>(v);
label:
v = interfaceinvoke v.<javax.xml.stream.XMLStreamReader: int getEventType()>();
if v == 4 goto label;
interfaceinvoke v.<javax.xml.stream.XMLStreamReader: int next()>();
goto label;
label:
v = v.<org.apache.axiom.ts.om.builder.TestCreateStAXOMBuilderIncorrectState: org.apache.axiom.om.OMMetaFactory metaFactory>;
v = interfaceinvoke v.<org.apache.axiom.om.OMMetaFactory: org.apache.axiom.om.OMFactory getOMFactory()>();
staticinvoke <org.apache.axiom.om.OMXMLBuilderFactory: org.apache.axiom.om.OMXMLParserWrapper createStAXOMBuilder(org.apache.axiom.om.OMFactory,javax.xml.stream.XMLStreamReader)>(v, v);
staticinvoke <org.apache.axiom.ts.om.builder.TestCreateStAXOMBuilderIncorrectState: void fail(java.lang.String)>("Expected OMException");
label:
goto label;
label:
v := @caughtexception;
label:
return;
catch org.apache.axiom.om.OMException from label to label with label;
}
}