Skip to content

Commit 9a42406

Browse files
committed
Removed obsolete comments.
1 parent 775e10b commit 9a42406

File tree

2 files changed

+0
-36
lines changed

2 files changed

+0
-36
lines changed

core/src/test/java/org/springframework/ws/soap/axiom/AxiomSoap11NonCachingBodyTest.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,9 @@
1616

1717
package org.springframework.ws.soap.axiom;
1818

19-
import javax.xml.transform.dom.DOMResult;
20-
21-
import org.w3c.dom.Document;
22-
import org.w3c.dom.Element;
23-
2419
import org.springframework.ws.soap.SoapBody;
2520
import org.springframework.ws.soap.SoapVersion;
2621
import org.springframework.ws.soap.soap11.AbstractSoap11BodyTestCase;
27-
import org.springframework.xml.transform.StringSource;
2822

2923
public class AxiomSoap11NonCachingBodyTest extends AbstractSoap11BodyTestCase {
3024

@@ -37,18 +31,4 @@ protected SoapBody createSoapBody() throws Exception {
3731
return axiomSoapMessage.getSoapBody();
3832
}
3933

40-
// overload the parent class version since it assumes the body has a payload ele after calling
41-
// getPayloadResult, which is not true without payload caching. The paylaod ele doesn't exist until
42-
// the axiomSoapMessage.writeTo() method is called in the normal call flow
43-
public void testGetPayloadResultTwice() throws Exception {
44-
SoapBody soapBody = createSoapBody();
45-
String payload = "<payload xmlns='http://www.springframework.org' />";
46-
transformer.transform(new StringSource(payload), soapBody.getPayloadResult());
47-
transformer.transform(new StringSource(payload), soapBody.getPayloadResult());
48-
DOMResult domResult = new DOMResult();
49-
transformer.transform(soapBody.getPayloadSource(), domResult);
50-
Element payloadElement = ((Document) domResult.getNode()).getDocumentElement();
51-
assertTrue("No payload node was found", payloadElement != null);
52-
assertTrue("Invalid payload local name", "payload".equals(payloadElement.getLocalName()));
53-
}
5434
}

core/src/test/java/org/springframework/ws/soap/axiom/AxiomSoap12NonCachingBodyTest.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,4 @@ protected SoapBody createSoapBody() throws Exception {
3131
return axiomSoapMessage.getSoapBody();
3232
}
3333

34-
// overload the parent class version since it assumes the body has a payload ele after calling
35-
// getPayloadResult, which is not true without payload caching. The paylaod ele doesn't exist until
36-
// the axiomSoapMessage.writeTo() method is called in the normal call flow
37-
/*
38-
public void testGetPayloadResultTwice() throws Exception {
39-
SoapBody soapBody = createSoapBody();
40-
String payload = "<payload xmlns='http://www.springframework.org' />";
41-
transformer.transform(new StringSource(payload), soapBody.getPayloadResult());
42-
transformer.transform(new StringSource(payload), soapBody.getPayloadResult());
43-
DOMResult domResult = new DOMResult();
44-
transformer.transform(soapBody.getPayloadSource(), domResult);
45-
Element payloadElement = ((Document) domResult.getNode()).getDocumentElement();
46-
assertTrue("No payload node was found", payloadElement != null);
47-
assertTrue("Invalid payload local name", "payload".equals(payloadElement.getLocalName()));
48-
}
49-
*/
5034
}

0 commit comments

Comments
 (0)