This is an automated email from the ASF dual-hosted git repository.
veithen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git
The following commit(s) were added to refs/heads/master by this push:
new 2148bbf Avoid references to Axiom implementation classes
2148bbf is described below
commit 2148bbfb014434ddc519d981806431ea13b90d05
Author: Andreas Veithen <[email protected]>
AuthorDate: Sun Nov 21 15:01:19 2021 +0000
Avoid references to Axiom implementation classes
---
.../jaxws/sample/faultsservice/FaultsServiceSoapBindingImpl.java | 3 +--
.../test/org/apache/axis2/jaxws/message/MessageRPCTests.java | 6 +++---
.../jaxws/test/org/apache/axis2/jaxws/message/MessageTests.java | 9 ++++-----
3 files changed, 8 insertions(+), 10 deletions(-)
diff --git
a/modules/jaxws-integration/src/test/java/org/apache/axis2/jaxws/sample/faultsservice/FaultsServiceSoapBindingImpl.java
b/modules/jaxws-integration/src/test/java/org/apache/axis2/jaxws/sample/faultsservice/FaultsServiceSoapBindingImpl.java
index bac412c..1624a1f 100644
---
a/modules/jaxws-integration/src/test/java/org/apache/axis2/jaxws/sample/faultsservice/FaultsServiceSoapBindingImpl.java
+++
b/modules/jaxws-integration/src/test/java/org/apache/axis2/jaxws/sample/faultsservice/FaultsServiceSoapBindingImpl.java
@@ -184,8 +184,7 @@ public class FaultsServiceSoapBindingImpl implements
FaultsServicePortType {
// Alternate Approach
org.apache.axiom.soap.SOAPFactory asf =
OMAbstractFactory.getMetaFactory(OMAbstractFactory.FEATURE_DOM).getSOAP11Factory();
- org.apache.axiom.soap.impl.dom.SOAPEnvelopeImpl axiomEnv =
(org.apache.axiom.soap.impl.dom.SOAPEnvelopeImpl) asf.createSOAPEnvelope();
- javax.xml.soap.SOAPEnvelope env = new SOAPEnvelopeImpl(axiomEnv);
+ javax.xml.soap.SOAPEnvelope env = new
SOAPEnvelopeImpl(asf.createSOAPEnvelope());
SOAPBody body = env.addBody();
soapFault = body.addFault();
return soapFault;
diff --git
a/modules/jaxws/test/org/apache/axis2/jaxws/message/MessageRPCTests.java
b/modules/jaxws/test/org/apache/axis2/jaxws/message/MessageRPCTests.java
index edf596a..5f41d3b 100644
--- a/modules/jaxws/test/org/apache/axis2/jaxws/message/MessageRPCTests.java
+++ b/modules/jaxws/test/org/apache/axis2/jaxws/message/MessageRPCTests.java
@@ -22,8 +22,8 @@ package org.apache.axis2.jaxws.message;
import junit.framework.TestCase;
import org.apache.axiom.om.OMElement;
import org.apache.axiom.om.OMOutputFormat;
+import org.apache.axiom.om.OMSourcedElement;
import org.apache.axiom.om.OMXMLBuilderFactory;
-import org.apache.axiom.om.impl.llom.OMSourcedElementImpl;
import org.apache.axiom.soap.SOAPModelBuilder;
import org.apache.axis2.jaxws.message.databinding.JAXBBlockContext;
import org.apache.axis2.jaxws.message.factory.JAXBBlockFactory;
@@ -232,8 +232,8 @@ public class MessageRPCTests extends TestCase {
// PERFORMANCE CHECK:
// The param in the body should be an OMSourcedElement
OMElement o = env.getBody().getFirstElement().getFirstElement();
- assertTrue(o instanceof OMSourcedElementImpl);
- assertTrue(((OMSourcedElementImpl)o).isExpanded() == false);
+ assertTrue(o instanceof OMSourcedElement);
+ assertTrue(((OMSourcedElement)o).isExpanded() == false);
// Serialize the Envelope using the same mechanism as the
// HTTP client.
diff --git
a/modules/jaxws/test/org/apache/axis2/jaxws/message/MessageTests.java
b/modules/jaxws/test/org/apache/axis2/jaxws/message/MessageTests.java
index d5bb022..77f4c3d 100644
--- a/modules/jaxws/test/org/apache/axis2/jaxws/message/MessageTests.java
+++ b/modules/jaxws/test/org/apache/axis2/jaxws/message/MessageTests.java
@@ -25,7 +25,6 @@ import org.apache.axiom.om.OMOutputFormat;
import org.apache.axiom.om.OMSourcedElement;
import org.apache.axiom.om.OMXMLBuilderFactory;
import org.apache.axiom.om.ds.custombuilder.CustomBuilderSupport;
-import org.apache.axiom.om.impl.llom.OMSourcedElementImpl;
import org.apache.axiom.soap.SOAPModelBuilder;
import org.apache.axis2.datasource.jaxb.JAXBCustomBuilder;
import org.apache.axis2.datasource.jaxb.JAXBDSContext;
@@ -213,8 +212,8 @@ public class MessageTests extends TestCase {
// PERFORMANCE CHECK:
// The element in the body should be an OMSourcedElement
OMElement o = env.getBody().getFirstElement();
- assertTrue(o instanceof OMSourcedElementImpl);
- assertTrue(((OMSourcedElementImpl) o).isExpanded() == false);
+ assertTrue(o instanceof OMSourcedElement);
+ assertTrue(((OMSourcedElement) o).isExpanded() == false);
// Serialize the Envelope using the same mechanism as the
// HTTP client.
@@ -856,8 +855,8 @@ public class MessageTests extends TestCase {
// PERFORMANCE CHECK:
// The element in the body should be an OMSourcedElement
OMElement o = env.getBody().getFirstElement();
- assertTrue(o instanceof OMSourcedElementImpl);
- assertTrue(((OMSourcedElementImpl)o).isExpanded() == false);
+ assertTrue(o instanceof OMSourcedElement);
+ assertTrue(((OMSourcedElement)o).isExpanded() == false);
// Serialize the Envelope using the same mechanism as the
// HTTP client.