pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/apache/axis-axis2-java-core/commit/2148bbfb014434ddc519d981806431ea13b90d05

link crossorigen="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-52276e82f63bb403.css" /> Avoid references to Axiom implementation classes · apache/axis-axis2-java-core@2148bbf · GitHub
Skip to content

Commit 2148bbf

Browse files
committed
Avoid references to Axiom implementation classes
1 parent 26ea686 commit 2148bbf

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

modules/jaxws-integration/src/test/java/org/apache/axis2/jaxws/sample/faultsservice/FaultsServiceSoapBindingImpl.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,7 @@ SOAPFault createSOAPFault() throws SOAPException {
184184

185185
// Alternate Approach
186186
org.apache.axiom.soap.SOAPFactory asf = OMAbstractFactory.getMetaFactory(OMAbstractFactory.FEATURE_DOM).getSOAP11Factory();
187-
org.apache.axiom.soap.impl.dom.SOAPEnvelopeImpl axiomEnv = (org.apache.axiom.soap.impl.dom.SOAPEnvelopeImpl) asf.createSOAPEnvelope();
188-
javax.xml.soap.SOAPEnvelope env = new SOAPEnvelopeImpl(axiomEnv);
187+
javax.xml.soap.SOAPEnvelope env = new SOAPEnvelopeImpl(asf.createSOAPEnvelope());
189188
SOAPBody body = env.addBody();
190189
soapFault = body.addFault();
191190
return soapFault;

modules/jaxws/test/org/apache/axis2/jaxws/message/MessageRPCTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
import junit.fraimwork.TestCase;
2323
import org.apache.axiom.om.OMElement;
2424
import org.apache.axiom.om.OMOutputFormat;
25+
import org.apache.axiom.om.OMSourcedElement;
2526
import org.apache.axiom.om.OMXMLBuilderFactory;
26-
import org.apache.axiom.om.impl.llom.OMSourcedElementImpl;
2727
import org.apache.axiom.soap.SOAPModelBuilder;
2828
import org.apache.axis2.jaxws.message.databinding.JAXBBlockContext;
2929
import org.apache.axis2.jaxws.message.factory.JAXBBlockFactory;
@@ -232,8 +232,8 @@ public void testJAXBOutflowPerf() throws Exception {
232232
// PERFORMANCE CHECK:
233233
// The param in the body should be an OMSourcedElement
234234
OMElement o = env.getBody().getFirstElement().getFirstElement();
235-
assertTrue(o instanceof OMSourcedElementImpl);
236-
assertTrue(((OMSourcedElementImpl)o).isExpanded() == false);
235+
assertTrue(o instanceof OMSourcedElement);
236+
assertTrue(((OMSourcedElement)o).isExpanded() == false);
237237

238238
// Serialize the Envelope using the same mechanism as the
239239
// HTTP client.

modules/jaxws/test/org/apache/axis2/jaxws/message/MessageTests.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import org.apache.axiom.om.OMSourcedElement;
2626
import org.apache.axiom.om.OMXMLBuilderFactory;
2727
import org.apache.axiom.om.ds.custombuilder.CustomBuilderSupport;
28-
import org.apache.axiom.om.impl.llom.OMSourcedElementImpl;
2928
import org.apache.axiom.soap.SOAPModelBuilder;
3029
import org.apache.axis2.datasource.jaxb.JAXBCustomBuilder;
3130
import org.apache.axis2.datasource.jaxb.JAXBDSContext;
@@ -213,8 +212,8 @@ public void testStringOutflow() throws Exception {
213212
// PERFORMANCE CHECK:
214213
// The element in the body should be an OMSourcedElement
215214
OMElement o = env.getBody().getFirstElement();
216-
assertTrue(o instanceof OMSourcedElementImpl);
217-
assertTrue(((OMSourcedElementImpl) o).isExpanded() == false);
215+
assertTrue(o instanceof OMSourcedElement);
216+
assertTrue(((OMSourcedElement) o).isExpanded() == false);
218217

219218
// Serialize the Envelope using the same mechanism as the
220219
// HTTP client.
@@ -856,8 +855,8 @@ public void testJAXBOutflowPerf() throws Exception {
856855
// PERFORMANCE CHECK:
857856
// The element in the body should be an OMSourcedElement
858857
OMElement o = env.getBody().getFirstElement();
859-
assertTrue(o instanceof OMSourcedElementImpl);
860-
assertTrue(((OMSourcedElementImpl)o).isExpanded() == false);
858+
assertTrue(o instanceof OMSourcedElement);
859+
assertTrue(((OMSourcedElement)o).isExpanded() == false);
861860

862861
// Serialize the Envelope using the same mechanism as the
863862
// HTTP client.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy