SWS-937 Eliminate usage of internal Axiom implementation class

This commit is contained in:
Greg Turnquist
2016-01-28 11:43:17 -06:00
parent e6d9ae315d
commit 8b18b88fe9
2 changed files with 6 additions and 6 deletions

View File

@@ -16,7 +16,7 @@
package org.springframework.ws.soap.axiom;
import org.apache.axiom.om.impl.llom.OMSourcedElementImpl;
import org.apache.axiom.om.OMSourcedElement;
import org.springframework.ws.soap.SoapBody;
import org.springframework.ws.soap.SoapMessage;
@@ -46,8 +46,8 @@ public class AxiomSoap11NonCachingMessageTest extends AbstractSoap11MessageTestC
super.testWriteToTransportOutputStream();
SoapBody body = soapMessage.getSoapBody();
OMSourcedElementImpl axiomPayloadEle =
(OMSourcedElementImpl) ((AxiomSoapBody) body).getAxiomElement().getFirstElement();
OMSourcedElement axiomPayloadEle =
(OMSourcedElement) ((AxiomSoapBody) body).getAxiomElement().getFirstElement();
assertFalse("Non-cached body should not be expanded now", axiomPayloadEle.isExpanded());
axiomPayloadEle.getFirstElement();
assertTrue("Non-cached body should now be expanded", axiomPayloadEle.isExpanded());

View File

@@ -16,7 +16,7 @@
package org.springframework.ws.soap.axiom;
import org.apache.axiom.om.impl.llom.OMSourcedElementImpl;
import org.apache.axiom.om.OMSourcedElement;
import org.springframework.ws.soap.SoapBody;
import org.springframework.ws.soap.SoapMessage;
@@ -46,8 +46,8 @@ public class AxiomSoap12NonCachingMessageTest extends AbstractSoap12MessageTestC
super.testWriteToTransportOutputStream();
SoapBody body = soapMessage.getSoapBody();
OMSourcedElementImpl axiomPayloadEle =
(OMSourcedElementImpl) ((AxiomSoapBody) body).getAxiomElement().getFirstElement();
OMSourcedElement axiomPayloadEle =
(OMSourcedElement) ((AxiomSoapBody) body).getAxiomElement().getFirstElement();
assertFalse("Non-cached body should not be expanded now", axiomPayloadEle.isExpanded());
axiomPayloadEle.getFirstElement();
assertTrue("Non-cached body should now be expanded", axiomPayloadEle.isExpanded());