SWS-937 Eliminate usage of internal Axiom implementation class
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user