Fixed tests.

This commit is contained in:
Arjen Poutsma
2008-07-17 10:46:27 +00:00
parent f6cb09555e
commit 092879a42b
2 changed files with 7 additions and 2 deletions

View File

@@ -68,6 +68,7 @@ import org.springframework.ws.soap.SoapMessage;
import org.springframework.ws.soap.SoapMessageFactory;
import org.springframework.ws.soap.axiom.AxiomSoapMessageFactory;
import org.springframework.ws.soap.client.SoapFaultClientException;
import org.springframework.ws.soap.saaj.SaajSoapMessageFactory;
import org.springframework.ws.transport.http.CommonsHttpMessageSender;
import org.springframework.xml.transform.StringResult;
import org.springframework.xml.transform.StringSource;
@@ -84,11 +85,9 @@ public class WebServiceTemplateIntegrationTest extends XMLTestCase {
return new ServerTestSetup(new TestSuite(WebServiceTemplateIntegrationTest.class));
}
/*
public void testSaaj() throws Exception {
doSoap(new SaajSoapMessageFactory(MessageFactory.newInstance()));
}
*/
public void testAxiom() throws Exception {
doSoap(new AxiomSoapMessageFactory());

View File

@@ -69,6 +69,8 @@ public class WebServiceTemplateTest extends XMLTestCase {
}
public void testMarshalAndSendNoMarshallerSet() throws Exception {
connectionMock.close();
connectionControl.replay();
template.setMarshaller(null);
try {
template.marshalSendAndReceive(new Object());
@@ -77,9 +79,12 @@ public class WebServiceTemplateTest extends XMLTestCase {
catch (IllegalStateException ex) {
// expected behavior
}
connectionControl.verify();
}
public void testMarshalAndSendNoUnmarshallerSet() throws Exception {
connectionMock.close();
connectionControl.replay();
template.setUnmarshaller(null);
try {
template.marshalSendAndReceive(new Object());
@@ -88,6 +93,7 @@ public class WebServiceTemplateTest extends XMLTestCase {
catch (IllegalStateException ex) {
// expected behavior
}
connectionControl.verify();
}
public void testSendAndReceiveMessageResponse() throws Exception {