public class org.apache.axiom.ts.soap.builder.TestRegisterCustomBuilderForPayload extends org.apache.axiom.ts.AxiomTestCase
{
private final org.apache.axiom.ts.soap.SOAPSample message;
public void <init>(org.apache.axiom.om.OMMetaFactory, org.apache.axiom.ts.soap.SOAPSample)
{
org.apache.axiom.om.OMMetaFactory v;
org.apache.axiom.ts.soap.SOAPSample v;
java.lang.String v;
org.apache.axiom.ts.soap.builder.TestRegisterCustomBuilderForPayload v;
v := @this: org.apache.axiom.ts.soap.builder.TestRegisterCustomBuilderForPayload;
v := @parameter: org.apache.axiom.om.OMMetaFactory;
v := @parameter: org.apache.axiom.ts.soap.SOAPSample;
specialinvoke v.<org.apache.axiom.ts.AxiomTestCase: void <init>(org.apache.axiom.om.OMMetaFactory)>(v);
v.<org.apache.axiom.ts.soap.builder.TestRegisterCustomBuilderForPayload: org.apache.axiom.ts.soap.SOAPSample message> = v;
v = virtualinvoke v.<org.apache.axiom.ts.soap.SOAPSample: java.lang.String getName()>();
virtualinvoke v.<org.apache.axiom.ts.soap.builder.TestRegisterCustomBuilderForPayload: void addTestParameter(java.lang.String,java.lang.String)>("message", v);
return;
}
protected void runTest() throws java.lang.Throwable
{
javax.xml.stream.XMLStreamReader v;
org.apache.axiom.blob.WritableBlobFactory v;
boolean v, v, v;
com.google.common.truth.SimpleSubjectBuilder v, v;
com.google.common.truth.Subject v, v, v, v, v, v;
org.apache.axiom.ts.soap.builder.TestRegisterCustomBuilderForPayload v;
org.apache.axiom.truth.xml.XMLSubject v, v, v;
com.google.common.truth.Subject$Factory v, v;
org.apache.axiom.soap.SOAPBody v;
org.apache.axiom.om.ds.custombuilder.BlobOMDataSourceCustomBuilder v;
org.apache.axiom.soap.SOAPEnvelope v;
java.lang.Boolean v;
java.lang.String v, v;
com.google.common.truth.BooleanSubject v;
org.apache.axiom.om.OMElement v;
org.apache.axiom.soap.SOAPModelBuilder v;
org.xml.sax.InputSource v, v;
org.apache.axiom.ts.soap.SOAPSample v, v, v, v, v;
org.apache.axiom.blob.Blob v;
org.apache.axiom.om.OMMetaFactory v;
org.w3c.dom.Element v, v;
org.apache.axiom.om.ds.custombuilder.CustomBuilder$Selector v;
java.lang.Object v, v;
java.io.InputStream v, v;
v := @this: org.apache.axiom.ts.soap.builder.TestRegisterCustomBuilderForPayload;
v = v.<org.apache.axiom.ts.soap.builder.TestRegisterCustomBuilderForPayload: org.apache.axiom.ts.soap.SOAPSample message>;
v = virtualinvoke v.<org.apache.axiom.ts.soap.SOAPSample: java.lang.Object getAdapter(java.lang.Class)>(class "Lorg/apache/axiom/ts/soap/SOAPSampleAdapter;");
v = v.<org.apache.axiom.ts.soap.builder.TestRegisterCustomBuilderForPayload: org.apache.axiom.om.OMMetaFactory metaFactory>;
v = virtualinvoke v.<org.apache.axiom.ts.soap.SOAPSampleAdapter: org.apache.axiom.soap.SOAPModelBuilder getBuilder(org.apache.axiom.om.OMMetaFactory)>(v);
v = <org.apache.axiom.om.ds.custombuilder.CustomBuilder$Selector: org.apache.axiom.om.ds.custombuilder.CustomBuilder$Selector PAYLOAD>;
v = new org.apache.axiom.om.ds.custombuilder.BlobOMDataSourceCustomBuilder;
v = <org.apache.axiom.blob.MemoryBlob: org.apache.axiom.blob.WritableBlobFactory FACTORY>;
specialinvoke v.<org.apache.axiom.om.ds.custombuilder.BlobOMDataSourceCustomBuilder: void <init>(org.apache.axiom.blob.WritableBlobFactory,java.lang.String)>(v, "utf-8");
interfaceinvoke v.<org.apache.axiom.om.ds.custombuilder.CustomBuilderSupport: void registerCustomBuilder(org.apache.axiom.om.ds.custombuilder.CustomBuilder$Selector,org.apache.axiom.om.ds.custombuilder.CustomBuilder)>(v, v);
v = interfaceinvoke v.<org.apache.axiom.soap.SOAPModelBuilder: org.apache.axiom.soap.SOAPEnvelope getSOAPEnvelope()>();
v = interfaceinvoke v.<org.apache.axiom.soap.SOAPEnvelope: org.apache.axiom.soap.SOAPBody getBody()>();
v = interfaceinvoke v.<org.apache.axiom.soap.SOAPBody: org.apache.axiom.om.OMElement getFirstElement()>();
v = v.<org.apache.axiom.ts.soap.builder.TestRegisterCustomBuilderForPayload: org.apache.axiom.ts.soap.SOAPSample message>;
v = virtualinvoke v.<org.apache.axiom.ts.soap.SOAPSample: org.w3c.dom.Element getPayload()>();
if v != null goto label;
v = staticinvoke <com.google.common.truth.Truth: com.google.common.truth.Subject assertThat(java.lang.Object)>(v);
virtualinvoke v.<com.google.common.truth.Subject: void isNull()>();
goto label;
label:
v = v.<org.apache.axiom.ts.soap.builder.TestRegisterCustomBuilderForPayload: org.apache.axiom.ts.soap.SOAPSample message>;
v = virtualinvoke v.<org.apache.axiom.ts.soap.SOAPSample: org.w3c.dom.Element getPayload()>();
v = interfaceinvoke v.<org.w3c.dom.Element: java.lang.String getLocalName()>();
v = virtualinvoke v.<java.lang.String: boolean equals(java.lang.Object)>("Fault");
if v == 0 goto label;
v = staticinvoke <com.google.common.truth.Truth: com.google.common.truth.Subject assertThat(java.lang.Object)>(v);
virtualinvoke v.<com.google.common.truth.Subject: void isInstanceOf(java.lang.Class)>(class "Lorg/apache/axiom/soap/SOAPFault;");
goto label;
label:
v = staticinvoke <com.google.common.truth.Truth: com.google.common.truth.Subject assertThat(java.lang.Object)>(v);
virtualinvoke v.<com.google.common.truth.Subject: void isInstanceOf(java.lang.Class)>(class "Lorg/apache/axiom/om/OMSourcedElement;");
v = interfaceinvoke v.<org.apache.axiom.om.OMSourcedElement: java.lang.Object getObject(java.lang.Class)>(class "Lorg/apache/axiom/om/ds/BlobOMDataSource;");
v = staticinvoke <com.google.common.truth.Truth: com.google.common.truth.Subject assertThat(java.lang.Object)>(v);
virtualinvoke v.<com.google.common.truth.Subject: void isNotNull()>();
v = new org.xml.sax.InputSource;
v = virtualinvoke v.<org.apache.axiom.om.ds.BlobOMDataSource$Data: org.apache.axiom.blob.Blob getBlob()>();
v = interfaceinvoke v.<org.apache.axiom.blob.Blob: java.io.InputStream getInputStream()>();
specialinvoke v.<org.xml.sax.InputSource: void <init>(java.io.InputStream)>(v);
v = virtualinvoke v.<org.apache.axiom.om.ds.BlobOMDataSource$Data: java.lang.String getEncoding()>();
virtualinvoke v.<org.xml.sax.InputSource: void setEncoding(java.lang.String)>(v);
v = staticinvoke <org.apache.axiom.truth.xml.XMLTruth: com.google.common.truth.Subject$Factory xml()>();
v = staticinvoke <com.google.common.truth.Truth: com.google.common.truth.SimpleSubjectBuilder assertAbout(com.google.common.truth.Subject$Factory)>(v);
v = virtualinvoke v.<com.google.common.truth.SimpleSubjectBuilder: com.google.common.truth.Subject that(java.lang.Object)>(v);
v = virtualinvoke v.<org.apache.axiom.truth.xml.XMLSubject: org.apache.axiom.truth.xml.XMLSubject ignoringNamespaceDeclarations()>();
v = v.<org.apache.axiom.ts.soap.builder.TestRegisterCustomBuilderForPayload: org.apache.axiom.ts.soap.SOAPSample message>;
v = virtualinvoke v.<org.apache.axiom.ts.soap.SOAPSample: org.xml.sax.InputSource getPayloadInputSource()>();
virtualinvoke v.<org.apache.axiom.truth.xml.XMLSubject: void hasSameContentAs(java.lang.Object)>(v);
label:
v = staticinvoke <org.apache.axiom.truth.xml.XMLTruth: com.google.common.truth.Subject$Factory xml()>();
v = staticinvoke <com.google.common.truth.Truth: com.google.common.truth.SimpleSubjectBuilder assertAbout(com.google.common.truth.Subject$Factory)>(v);
v = interfaceinvoke v.<org.apache.axiom.soap.SOAPEnvelope: javax.xml.stream.XMLStreamReader getXMLStreamReader(boolean)>(0);
v = virtualinvoke v.<com.google.common.truth.SimpleSubjectBuilder: com.google.common.truth.Subject that(java.lang.Object)>(v);
v = virtualinvoke v.<org.apache.axiom.truth.xml.XMLSubject: org.apache.axiom.truth.xml.XMLSubject ignoringPrologAndEpilog()>();
v = virtualinvoke v.<org.apache.axiom.truth.xml.XMLSubject: org.apache.axiom.truth.xml.XMLSubject ignoringRedundantNamespaceDeclarations()>();
v = v.<org.apache.axiom.ts.soap.builder.TestRegisterCustomBuilderForPayload: org.apache.axiom.ts.soap.SOAPSample message>;
v = virtualinvoke v.<org.apache.axiom.ts.soap.SOAPSample: java.io.InputStream getInputStream()>();
virtualinvoke v.<org.apache.axiom.truth.xml.XMLSubject: void hasSameContentAs(java.lang.Object)>(v);
v = v instanceof org.apache.axiom.om.OMSourcedElement;
if v == 0 goto label;
v = interfaceinvoke v.<org.apache.axiom.om.OMSourcedElement: boolean isExpanded()>();
v = staticinvoke <java.lang.Boolean: java.lang.Boolean valueOf(boolean)>(v);
v = staticinvoke <com.google.common.truth.Truth: com.google.common.truth.BooleanSubject assertThat(java.lang.Boolean)>(v);
virtualinvoke v.<com.google.common.truth.BooleanSubject: void isFalse()>();
label:
return;
}
}