Harmonize visibility of test classes and methods
Closes gh-1550
This commit is contained in:
@@ -31,7 +31,7 @@ public abstract class AbstractWebServiceMessageFactoryTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCreateEmptyMessage() {
|
||||
protected void testCreateEmptyMessage() {
|
||||
|
||||
WebServiceMessage message = this.messageFactory.createWebServiceMessage();
|
||||
|
||||
|
||||
@@ -87,7 +87,7 @@ public abstract class AbstractWebServiceMessageTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testDomPayload() throws Exception {
|
||||
void testDomPayload() throws Exception {
|
||||
|
||||
DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactoryUtils.newInstance();
|
||||
documentBuilderFactory.setNamespaceAware(true);
|
||||
@@ -105,7 +105,7 @@ public abstract class AbstractWebServiceMessageTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testEventReaderPayload() throws Exception {
|
||||
void testEventReaderPayload() throws Exception {
|
||||
|
||||
XMLInputFactory inputFactory = XMLInputFactoryUtils.newInstance();
|
||||
XMLEventReader eventReader = inputFactory.createXMLEventReader(this.payload.getInputStream());
|
||||
@@ -124,7 +124,7 @@ public abstract class AbstractWebServiceMessageTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testReaderPayload() throws Exception {
|
||||
void testReaderPayload() throws Exception {
|
||||
|
||||
Reader reader = new InputStreamReader(this.payload.getInputStream(), StandardCharsets.UTF_8);
|
||||
StreamSource streamSource = new StreamSource(reader, this.payload.getURL().toString());
|
||||
@@ -137,7 +137,7 @@ public abstract class AbstractWebServiceMessageTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSaxPayload() throws Exception {
|
||||
void testSaxPayload() throws Exception {
|
||||
|
||||
SAXSource saxSource = new SAXSource(SaxUtils.createInputSource(this.payload));
|
||||
this.transformer.transform(saxSource, this.webServiceMessage.getPayloadResult());
|
||||
@@ -150,7 +150,7 @@ public abstract class AbstractWebServiceMessageTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testStreamPayload() throws Exception {
|
||||
void testStreamPayload() throws Exception {
|
||||
|
||||
StreamSource streamSource = new StreamSource(this.payload.getInputStream(), this.payload.getURL().toString());
|
||||
this.transformer.transform(streamSource, this.webServiceMessage.getPayloadResult());
|
||||
@@ -168,7 +168,7 @@ public abstract class AbstractWebServiceMessageTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testStreamReaderPayload() throws Exception {
|
||||
void testStreamReaderPayload() throws Exception {
|
||||
|
||||
XMLInputFactory inputFactory = XMLInputFactoryUtils.newInstance();
|
||||
XMLStreamReader streamReader = inputFactory.createXMLStreamReader(this.payload.getInputStream());
|
||||
|
||||
@@ -84,7 +84,7 @@ public abstract class AbstractSoap11WebServiceTemplateIntegrationTests {
|
||||
private Logger logger = LogManager.getLogger();
|
||||
|
||||
@BeforeAll
|
||||
public static void startJetty() throws Exception {
|
||||
static void startJetty() throws Exception {
|
||||
|
||||
int port = FreePortScanner.getFreePort();
|
||||
baseUrl = "http://localhost:" + port;
|
||||
@@ -116,7 +116,7 @@ public abstract class AbstractSoap11WebServiceTemplateIntegrationTests {
|
||||
}
|
||||
|
||||
@AfterAll
|
||||
public static void stopJetty() throws Exception {
|
||||
static void stopJetty() throws Exception {
|
||||
|
||||
if (jettyServer.isRunning()) {
|
||||
jettyServer.stop();
|
||||
@@ -124,16 +124,16 @@ public abstract class AbstractSoap11WebServiceTemplateIntegrationTests {
|
||||
}
|
||||
|
||||
@BeforeEach
|
||||
public void createWebServiceTemplate() throws Exception {
|
||||
void createWebServiceTemplate() throws Exception {
|
||||
|
||||
this.template = new WebServiceTemplate(createMessageFactory());
|
||||
this.template.setMessageSender(new HttpComponentsMessageSender());
|
||||
}
|
||||
|
||||
public abstract SoapMessageFactory createMessageFactory() throws Exception;
|
||||
protected abstract SoapMessageFactory createMessageFactory() throws Exception;
|
||||
|
||||
@Test
|
||||
public void sendSourceAndReceiveToResult() {
|
||||
void sendSourceAndReceiveToResult() {
|
||||
|
||||
this.logger.info(">>> Test case");
|
||||
|
||||
@@ -146,7 +146,7 @@ public abstract class AbstractSoap11WebServiceTemplateIntegrationTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void sendSourceAndReceiveToResultNoResponse() {
|
||||
void sendSourceAndReceiveToResultNoResponse() {
|
||||
|
||||
boolean b = this.template.sendSourceAndReceiveToResult(baseUrl + "/soap/noResponse",
|
||||
new StringSource(this.messagePayload), new StringResult());
|
||||
@@ -155,7 +155,7 @@ public abstract class AbstractSoap11WebServiceTemplateIntegrationTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void marshalSendAndReceiveResponse() throws TransformerConfigurationException {
|
||||
void marshalSendAndReceiveResponse() throws TransformerConfigurationException {
|
||||
|
||||
final Transformer transformer = TransformerFactoryUtils.newInstance().newTransformer();
|
||||
final Object requestObject = new Object();
|
||||
@@ -209,7 +209,7 @@ public abstract class AbstractSoap11WebServiceTemplateIntegrationTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void marshalSendAndReceiveNoResponse() throws TransformerConfigurationException {
|
||||
void marshalSendAndReceiveNoResponse() throws TransformerConfigurationException {
|
||||
|
||||
final Transformer transformer = TransformerFactoryUtils.newInstance().newTransformer();
|
||||
final Object requestObject = new Object();
|
||||
@@ -245,7 +245,7 @@ public abstract class AbstractSoap11WebServiceTemplateIntegrationTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void notFound() {
|
||||
void notFound() {
|
||||
|
||||
assertThatExceptionOfType(WebServiceTransportException.class)
|
||||
.isThrownBy(() -> this.template.sendSourceAndReceiveToResult(baseUrl + "/errors/notfound",
|
||||
@@ -253,7 +253,7 @@ public abstract class AbstractSoap11WebServiceTemplateIntegrationTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void fault() {
|
||||
void fault() {
|
||||
|
||||
Result result = new StringResult();
|
||||
|
||||
@@ -262,7 +262,7 @@ public abstract class AbstractSoap11WebServiceTemplateIntegrationTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void faultNonCompliant() {
|
||||
void faultNonCompliant() {
|
||||
|
||||
Result result = new StringResult();
|
||||
this.template.setCheckConnectionForFault(false);
|
||||
@@ -274,7 +274,7 @@ public abstract class AbstractSoap11WebServiceTemplateIntegrationTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void attachment() {
|
||||
void attachment() {
|
||||
|
||||
this.template.sendSourceAndReceiveToResult(baseUrl + "/soap/attachment", new StringSource(this.messagePayload),
|
||||
message -> {
|
||||
@@ -311,7 +311,7 @@ public abstract class AbstractSoap11WebServiceTemplateIntegrationTests {
|
||||
|
||||
private int sc = -1;
|
||||
|
||||
public void setSc(int sc) {
|
||||
void setSc(int sc) {
|
||||
this.sc = sc;
|
||||
}
|
||||
|
||||
|
||||
@@ -123,7 +123,7 @@ public abstract class AbstractSoap12WebServiceTemplateIntegrationTests {
|
||||
* basically reset the command map
|
||||
*/
|
||||
@BeforeEach
|
||||
public void removeXmlDataContentHandler() throws SOAPException {
|
||||
void removeXmlDataContentHandler() throws SOAPException {
|
||||
|
||||
MessageFactory messageFactory = MessageFactory.newInstance();
|
||||
SOAPMessage message = messageFactory.createMessage();
|
||||
@@ -132,16 +132,16 @@ public abstract class AbstractSoap12WebServiceTemplateIntegrationTests {
|
||||
}
|
||||
|
||||
@BeforeEach
|
||||
public void createWebServiceTemplate() throws Exception {
|
||||
void createWebServiceTemplate() throws Exception {
|
||||
|
||||
this.template = new WebServiceTemplate(createMessageFactory());
|
||||
this.template.setMessageSender(new HttpComponentsMessageSender());
|
||||
}
|
||||
|
||||
public abstract SoapMessageFactory createMessageFactory() throws Exception;
|
||||
protected abstract SoapMessageFactory createMessageFactory() throws Exception;
|
||||
|
||||
@Test
|
||||
public void sendSourceAndReceiveToResult() {
|
||||
void sendSourceAndReceiveToResult() {
|
||||
|
||||
StringResult result = new StringResult();
|
||||
boolean b = this.template.sendSourceAndReceiveToResult(baseUrl + "/soap/echo",
|
||||
@@ -152,7 +152,7 @@ public abstract class AbstractSoap12WebServiceTemplateIntegrationTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void sendSourceAndReceiveToResultNoResponse() {
|
||||
void sendSourceAndReceiveToResultNoResponse() {
|
||||
|
||||
boolean b = this.template.sendSourceAndReceiveToResult(baseUrl + "/soap/noResponse",
|
||||
new StringSource(this.messagePayload), new StringResult());
|
||||
@@ -160,7 +160,7 @@ public abstract class AbstractSoap12WebServiceTemplateIntegrationTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void marshalSendAndReceiveResponse() throws TransformerConfigurationException {
|
||||
void marshalSendAndReceiveResponse() throws TransformerConfigurationException {
|
||||
|
||||
final Transformer transformer = TransformerFactoryUtils.newInstance().newTransformer();
|
||||
final Object requestObject = new Object();
|
||||
@@ -214,7 +214,7 @@ public abstract class AbstractSoap12WebServiceTemplateIntegrationTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void marshalSendAndReceiveNoResponse() throws TransformerConfigurationException {
|
||||
void marshalSendAndReceiveNoResponse() throws TransformerConfigurationException {
|
||||
|
||||
final Transformer transformer = TransformerFactoryUtils.newInstance().newTransformer();
|
||||
final Object requestObject = new Object();
|
||||
@@ -250,7 +250,7 @@ public abstract class AbstractSoap12WebServiceTemplateIntegrationTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void notFound() {
|
||||
void notFound() {
|
||||
|
||||
assertThatExceptionOfType(WebServiceTransportException.class)
|
||||
.isThrownBy(() -> this.template.sendSourceAndReceiveToResult(baseUrl + "/errors/notfound",
|
||||
@@ -258,7 +258,7 @@ public abstract class AbstractSoap12WebServiceTemplateIntegrationTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void receiverFault() {
|
||||
void receiverFault() {
|
||||
|
||||
Result result = new StringResult();
|
||||
|
||||
@@ -268,7 +268,7 @@ public abstract class AbstractSoap12WebServiceTemplateIntegrationTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void senderFault() {
|
||||
void senderFault() {
|
||||
|
||||
Result result = new StringResult();
|
||||
|
||||
@@ -278,7 +278,7 @@ public abstract class AbstractSoap12WebServiceTemplateIntegrationTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void attachment() {
|
||||
void attachment() {
|
||||
|
||||
this.template.sendSourceAndReceiveToResult(baseUrl + "/soap/attachment", new StringSource(this.messagePayload),
|
||||
message -> {
|
||||
|
||||
@@ -52,14 +52,14 @@ import org.springframework.xml.transform.TransformerFactoryUtils;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
||||
|
||||
public class DomPoxWebServiceTemplateIntegrationTests {
|
||||
class DomPoxWebServiceTemplateIntegrationTests {
|
||||
|
||||
private static Server jettyServer;
|
||||
|
||||
private static String baseUrl;
|
||||
|
||||
@BeforeAll
|
||||
public static void startJetty() throws Exception {
|
||||
static void startJetty() throws Exception {
|
||||
|
||||
int port = FreePortScanner.getFreePort();
|
||||
baseUrl = "http://localhost:" + port;
|
||||
@@ -84,7 +84,7 @@ public class DomPoxWebServiceTemplateIntegrationTests {
|
||||
}
|
||||
|
||||
@AfterAll
|
||||
public static void stopJetty() throws Exception {
|
||||
static void stopJetty() throws Exception {
|
||||
|
||||
if (jettyServer.isRunning()) {
|
||||
jettyServer.stop();
|
||||
@@ -92,7 +92,7 @@ public class DomPoxWebServiceTemplateIntegrationTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void domPox() {
|
||||
void domPox() {
|
||||
|
||||
WebServiceTemplate template = new WebServiceTemplate(new DomPoxMessageFactory());
|
||||
template.setMessageSender(new HttpComponentsMessageSender());
|
||||
|
||||
@@ -25,10 +25,10 @@ import org.springframework.ws.soap.saaj.SaajSoapMessageFactory;
|
||||
/**
|
||||
* @author Arjen Poutsma
|
||||
*/
|
||||
public class SaajSoap11WebServiceTemplateIntegrationTests extends AbstractSoap11WebServiceTemplateIntegrationTests {
|
||||
class SaajSoap11WebServiceTemplateIntegrationTests extends AbstractSoap11WebServiceTemplateIntegrationTests {
|
||||
|
||||
@Override
|
||||
public SoapMessageFactory createMessageFactory() throws Exception {
|
||||
protected SoapMessageFactory createMessageFactory() throws Exception {
|
||||
|
||||
MessageFactory messageFactory = MessageFactory.newInstance(SOAPConstants.SOAP_1_1_PROTOCOL);
|
||||
return new SaajSoapMessageFactory(messageFactory);
|
||||
|
||||
@@ -25,10 +25,10 @@ import org.springframework.ws.soap.saaj.SaajSoapMessageFactory;
|
||||
/**
|
||||
* @author Arjen Poutsma
|
||||
*/
|
||||
public class SaajSoap12WebServiceTemplateIntegrationTests extends AbstractSoap12WebServiceTemplateIntegrationTests {
|
||||
class SaajSoap12WebServiceTemplateIntegrationTests extends AbstractSoap12WebServiceTemplateIntegrationTests {
|
||||
|
||||
@Override
|
||||
public SoapMessageFactory createMessageFactory() throws Exception {
|
||||
protected SoapMessageFactory createMessageFactory() throws Exception {
|
||||
|
||||
MessageFactory messageFactory = MessageFactory.newInstance(SOAPConstants.SOAP_1_2_PROTOCOL);
|
||||
return new SaajSoapMessageFactory(messageFactory);
|
||||
|
||||
@@ -28,17 +28,17 @@ import static org.easymock.EasyMock.expect;
|
||||
import static org.easymock.EasyMock.replay;
|
||||
import static org.easymock.EasyMock.verify;
|
||||
|
||||
public class SimpleFaultMessageResolverTests {
|
||||
class SimpleFaultMessageResolverTests {
|
||||
|
||||
private SimpleFaultMessageResolver resolver;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() {
|
||||
void setUp() {
|
||||
this.resolver = new SimpleFaultMessageResolver();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testResolveFault() {
|
||||
void testResolveFault() {
|
||||
|
||||
FaultAwareWebServiceMessage messageMock = createMock(FaultAwareWebServiceMessage.class);
|
||||
String message = "message";
|
||||
|
||||
@@ -50,7 +50,7 @@ import static org.mockito.Mockito.reset;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public class WebServiceTemplateTests {
|
||||
class WebServiceTemplateTests {
|
||||
|
||||
private WebServiceTemplate template;
|
||||
|
||||
@@ -59,7 +59,7 @@ public class WebServiceTemplateTests {
|
||||
private MockWebServiceMessageFactory messageFactory;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() throws Exception {
|
||||
void setUp() throws Exception {
|
||||
|
||||
this.messageFactory = new MockWebServiceMessageFactory();
|
||||
this.template = new WebServiceTemplate(this.messageFactory);
|
||||
@@ -85,7 +85,7 @@ public class WebServiceTemplateTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testMarshalAndSendNoMarshallerSet() throws Exception {
|
||||
void testMarshalAndSendNoMarshallerSet() throws Exception {
|
||||
|
||||
this.connectionMock.close();
|
||||
|
||||
@@ -95,7 +95,7 @@ public class WebServiceTemplateTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testMarshalAndSendNoUnmarshallerSet() throws Exception {
|
||||
void testMarshalAndSendNoUnmarshallerSet() throws Exception {
|
||||
|
||||
this.connectionMock.close();
|
||||
|
||||
@@ -104,7 +104,7 @@ public class WebServiceTemplateTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSendAndReceiveMessageResponse() throws Exception {
|
||||
void testSendAndReceiveMessageResponse() throws Exception {
|
||||
|
||||
WebServiceMessageCallback requestCallback = mock(WebServiceMessageCallback.class);
|
||||
requestCallback.doWithMessage(isA(WebServiceMessage.class));
|
||||
@@ -125,7 +125,7 @@ public class WebServiceTemplateTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSendAndReceiveMessageNoResponse() throws Exception {
|
||||
void testSendAndReceiveMessageNoResponse() throws Exception {
|
||||
|
||||
WebServiceMessageExtractor<Object> extractorMock = mockWebServiceMessageExtractor();
|
||||
|
||||
@@ -140,7 +140,7 @@ public class WebServiceTemplateTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSendAndReceiveMessageFault() throws Exception {
|
||||
void testSendAndReceiveMessageFault() throws Exception {
|
||||
|
||||
WebServiceMessageExtractor<Object> extractorMock = mockWebServiceMessageExtractor();
|
||||
|
||||
@@ -163,7 +163,7 @@ public class WebServiceTemplateTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSendAndReceiveConnectionError() throws Exception {
|
||||
void testSendAndReceiveConnectionError() throws Exception {
|
||||
|
||||
WebServiceMessageExtractor<Object> extractorMock = mockWebServiceMessageExtractor();
|
||||
|
||||
@@ -182,7 +182,7 @@ public class WebServiceTemplateTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSendAndReceiveSourceResponse() throws Exception {
|
||||
void testSendAndReceiveSourceResponse() throws Exception {
|
||||
|
||||
SourceExtractor<Object> extractorMock = mockSourceExtractor();
|
||||
Object extracted = new Object();
|
||||
@@ -200,7 +200,7 @@ public class WebServiceTemplateTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSendAndReceiveSourceNoResponse() throws Exception {
|
||||
void testSendAndReceiveSourceNoResponse() throws Exception {
|
||||
|
||||
SourceExtractor<Object> extractorMock = mockSourceExtractor();
|
||||
|
||||
@@ -215,7 +215,7 @@ public class WebServiceTemplateTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSendAndReceiveResultResponse() throws Exception {
|
||||
void testSendAndReceiveResultResponse() throws Exception {
|
||||
|
||||
this.connectionMock.send(isA(WebServiceMessage.class));
|
||||
when(this.connectionMock.hasError()).thenReturn(false);
|
||||
@@ -230,7 +230,7 @@ public class WebServiceTemplateTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSendAndReceiveResultNoResponse() throws Exception {
|
||||
void testSendAndReceiveResultNoResponse() throws Exception {
|
||||
|
||||
this.connectionMock.send(isA(WebServiceMessage.class));
|
||||
when(this.connectionMock.hasError()).thenReturn(false);
|
||||
@@ -244,7 +244,7 @@ public class WebServiceTemplateTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSendAndReceiveResultNoResponsePayload() throws Exception {
|
||||
void testSendAndReceiveResultNoResponsePayload() throws Exception {
|
||||
|
||||
this.connectionMock.send(isA(WebServiceMessage.class));
|
||||
when(this.connectionMock.hasError()).thenReturn(false);
|
||||
@@ -261,7 +261,7 @@ public class WebServiceTemplateTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSendAndReceiveMarshalResponse() throws Exception {
|
||||
void testSendAndReceiveMarshalResponse() throws Exception {
|
||||
|
||||
Marshaller marshallerMock = mock(Marshaller.class);
|
||||
this.template.setMarshaller(marshallerMock);
|
||||
@@ -284,7 +284,7 @@ public class WebServiceTemplateTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSendAndReceiveMarshalNoResponse() throws Exception {
|
||||
void testSendAndReceiveMarshalNoResponse() throws Exception {
|
||||
|
||||
Marshaller marshallerMock = mock(Marshaller.class);
|
||||
this.template.setMarshaller(marshallerMock);
|
||||
@@ -301,7 +301,7 @@ public class WebServiceTemplateTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSendAndReceiveCustomUri() throws Exception {
|
||||
void testSendAndReceiveCustomUri() throws Exception {
|
||||
|
||||
final URI customUri = new URI("http://www.springframework.org/spring-ws/custom");
|
||||
this.template.setMessageSender(new WebServiceMessageSender() {
|
||||
@@ -337,7 +337,7 @@ public class WebServiceTemplateTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInterceptors() throws Exception {
|
||||
void testInterceptors() throws Exception {
|
||||
|
||||
ClientInterceptor interceptorMock1 = mock(ClientInterceptor.class);
|
||||
ClientInterceptor interceptorMock2 = mock(ClientInterceptor.class);
|
||||
@@ -368,7 +368,7 @@ public class WebServiceTemplateTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInterceptorsInterceptedNoResponse() throws Exception {
|
||||
void testInterceptorsInterceptedNoResponse() throws Exception {
|
||||
|
||||
MessageContext messageContext = new DefaultMessageContext(this.messageFactory);
|
||||
|
||||
@@ -390,7 +390,7 @@ public class WebServiceTemplateTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInterceptorsInterceptedCreateResponse() throws Exception {
|
||||
void testInterceptorsInterceptedCreateResponse() throws Exception {
|
||||
|
||||
MessageContext messageContext = new DefaultMessageContext(this.messageFactory);
|
||||
// force creation of response
|
||||
@@ -419,7 +419,7 @@ public class WebServiceTemplateTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testDestinationResolver() throws Exception {
|
||||
void testDestinationResolver() throws Exception {
|
||||
|
||||
DestinationProvider providerMock = mock(DestinationProvider.class);
|
||||
this.template.setDestinationProvider(providerMock);
|
||||
|
||||
@@ -27,17 +27,17 @@ import org.springframework.core.io.Resource;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class Wsdl11DestinationProviderTests {
|
||||
class Wsdl11DestinationProviderTests {
|
||||
|
||||
private Wsdl11DestinationProvider provider;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() {
|
||||
void setUp() {
|
||||
this.provider = new Wsdl11DestinationProvider();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSimple() throws URISyntaxException {
|
||||
void testSimple() throws URISyntaxException {
|
||||
|
||||
Resource wsdl = new ClassPathResource("simple.wsdl", getClass());
|
||||
this.provider.setWsdl(wsdl);
|
||||
@@ -48,7 +48,7 @@ public class Wsdl11DestinationProviderTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testComplex() throws URISyntaxException {
|
||||
void testComplex() throws URISyntaxException {
|
||||
Resource wsdl = new ClassPathResource("complex.wsdl", getClass());
|
||||
this.provider.setWsdl(wsdl);
|
||||
|
||||
@@ -58,7 +58,7 @@ public class Wsdl11DestinationProviderTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCustomExpression() throws URISyntaxException {
|
||||
void testCustomExpression() throws URISyntaxException {
|
||||
this.provider.setLocationExpression("/wsdl:definitions/wsdl:service/wsdl:port/soap12:address/@location");
|
||||
Resource wsdl = new ClassPathResource("complex.wsdl", getClass());
|
||||
this.provider.setWsdl(wsdl);
|
||||
|
||||
@@ -29,10 +29,10 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
/**
|
||||
* @author Greg Turnquist
|
||||
*/
|
||||
public class ClientInterceptorAdapterTests {
|
||||
class ClientInterceptorAdapterTests {
|
||||
|
||||
@Test
|
||||
public void handleEmptyInterceptor() {
|
||||
void handleEmptyInterceptor() {
|
||||
|
||||
ClientInterceptor interceptor = new ClientInterceptorAdapter() {
|
||||
};
|
||||
@@ -45,7 +45,7 @@ public class ClientInterceptorAdapterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void handleTestAdapter() {
|
||||
void handleTestAdapter() {
|
||||
TestClientInterceptorAdapter interceptor = new TestClientInterceptorAdapter(new ArrayList<>());
|
||||
|
||||
assertThat(interceptor.handleRequest(null)).isFalse();
|
||||
|
||||
@@ -45,7 +45,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
||||
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
|
||||
|
||||
public class PayloadValidatingInterceptorTests {
|
||||
class PayloadValidatingInterceptorTests {
|
||||
|
||||
private PayloadValidatingInterceptor interceptor;
|
||||
|
||||
@@ -70,7 +70,7 @@ public class PayloadValidatingInterceptorTests {
|
||||
private static final String SCHEMA2 = "schema2.xsd";
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() throws Exception {
|
||||
void setUp() throws Exception {
|
||||
|
||||
this.interceptor = new PayloadValidatingInterceptor();
|
||||
this.interceptor.setSchema(new ClassPathResource(SCHEMA, getClass()));
|
||||
@@ -84,7 +84,7 @@ public class PayloadValidatingInterceptorTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testHandleInvalidRequest() throws Exception {
|
||||
void testHandleInvalidRequest() throws Exception {
|
||||
|
||||
SoapMessage invalidMessage = this.soap11Factory.createWebServiceMessage();
|
||||
InputStream inputStream = getClass().getResourceAsStream(INVALID_MESSAGE);
|
||||
@@ -97,7 +97,7 @@ public class PayloadValidatingInterceptorTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testHandlerInvalidRequest() throws Exception {
|
||||
void testHandlerInvalidRequest() throws Exception {
|
||||
|
||||
MockWebServiceMessage request = new MockWebServiceMessage();
|
||||
request.setPayload(new ClassPathResource(INVALID_MESSAGE, getClass()));
|
||||
@@ -109,7 +109,7 @@ public class PayloadValidatingInterceptorTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testHandleValidRequest() throws Exception {
|
||||
void testHandleValidRequest() throws Exception {
|
||||
|
||||
MockWebServiceMessage request = new MockWebServiceMessage();
|
||||
request.setPayload(new ClassPathResource(VALID_MESSAGE, getClass()));
|
||||
@@ -121,7 +121,7 @@ public class PayloadValidatingInterceptorTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testHandleInvalidResponse() throws Exception {
|
||||
void testHandleInvalidResponse() throws Exception {
|
||||
|
||||
MockWebServiceMessage request = new MockWebServiceMessage();
|
||||
this.context = new DefaultMessageContext(request, new MockWebServiceMessageFactory());
|
||||
@@ -134,7 +134,7 @@ public class PayloadValidatingInterceptorTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testHandleValidResponse() throws Exception {
|
||||
void testHandleValidResponse() throws Exception {
|
||||
|
||||
MockWebServiceMessage request = new MockWebServiceMessage();
|
||||
this.context = new DefaultMessageContext(request, new MockWebServiceMessageFactory());
|
||||
@@ -146,7 +146,7 @@ public class PayloadValidatingInterceptorTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNamespacesInType() throws Exception {
|
||||
void testNamespacesInType() throws Exception {
|
||||
|
||||
// Make sure we use Xerces for this testcase: the JAXP implementation used
|
||||
// internally by JDK 1.5 has a bug
|
||||
@@ -179,7 +179,7 @@ public class PayloadValidatingInterceptorTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNonExistingSchema() {
|
||||
void testNonExistingSchema() {
|
||||
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> {
|
||||
|
||||
@@ -189,7 +189,7 @@ public class PayloadValidatingInterceptorTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testHandlerInvalidRequestMultipleSchemas() throws Exception {
|
||||
void testHandlerInvalidRequestMultipleSchemas() throws Exception {
|
||||
|
||||
this.interceptor.setSchemas(new ClassPathResource(PRODUCT_SCHEMA, getClass()),
|
||||
new ClassPathResource(SIZE_SCHEMA, getClass()));
|
||||
@@ -203,7 +203,7 @@ public class PayloadValidatingInterceptorTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testHandleValidRequestMultipleSchemas() throws Exception {
|
||||
void testHandleValidRequestMultipleSchemas() throws Exception {
|
||||
|
||||
this.interceptor.setSchemas(new ClassPathResource(PRODUCT_SCHEMA, getClass()),
|
||||
new ClassPathResource(SIZE_SCHEMA, getClass()));
|
||||
@@ -218,7 +218,7 @@ public class PayloadValidatingInterceptorTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testHandleInvalidResponseMultipleSchemas() throws Exception {
|
||||
void testHandleInvalidResponseMultipleSchemas() throws Exception {
|
||||
|
||||
this.interceptor.setSchemas(new ClassPathResource(PRODUCT_SCHEMA, getClass()),
|
||||
new ClassPathResource(SIZE_SCHEMA, getClass()));
|
||||
@@ -233,7 +233,7 @@ public class PayloadValidatingInterceptorTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testHandleValidResponseMultipleSchemas() throws Exception {
|
||||
void testHandleValidResponseMultipleSchemas() throws Exception {
|
||||
|
||||
this.interceptor.setSchemas(new ClassPathResource(PRODUCT_SCHEMA, getClass()),
|
||||
new ClassPathResource(SIZE_SCHEMA, getClass()));
|
||||
@@ -248,7 +248,7 @@ public class PayloadValidatingInterceptorTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testXsdSchema() throws Exception {
|
||||
void testXsdSchema() throws Exception {
|
||||
|
||||
PayloadValidatingInterceptor interceptor = new PayloadValidatingInterceptor();
|
||||
SimpleXsdSchema schema = new SimpleXsdSchema(new ClassPathResource(SCHEMA, getClass()));
|
||||
|
||||
@@ -53,18 +53,18 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
/**
|
||||
* @author Arjen Poutsma
|
||||
*/
|
||||
public class AnnotationDrivenBeanDefinitionParserTests {
|
||||
class AnnotationDrivenBeanDefinitionParserTests {
|
||||
|
||||
private ApplicationContext applicationContext;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() {
|
||||
void setUp() {
|
||||
this.applicationContext = new ClassPathXmlApplicationContext("annotationDrivenBeanDefinitionParserTest.xml",
|
||||
getClass());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void endpointMappings() {
|
||||
void endpointMappings() {
|
||||
|
||||
Map<String, EndpointMapping> result = this.applicationContext.getBeansOfType(EndpointMapping.class);
|
||||
|
||||
@@ -75,7 +75,7 @@ public class AnnotationDrivenBeanDefinitionParserTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void endpointAdapters() {
|
||||
void endpointAdapters() {
|
||||
|
||||
Map<String, EndpointAdapter> result = this.applicationContext.getBeansOfType(EndpointAdapter.class);
|
||||
|
||||
@@ -104,7 +104,7 @@ public class AnnotationDrivenBeanDefinitionParserTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void endpointExceptionResolver() {
|
||||
void endpointExceptionResolver() {
|
||||
|
||||
Map<String, EndpointExceptionResolver> result = this.applicationContext
|
||||
.getBeansOfType(EndpointExceptionResolver.class);
|
||||
|
||||
@@ -30,10 +30,10 @@ import org.springframework.ws.soap.server.endpoint.interceptor.SoapActionSmartEn
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class InterceptorsBeanDefinitionParserTests {
|
||||
class InterceptorsBeanDefinitionParserTests {
|
||||
|
||||
@Test
|
||||
public void namespace() {
|
||||
void namespace() {
|
||||
|
||||
ApplicationContext applicationContext = new ClassPathXmlApplicationContext(
|
||||
"interceptorsBeanDefinitionParserTest.xml", getClass());
|
||||
@@ -51,7 +51,7 @@ public class InterceptorsBeanDefinitionParserTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void ordering() {
|
||||
void ordering() {
|
||||
|
||||
ApplicationContext applicationContext = new ClassPathXmlApplicationContext(
|
||||
"interceptorsBeanDefinitionParserOrderTest.xml", getClass());
|
||||
@@ -71,7 +71,7 @@ public class InterceptorsBeanDefinitionParserTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void injection() {
|
||||
void injection() {
|
||||
|
||||
ApplicationContext applicationContext = new ClassPathXmlApplicationContext(
|
||||
"interceptorsBeanDefinitionParserInjectionTest.xml", getClass());
|
||||
|
||||
@@ -28,17 +28,17 @@ import org.springframework.ws.server.endpoint.adapter.MarshallingMethodEndpointA
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
@Deprecated
|
||||
public class WebServiceNamespaceHandlerTests {
|
||||
class WebServiceNamespaceHandlerTests {
|
||||
|
||||
private ApplicationContext applicationContext;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() throws Exception {
|
||||
void setUp() throws Exception {
|
||||
this.applicationContext = new ClassPathXmlApplicationContext("webServiceNamespaceHandlerTest.xml", getClass());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testMarshallingMethods() throws Exception {
|
||||
void testMarshallingMethods() throws Exception {
|
||||
|
||||
Map<String, MarshallingMethodEndpointAdapter> result = this.applicationContext
|
||||
.getBeansOfType(MarshallingMethodEndpointAdapter.class);
|
||||
|
||||
@@ -29,18 +29,18 @@ import org.springframework.ws.server.endpoint.adapter.XPathParamAnnotationMethod
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
@Deprecated
|
||||
public class WebServicesNamespaceHandlerTigerTests {
|
||||
class WebServicesNamespaceHandlerTigerTests {
|
||||
|
||||
private ApplicationContext applicationContext;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() {
|
||||
void setUp() {
|
||||
this.applicationContext = new ClassPathXmlApplicationContext("webServicesNamespaceHandlerTest-tiger.xml",
|
||||
getClass());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testMarshallingEndpoints() {
|
||||
void testMarshallingEndpoints() {
|
||||
|
||||
Map<String, GenericMarshallingMethodEndpointAdapter> result = this.applicationContext
|
||||
.getBeansOfType(GenericMarshallingMethodEndpointAdapter.class);
|
||||
@@ -49,7 +49,7 @@ public class WebServicesNamespaceHandlerTigerTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testXpathEndpoints() {
|
||||
void testXpathEndpoints() {
|
||||
|
||||
Map<String, XPathParamAnnotationMethodEndpointAdapter> result = this.applicationContext
|
||||
.getBeansOfType(XPathParamAnnotationMethodEndpointAdapter.class);
|
||||
|
||||
@@ -32,17 +32,17 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
/**
|
||||
* @author Arjen Poutsma
|
||||
*/
|
||||
public class WsdlBeanDefinitionParserTests {
|
||||
class WsdlBeanDefinitionParserTests {
|
||||
|
||||
private ApplicationContext applicationContext;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() {
|
||||
void setUp() {
|
||||
this.applicationContext = new ClassPathXmlApplicationContext("wsdlBeanDefinitionParserTest.xml", getClass());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void staticWsdl() {
|
||||
void staticWsdl() {
|
||||
|
||||
Map<String, SimpleWsdl11Definition> result = this.applicationContext
|
||||
.getBeansOfType(SimpleWsdl11Definition.class);
|
||||
@@ -55,7 +55,7 @@ public class WsdlBeanDefinitionParserTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void dynamicWsdl() {
|
||||
void dynamicWsdl() {
|
||||
|
||||
Map<String, ?> result = this.applicationContext.getBeansOfType(DefaultWsdl11Definition.class);
|
||||
|
||||
|
||||
@@ -35,12 +35,12 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
/**
|
||||
* @author Arjen Poutsma
|
||||
*/
|
||||
public class DefaultWsConfigurationTests {
|
||||
class DefaultWsConfigurationTests {
|
||||
|
||||
private ApplicationContext applicationContext;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() {
|
||||
void setUp() {
|
||||
|
||||
AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext();
|
||||
applicationContext.register(TestConfig.class);
|
||||
@@ -50,7 +50,7 @@ public class DefaultWsConfigurationTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void payloadRootAnnotationMethodEndpointMapping() {
|
||||
void payloadRootAnnotationMethodEndpointMapping() {
|
||||
|
||||
PayloadRootAnnotationMethodEndpointMapping endpointMapping = this.applicationContext
|
||||
.getBean(PayloadRootAnnotationMethodEndpointMapping.class);
|
||||
@@ -59,7 +59,7 @@ public class DefaultWsConfigurationTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void soapActionAnnotationMethodEndpointMapping() {
|
||||
void soapActionAnnotationMethodEndpointMapping() {
|
||||
|
||||
SoapActionAnnotationMethodEndpointMapping endpointMapping = this.applicationContext
|
||||
.getBean(SoapActionAnnotationMethodEndpointMapping.class);
|
||||
@@ -68,7 +68,7 @@ public class DefaultWsConfigurationTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void annotationActionEndpointMapping() {
|
||||
void annotationActionEndpointMapping() {
|
||||
|
||||
AnnotationActionEndpointMapping endpointMapping = this.applicationContext
|
||||
.getBean(AnnotationActionEndpointMapping.class);
|
||||
@@ -77,7 +77,7 @@ public class DefaultWsConfigurationTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void defaultMethodEndpointAdapter() {
|
||||
void defaultMethodEndpointAdapter() {
|
||||
|
||||
DefaultMethodEndpointAdapter adapter = this.applicationContext.getBean(DefaultMethodEndpointAdapter.class);
|
||||
|
||||
|
||||
@@ -35,12 +35,12 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
/**
|
||||
* @author Arjen Poutsma
|
||||
*/
|
||||
public class WsConfigurationSupportTests {
|
||||
class WsConfigurationSupportTests {
|
||||
|
||||
private ApplicationContext applicationContext;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() {
|
||||
void setUp() {
|
||||
|
||||
AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext();
|
||||
applicationContext.register(TestConfig.class);
|
||||
@@ -50,7 +50,7 @@ public class WsConfigurationSupportTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void interceptors() {
|
||||
void interceptors() {
|
||||
|
||||
PayloadRootAnnotationMethodEndpointMapping endpointMapping = this.applicationContext
|
||||
.getBean(PayloadRootAnnotationMethodEndpointMapping.class);
|
||||
@@ -64,7 +64,7 @@ public class WsConfigurationSupportTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void defaultMethodEndpointAdapter() {
|
||||
void defaultMethodEndpointAdapter() {
|
||||
|
||||
DefaultMethodEndpointAdapter endpointAdapter = this.applicationContext
|
||||
.getBean(DefaultMethodEndpointAdapter.class);
|
||||
|
||||
@@ -38,12 +38,12 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
/**
|
||||
* @author Arjen Poutsma
|
||||
*/
|
||||
public class WsConfigurerAdapterTests {
|
||||
class WsConfigurerAdapterTests {
|
||||
|
||||
private ApplicationContext applicationContext;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() {
|
||||
void setUp() {
|
||||
|
||||
AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext();
|
||||
applicationContext.register(TestConfig.class);
|
||||
@@ -53,7 +53,7 @@ public class WsConfigurerAdapterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void interceptors() {
|
||||
void interceptors() {
|
||||
|
||||
PayloadRootAnnotationMethodEndpointMapping endpointMapping = this.applicationContext
|
||||
.getBean(PayloadRootAnnotationMethodEndpointMapping.class);
|
||||
@@ -67,7 +67,7 @@ public class WsConfigurerAdapterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void argumentResolvers() {
|
||||
void argumentResolvers() {
|
||||
|
||||
DefaultMethodEndpointAdapter endpointAdapter = this.applicationContext
|
||||
.getBean(DefaultMethodEndpointAdapter.class);
|
||||
@@ -83,7 +83,7 @@ public class WsConfigurerAdapterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void returnValueHandlers() {
|
||||
void returnValueHandlers() {
|
||||
|
||||
DefaultMethodEndpointAdapter endpointAdapter = this.applicationContext
|
||||
.getBean(DefaultMethodEndpointAdapter.class);
|
||||
|
||||
@@ -29,7 +29,7 @@ import static org.easymock.EasyMock.expect;
|
||||
import static org.easymock.EasyMock.replay;
|
||||
import static org.easymock.EasyMock.verify;
|
||||
|
||||
public class DefaultMessageContextTests {
|
||||
class DefaultMessageContextTests {
|
||||
|
||||
private DefaultMessageContext context;
|
||||
|
||||
@@ -38,7 +38,7 @@ public class DefaultMessageContextTests {
|
||||
private WebServiceMessage request;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() {
|
||||
void setUp() {
|
||||
|
||||
this.factoryMock = createMock(WebServiceMessageFactory.class);
|
||||
this.request = new MockWebServiceMessage();
|
||||
@@ -46,12 +46,12 @@ public class DefaultMessageContextTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testRequest() {
|
||||
void testRequest() {
|
||||
assertThat(this.context.getRequest()).isEqualTo(this.request);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testResponse() {
|
||||
void testResponse() {
|
||||
|
||||
WebServiceMessage response = new MockWebServiceMessage();
|
||||
expect(this.factoryMock.createWebServiceMessage()).andReturn(response);
|
||||
@@ -65,7 +65,7 @@ public class DefaultMessageContextTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testProperties() {
|
||||
void testProperties() {
|
||||
|
||||
assertThat(this.context.getPropertyNames()).hasSize(0);
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ public abstract class AbstractMimeMessageTests extends AbstractWebServiceMessage
|
||||
protected abstract MimeMessage createMimeMessage() throws Exception;
|
||||
|
||||
@Test
|
||||
public void testEmptyMessage() {
|
||||
void testEmptyMessage() {
|
||||
|
||||
Iterator<Attachment> iterator = this.mimeMessage.getAttachments();
|
||||
|
||||
@@ -60,14 +60,14 @@ public abstract class AbstractMimeMessageTests extends AbstractWebServiceMessage
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAddAttachment() throws Exception {
|
||||
void testAddAttachment() throws Exception {
|
||||
|
||||
Attachment attachment = this.mimeMessage.addAttachment(this.contentId, this.picture, this.contentType);
|
||||
testAttachment(attachment);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetAttachment() throws Exception {
|
||||
void testGetAttachment() throws Exception {
|
||||
|
||||
this.mimeMessage.addAttachment(this.contentId, this.picture, this.contentType);
|
||||
Attachment attachment = this.mimeMessage.getAttachment(this.contentId);
|
||||
@@ -78,7 +78,7 @@ public abstract class AbstractMimeMessageTests extends AbstractWebServiceMessage
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetAttachments() throws Exception {
|
||||
void testGetAttachments() throws Exception {
|
||||
|
||||
this.mimeMessage.addAttachment(this.contentId, this.picture, this.contentType);
|
||||
Iterator<Attachment> iterator = this.mimeMessage.getAttachments();
|
||||
|
||||
@@ -19,7 +19,7 @@ package org.springframework.ws.pox.dom;
|
||||
import org.springframework.ws.AbstractWebServiceMessageFactoryTests;
|
||||
import org.springframework.ws.WebServiceMessageFactory;
|
||||
|
||||
public class DomPoxMessageFactoryTests extends AbstractWebServiceMessageFactoryTests {
|
||||
class DomPoxMessageFactoryTests extends AbstractWebServiceMessageFactoryTests {
|
||||
|
||||
@Override
|
||||
protected WebServiceMessageFactory createMessageFactory() {
|
||||
|
||||
@@ -35,14 +35,14 @@ import org.springframework.xml.transform.TransformerFactoryUtils;
|
||||
|
||||
import static org.xmlunit.assertj.XmlAssert.assertThat;
|
||||
|
||||
public class DomPoxMessageTests {
|
||||
class DomPoxMessageTests {
|
||||
|
||||
private DomPoxMessage message;
|
||||
|
||||
private Transformer transformer;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() throws Exception {
|
||||
void setUp() throws Exception {
|
||||
|
||||
DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactoryUtils.newInstance();
|
||||
DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();
|
||||
@@ -53,7 +53,7 @@ public class DomPoxMessageTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetPayload() throws Exception {
|
||||
void testGetPayload() throws Exception {
|
||||
|
||||
String content = "<root xmlns='http://www.springframework.org/spring-ws'>" + "<child/></root>";
|
||||
StringSource source = new StringSource(content);
|
||||
@@ -65,7 +65,7 @@ public class DomPoxMessageTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetPayloadResultTwice() throws Exception {
|
||||
void testGetPayloadResultTwice() throws Exception {
|
||||
|
||||
String content = "<element xmlns=\"http://www.springframework.org/spring-ws\" />";
|
||||
this.transformer.transform(new StringSource(content), this.message.getPayloadResult());
|
||||
@@ -77,7 +77,7 @@ public class DomPoxMessageTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testWriteTo() throws Exception {
|
||||
void testWriteTo() throws Exception {
|
||||
|
||||
String content = "<root xmlns='http://www.springframework.org/spring-ws'>" + "<child/></root>";
|
||||
StringSource source = new StringSource(content);
|
||||
|
||||
@@ -41,7 +41,7 @@ import static org.easymock.EasyMock.expectLastCall;
|
||||
import static org.easymock.EasyMock.replay;
|
||||
import static org.easymock.EasyMock.verify;
|
||||
|
||||
public class MessageDispatcherTests {
|
||||
class MessageDispatcherTests {
|
||||
|
||||
private MessageDispatcher dispatcher;
|
||||
|
||||
@@ -50,7 +50,7 @@ public class MessageDispatcherTests {
|
||||
private WebServiceMessageFactory factoryMock;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() {
|
||||
void setUp() {
|
||||
|
||||
this.dispatcher = new MessageDispatcher();
|
||||
this.factoryMock = createMock(WebServiceMessageFactory.class);
|
||||
@@ -58,7 +58,7 @@ public class MessageDispatcherTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetEndpoint() throws Exception {
|
||||
void testGetEndpoint() throws Exception {
|
||||
|
||||
EndpointMapping mappingMock = createMock(EndpointMapping.class);
|
||||
this.dispatcher.setEndpointMappings(Collections.singletonList(mappingMock));
|
||||
@@ -77,7 +77,7 @@ public class MessageDispatcherTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetEndpointAdapterSupportedEndpoint() {
|
||||
void testGetEndpointAdapterSupportedEndpoint() {
|
||||
|
||||
EndpointAdapter adapterMock = createMock(EndpointAdapter.class);
|
||||
this.dispatcher.setEndpointAdapters(Collections.singletonList(adapterMock));
|
||||
@@ -95,7 +95,7 @@ public class MessageDispatcherTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetEndpointAdapterUnsupportedEndpoint() {
|
||||
void testGetEndpointAdapterUnsupportedEndpoint() {
|
||||
|
||||
EndpointAdapter adapterMock = createMock(EndpointAdapter.class);
|
||||
this.dispatcher.setEndpointAdapters(Collections.singletonList(adapterMock));
|
||||
@@ -111,7 +111,7 @@ public class MessageDispatcherTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testResolveException() throws Exception {
|
||||
void testResolveException() throws Exception {
|
||||
|
||||
final Exception ex = new Exception();
|
||||
|
||||
@@ -144,7 +144,7 @@ public class MessageDispatcherTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testProcessUnsupportedEndpointException() {
|
||||
void testProcessUnsupportedEndpointException() {
|
||||
|
||||
EndpointExceptionResolver resolverMock = createMock(EndpointExceptionResolver.class);
|
||||
this.dispatcher.setEndpointExceptionResolvers(Collections.singletonList(resolverMock));
|
||||
@@ -167,7 +167,7 @@ public class MessageDispatcherTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNormalFlow() throws Exception {
|
||||
void testNormalFlow() throws Exception {
|
||||
|
||||
EndpointAdapter adapterMock = createMock(EndpointAdapter.class);
|
||||
this.dispatcher.setEndpointAdapters(Collections.singletonList(adapterMock));
|
||||
@@ -208,7 +208,7 @@ public class MessageDispatcherTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFlowNoResponse() throws Exception {
|
||||
void testFlowNoResponse() throws Exception {
|
||||
|
||||
EndpointAdapter adapterMock = createMock(EndpointAdapter.class);
|
||||
this.dispatcher.setEndpointAdapters(Collections.singletonList(adapterMock));
|
||||
@@ -241,7 +241,7 @@ public class MessageDispatcherTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInterceptedRequestFlow() throws Exception {
|
||||
void testInterceptedRequestFlow() throws Exception {
|
||||
|
||||
EndpointAdapter adapterMock = createMock(EndpointAdapter.class);
|
||||
this.dispatcher.setEndpointAdapters(Collections.singletonList(adapterMock));
|
||||
@@ -275,7 +275,7 @@ public class MessageDispatcherTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInterceptedResponseFlow() throws Exception {
|
||||
void testInterceptedResponseFlow() throws Exception {
|
||||
|
||||
EndpointAdapter adapterMock = createMock(EndpointAdapter.class);
|
||||
this.dispatcher.setEndpointAdapters(Collections.singletonList(adapterMock));
|
||||
@@ -310,7 +310,7 @@ public class MessageDispatcherTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testResolveExceptionsWithInterceptors() throws Exception {
|
||||
void testResolveExceptionsWithInterceptors() throws Exception {
|
||||
|
||||
EndpointAdapter adapterMock = createMock(EndpointAdapter.class);
|
||||
this.dispatcher.setEndpointAdapters(Collections.singletonList(adapterMock));
|
||||
@@ -359,7 +359,7 @@ public class MessageDispatcherTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFaultFlow() throws Exception {
|
||||
void testFaultFlow() throws Exception {
|
||||
|
||||
EndpointAdapter adapterMock = createMock(EndpointAdapter.class);
|
||||
this.dispatcher.setEndpointAdapters(Collections.singletonList(adapterMock));
|
||||
@@ -395,7 +395,7 @@ public class MessageDispatcherTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNoEndpointFound() {
|
||||
void testNoEndpointFound() {
|
||||
|
||||
this.dispatcher.setEndpointMappings(Collections.emptyList());
|
||||
|
||||
@@ -404,7 +404,7 @@ public class MessageDispatcherTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testDetectStrategies() {
|
||||
void testDetectStrategies() {
|
||||
|
||||
StaticApplicationContext applicationContext = new StaticApplicationContext();
|
||||
|
||||
@@ -426,7 +426,7 @@ public class MessageDispatcherTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testDefaultStrategies() {
|
||||
void testDefaultStrategies() {
|
||||
|
||||
StaticApplicationContext applicationContext = new StaticApplicationContext();
|
||||
this.dispatcher.setApplicationContext(applicationContext);
|
||||
|
||||
@@ -56,7 +56,7 @@ public abstract class AbstractEndpointTests {
|
||||
protected static final String RESPONSE = "<" + RESPONSE_ELEMENT + " xmlns=\"" + NAMESPACE_URI + "\"/>";
|
||||
|
||||
@Test
|
||||
public void testDomSource() throws Exception {
|
||||
void testDomSource() throws Exception {
|
||||
|
||||
DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactoryUtils.newInstance();
|
||||
documentBuilderFactory.setNamespaceAware(true);
|
||||
@@ -66,14 +66,14 @@ public abstract class AbstractEndpointTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSaxSource() throws Exception {
|
||||
void testSaxSource() throws Exception {
|
||||
XMLReader reader = SaxUtils.namespaceAwareXmlReader();
|
||||
InputSource inputSource = new InputSource(new StringReader(REQUEST));
|
||||
testSource(new SAXSource(reader, inputSource));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testStaxSourceEventReader() throws Exception {
|
||||
void testStaxSourceEventReader() throws Exception {
|
||||
|
||||
XMLInputFactory inputFactory = XMLInputFactoryUtils.newInstance();
|
||||
XMLEventReader eventReader = inputFactory.createXMLEventReader(new StringReader(REQUEST));
|
||||
@@ -81,7 +81,7 @@ public abstract class AbstractEndpointTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testStaxSourceStreamReader() throws Exception {
|
||||
void testStaxSourceStreamReader() throws Exception {
|
||||
|
||||
XMLInputFactory inputFactory = XMLInputFactoryUtils.newInstance();
|
||||
XMLStreamReader streamReader = inputFactory.createXMLStreamReader(new StringReader(REQUEST));
|
||||
@@ -89,14 +89,14 @@ public abstract class AbstractEndpointTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testStreamSourceInputStream() throws Exception {
|
||||
void testStreamSourceInputStream() throws Exception {
|
||||
|
||||
InputStream is = new ByteArrayInputStream(REQUEST.getBytes(StandardCharsets.UTF_8));
|
||||
testSource(new StreamSource(is));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testStreamSourceReader() throws Exception {
|
||||
void testStreamSourceReader() throws Exception {
|
||||
|
||||
Reader reader = new StringReader(REQUEST);
|
||||
testSource(new StreamSource(reader));
|
||||
|
||||
@@ -35,12 +35,12 @@ public abstract class AbstractMessageEndpointTests extends AbstractEndpointTests
|
||||
private MessageEndpoint endpoint;
|
||||
|
||||
@BeforeEach
|
||||
public void createEndpoint() throws Exception {
|
||||
void createEndpoint() {
|
||||
this.endpoint = createResponseEndpoint();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNoResponse() throws Exception {
|
||||
void testNoResponse() throws Exception {
|
||||
|
||||
this.endpoint = createNoResponseEndpoint();
|
||||
StringSource requestSource = new StringSource(REQUEST);
|
||||
@@ -53,7 +53,7 @@ public abstract class AbstractMessageEndpointTests extends AbstractEndpointTests
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNoRequestPayload() throws Exception {
|
||||
void testNoRequestPayload() throws Exception {
|
||||
|
||||
this.endpoint = createNoRequestPayloadEndpoint();
|
||||
|
||||
|
||||
@@ -36,14 +36,14 @@ public abstract class AbstractPayloadEndpointTests extends AbstractEndpointTests
|
||||
private Transformer transformer;
|
||||
|
||||
@BeforeEach
|
||||
public void createEndpoint() throws Exception {
|
||||
void createEndpoint() throws Exception {
|
||||
|
||||
this.endpoint = createResponseEndpoint();
|
||||
this.transformer = TransformerFactoryUtils.newInstance().newTransformer();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNoResponse() throws Exception {
|
||||
void testNoResponse() throws Exception {
|
||||
|
||||
this.endpoint = createNoResponseEndpoint();
|
||||
StringSource requestSource = new StringSource(REQUEST);
|
||||
@@ -53,7 +53,7 @@ public abstract class AbstractPayloadEndpointTests extends AbstractEndpointTests
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNoRequest() throws Exception {
|
||||
void testNoRequest() throws Exception {
|
||||
|
||||
this.endpoint = createNoRequestEndpoint();
|
||||
Source resultSource = this.endpoint.invoke(null);
|
||||
|
||||
@@ -22,7 +22,7 @@ import org.dom4j.Element;
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
@Deprecated
|
||||
public class Dom4jPayloadEndpointTests extends AbstractPayloadEndpointTests {
|
||||
class Dom4jPayloadEndpointTests extends AbstractPayloadEndpointTests {
|
||||
|
||||
@Override
|
||||
protected PayloadEndpoint createResponseEndpoint() {
|
||||
|
||||
@@ -22,7 +22,7 @@ import org.w3c.dom.Element;
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
@Deprecated
|
||||
public class DomPayloadEndpointTests extends AbstractPayloadEndpointTests {
|
||||
class DomPayloadEndpointTests extends AbstractPayloadEndpointTests {
|
||||
|
||||
@Override
|
||||
protected PayloadEndpoint createNoResponseEndpoint() throws Exception {
|
||||
|
||||
@@ -31,14 +31,14 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
* @author Tareq Abed Rabbo
|
||||
* @author Arjen Poutsma
|
||||
*/
|
||||
public class EndpointExceptionResolverTests {
|
||||
class EndpointExceptionResolverTests {
|
||||
|
||||
private MethodEndpoint methodEndpoint;
|
||||
|
||||
private AbstractEndpointExceptionResolver exceptionResolver;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() throws Exception {
|
||||
void setUp() throws Exception {
|
||||
|
||||
this.exceptionResolver = new AbstractEndpointExceptionResolver() {
|
||||
|
||||
@@ -53,7 +53,7 @@ public class EndpointExceptionResolverTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testMatchMethodEndpoint() {
|
||||
void testMatchMethodEndpoint() {
|
||||
|
||||
boolean matched = this.exceptionResolver.resolveException(null, this.methodEndpoint, null);
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ import org.jdom2.Namespace;
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
@Deprecated
|
||||
public class JDomPayloadEndpointTests extends AbstractPayloadEndpointTests {
|
||||
class JDomPayloadEndpointTests extends AbstractPayloadEndpointTests {
|
||||
|
||||
@Override
|
||||
protected PayloadEndpoint createNoResponseEndpoint() throws Exception {
|
||||
|
||||
@@ -55,7 +55,7 @@ import static org.easymock.EasyMock.replay;
|
||||
import static org.easymock.EasyMock.verify;
|
||||
|
||||
@Deprecated
|
||||
public class MarshallingPayloadEndpointTests {
|
||||
class MarshallingPayloadEndpointTests {
|
||||
|
||||
private Transformer transformer;
|
||||
|
||||
@@ -64,7 +64,7 @@ public class MarshallingPayloadEndpointTests {
|
||||
private WebServiceMessageFactory factoryMock;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() throws Exception {
|
||||
void setUp() throws Exception {
|
||||
|
||||
MockWebServiceMessage request = new MockWebServiceMessage("<request/>");
|
||||
this.transformer = TransformerFactoryUtils.newInstance().newTransformer();
|
||||
@@ -73,7 +73,7 @@ public class MarshallingPayloadEndpointTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInvoke() throws Exception {
|
||||
void testInvoke() throws Exception {
|
||||
|
||||
Unmarshaller unmarshaller = new SimpleMarshaller() {
|
||||
|
||||
@@ -141,7 +141,7 @@ public class MarshallingPayloadEndpointTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInvokeNullResponse() throws Exception {
|
||||
void testInvokeNullResponse() throws Exception {
|
||||
|
||||
Unmarshaller unmarshaller = new SimpleMarshaller() {
|
||||
|
||||
@@ -193,7 +193,7 @@ public class MarshallingPayloadEndpointTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInvokeNoRequest() throws Exception {
|
||||
void testInvokeNoRequest() throws Exception {
|
||||
|
||||
MockWebServiceMessage request = new MockWebServiceMessage((StringBuilder) null);
|
||||
this.context = new DefaultMessageContext(request, this.factoryMock);
|
||||
@@ -220,7 +220,7 @@ public class MarshallingPayloadEndpointTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInvokeMimeMarshaller() throws Exception {
|
||||
void testInvokeMimeMarshaller() throws Exception {
|
||||
|
||||
MimeUnmarshaller unmarshaller = createMock(MimeUnmarshaller.class);
|
||||
MimeMarshaller marshaller = createMock(MimeMarshaller.class);
|
||||
|
||||
@@ -23,7 +23,7 @@ import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class MethodEndpointTests {
|
||||
class MethodEndpointTests {
|
||||
|
||||
private MethodEndpoint endpoint;
|
||||
|
||||
@@ -32,7 +32,7 @@ public class MethodEndpointTests {
|
||||
private Method method;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() throws Exception {
|
||||
void setUp() throws Exception {
|
||||
|
||||
this.myMethodInvoked = false;
|
||||
this.method = getClass().getMethod("myMethod", String.class);
|
||||
@@ -40,14 +40,14 @@ public class MethodEndpointTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetters() {
|
||||
void testGetters() {
|
||||
|
||||
assertThat(this.endpoint.getBean()).isEqualTo(this);
|
||||
assertThat(this.endpoint.getMethod()).isEqualTo(this.method);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInvoke() throws Exception {
|
||||
void testInvoke() throws Exception {
|
||||
|
||||
assertThat(this.myMethodInvoked).isFalse();
|
||||
|
||||
@@ -57,27 +57,27 @@ public class MethodEndpointTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testEquals() throws Exception {
|
||||
void testEquals() throws Exception {
|
||||
|
||||
assertThat(this.endpoint).isEqualTo(new MethodEndpoint(this, this.method));
|
||||
|
||||
Method otherMethod = getClass().getMethod("testEquals");
|
||||
Method otherMethod = getClass().getDeclaredMethod("testEquals");
|
||||
|
||||
assertThat(new MethodEndpoint(this, otherMethod).equals(this.endpoint)).isFalse();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testHashCode() throws Exception {
|
||||
void testHashCode() throws Exception {
|
||||
|
||||
assertThat(this.endpoint.hashCode()).isEqualTo(new MethodEndpoint(this, this.method).hashCode());
|
||||
|
||||
Method otherMethod = getClass().getMethod("testEquals");
|
||||
Method otherMethod = getClass().getDeclaredMethod("testEquals");
|
||||
|
||||
assertThat(new MethodEndpoint(this, otherMethod).hashCode() == this.endpoint.hashCode()).isFalse();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testToString() {
|
||||
void testToString() {
|
||||
assertThat(this.endpoint.toString()).isNotNull();
|
||||
}
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.fail;
|
||||
|
||||
@Deprecated
|
||||
public class SaxPayloadEndpointTests extends AbstractPayloadEndpointTests {
|
||||
class SaxPayloadEndpointTests extends AbstractPayloadEndpointTests {
|
||||
|
||||
@Override
|
||||
protected PayloadEndpoint createNoResponseEndpoint() {
|
||||
|
||||
@@ -34,7 +34,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
* @see AbstractStaxEventPayloadEndpoint
|
||||
*/
|
||||
@Deprecated
|
||||
public class StaxEventPayloadEndpointTests extends AbstractMessageEndpointTests {
|
||||
class StaxEventPayloadEndpointTests extends AbstractMessageEndpointTests {
|
||||
|
||||
@Override
|
||||
protected MessageEndpoint createNoResponseEndpoint() {
|
||||
|
||||
@@ -42,7 +42,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
* @see AbstractStaxStreamPayloadEndpoint
|
||||
*/
|
||||
@Deprecated
|
||||
public class StaxStreamPayloadEndpointTests extends AbstractMessageEndpointTests {
|
||||
class StaxStreamPayloadEndpointTests extends AbstractMessageEndpointTests {
|
||||
|
||||
@Override
|
||||
protected MessageEndpoint createNoResponseEndpoint() {
|
||||
@@ -103,7 +103,7 @@ public class StaxStreamPayloadEndpointTests extends AbstractMessageEndpointTests
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSaajResponse() throws Exception {
|
||||
void testSaajResponse() throws Exception {
|
||||
|
||||
Transformer transformer = TransformerFactoryUtils.newInstance().newTransformer();
|
||||
MessageFactory messageFactory = MessageFactory.newInstance();
|
||||
@@ -125,7 +125,7 @@ public class StaxStreamPayloadEndpointTests extends AbstractMessageEndpointTests
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAxiomResponse() throws Exception {
|
||||
void testAxiomResponse() throws Exception {
|
||||
|
||||
Transformer transformer = TransformerFactoryUtils.newInstance().newTransformer();
|
||||
MessageFactory messageFactory = MessageFactory.newInstance();
|
||||
@@ -147,7 +147,7 @@ public class StaxStreamPayloadEndpointTests extends AbstractMessageEndpointTests
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAxiomNoResponse() throws Exception {
|
||||
void testAxiomNoResponse() throws Exception {
|
||||
|
||||
Transformer transformer = TransformerFactoryUtils.newInstance().newTransformer();
|
||||
MessageFactory messageFactory = MessageFactory.newInstance();
|
||||
|
||||
@@ -21,7 +21,7 @@ import nu.xom.Element;
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
@Deprecated
|
||||
public class XomPayloadEndpointTests extends AbstractPayloadEndpointTests {
|
||||
class XomPayloadEndpointTests extends AbstractPayloadEndpointTests {
|
||||
|
||||
@Override
|
||||
protected PayloadEndpoint createNoResponseEndpoint() {
|
||||
@@ -67,13 +67,13 @@ public class XomPayloadEndpointTests extends AbstractPayloadEndpointTests {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void testStaxSourceEventReader() {
|
||||
// overriden, because XOM doesn't not support it
|
||||
void testStaxSourceEventReader() {
|
||||
// overridden, because XOM doesn't not support it
|
||||
}
|
||||
|
||||
@Override
|
||||
public void testStaxSourceStreamReader() {
|
||||
// overriden, because XOM doesn't not support it
|
||||
void testStaxSourceStreamReader() {
|
||||
// overridden, because XOM doesn't not support it
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ import static org.easymock.EasyMock.verify;
|
||||
/**
|
||||
* @author Arjen Poutsma
|
||||
*/
|
||||
public class DefaultMethodEndpointAdapterTests {
|
||||
class DefaultMethodEndpointAdapterTests {
|
||||
|
||||
private DefaultMethodEndpointAdapter adapter;
|
||||
|
||||
@@ -66,7 +66,7 @@ public class DefaultMethodEndpointAdapterTests {
|
||||
private String supportedArgument;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() throws Exception {
|
||||
void setUp() throws Exception {
|
||||
|
||||
this.adapter = new DefaultMethodEndpointAdapter();
|
||||
this.argumentResolver1 = createMock("stringResolver", MethodArgumentResolver.class);
|
||||
@@ -81,7 +81,7 @@ public class DefaultMethodEndpointAdapterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void initDefaultStrategies() throws Exception {
|
||||
void initDefaultStrategies() throws Exception {
|
||||
|
||||
this.adapter = new DefaultMethodEndpointAdapter();
|
||||
this.adapter.setBeanClassLoader(DefaultMethodEndpointAdapterTests.class.getClassLoader());
|
||||
@@ -92,7 +92,7 @@ public class DefaultMethodEndpointAdapterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void supportsSupported() {
|
||||
void supportsSupported() {
|
||||
|
||||
expect(this.argumentResolver1.supportsParameter(isA(MethodParameter.class))).andReturn(true);
|
||||
expect(this.argumentResolver1.supportsParameter(isA(MethodParameter.class))).andReturn(false);
|
||||
@@ -109,7 +109,7 @@ public class DefaultMethodEndpointAdapterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void supportsUnsupportedParameter() {
|
||||
void supportsUnsupportedParameter() {
|
||||
|
||||
expect(this.argumentResolver1.supportsParameter(isA(MethodParameter.class))).andReturn(false);
|
||||
expect(this.argumentResolver2.supportsParameter(isA(MethodParameter.class))).andReturn(false);
|
||||
@@ -123,7 +123,7 @@ public class DefaultMethodEndpointAdapterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void supportsUnsupportedReturnType() {
|
||||
void supportsUnsupportedReturnType() {
|
||||
|
||||
expect(this.argumentResolver1.supportsParameter(isA(MethodParameter.class))).andReturn(true);
|
||||
expect(this.returnValueHandler.supportsReturnType(isA(MethodParameter.class))).andReturn(false);
|
||||
@@ -138,7 +138,7 @@ public class DefaultMethodEndpointAdapterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void invokeSupported() throws Exception {
|
||||
void invokeSupported() throws Exception {
|
||||
MockWebServiceMessage request = new MockWebServiceMessage("<root xmlns='http://springframework.org'/>");
|
||||
MessageContext messageContext = new DefaultMessageContext(request, new MockWebServiceMessageFactory());
|
||||
|
||||
@@ -166,7 +166,7 @@ public class DefaultMethodEndpointAdapterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void invokeNullReturnValue() throws Exception {
|
||||
void invokeNullReturnValue() throws Exception {
|
||||
|
||||
MockWebServiceMessage request = new MockWebServiceMessage("<root xmlns='http://springframework.org'/>");
|
||||
MessageContext messageContext = new DefaultMessageContext(request, new MockWebServiceMessageFactory());
|
||||
@@ -189,7 +189,7 @@ public class DefaultMethodEndpointAdapterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void invokeException() throws Exception {
|
||||
void invokeException() throws Exception {
|
||||
|
||||
MockWebServiceMessage request = new MockWebServiceMessage("<root xmlns='http://springframework.org'/>");
|
||||
MessageContext messageContext = new DefaultMessageContext(request, new MockWebServiceMessageFactory());
|
||||
|
||||
@@ -42,7 +42,7 @@ import static org.easymock.EasyMock.replay;
|
||||
import static org.easymock.EasyMock.verify;
|
||||
|
||||
@Deprecated
|
||||
public class GenericMarshallingMethodEndpointAdapterTests {
|
||||
class GenericMarshallingMethodEndpointAdapterTests {
|
||||
|
||||
private GenericMarshallingMethodEndpointAdapter adapter;
|
||||
|
||||
@@ -55,7 +55,7 @@ public class GenericMarshallingMethodEndpointAdapterTests {
|
||||
private boolean responseInvoked;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() throws Exception {
|
||||
void setUp() throws Exception {
|
||||
|
||||
this.adapter = new GenericMarshallingMethodEndpointAdapter();
|
||||
this.marshallerMock = createMock(GenericMarshaller.class);
|
||||
@@ -66,7 +66,7 @@ public class GenericMarshallingMethodEndpointAdapterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNoResponse() throws Exception {
|
||||
void testNoResponse() throws Exception {
|
||||
|
||||
WebServiceMessage messageMock = createMock(WebServiceMessage.class);
|
||||
expect(messageMock.getPayloadSource()).andReturn(new StringSource("<request/>"));
|
||||
@@ -89,7 +89,7 @@ public class GenericMarshallingMethodEndpointAdapterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNoRequestPayload() throws Exception {
|
||||
void testNoRequestPayload() throws Exception {
|
||||
|
||||
WebServiceMessage messageMock = createMock(WebServiceMessage.class);
|
||||
expect(messageMock.getPayloadSource()).andReturn(null);
|
||||
@@ -111,7 +111,7 @@ public class GenericMarshallingMethodEndpointAdapterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testResponse() throws Exception {
|
||||
void testResponse() throws Exception {
|
||||
|
||||
WebServiceMessage requestMock = createMock(WebServiceMessage.class);
|
||||
expect(requestMock.getPayloadSource()).andReturn(new StringSource("<request/>"));
|
||||
@@ -138,7 +138,7 @@ public class GenericMarshallingMethodEndpointAdapterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSupportedNoResponse() throws NoSuchMethodException {
|
||||
void testSupportedNoResponse() throws NoSuchMethodException {
|
||||
|
||||
Method noResponse = getClass().getMethod("noResponse", MyGenericType.class);
|
||||
MethodEndpoint methodEndpoint = new MethodEndpoint(this, noResponse);
|
||||
@@ -152,7 +152,7 @@ public class GenericMarshallingMethodEndpointAdapterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSupportedResponse() throws NoSuchMethodException {
|
||||
void testSupportedResponse() throws NoSuchMethodException {
|
||||
|
||||
Method response = getClass().getMethod("response", MyGenericType.class);
|
||||
MethodEndpoint methodEndpoint = new MethodEndpoint(this, response);
|
||||
@@ -168,7 +168,7 @@ public class GenericMarshallingMethodEndpointAdapterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testUnsupportedMethodMultipleParams() throws NoSuchMethodException {
|
||||
void testUnsupportedMethodMultipleParams() throws NoSuchMethodException {
|
||||
|
||||
Method unsupported = getClass().getMethod("unsupportedMultipleParams", String.class, String.class);
|
||||
|
||||
@@ -180,7 +180,7 @@ public class GenericMarshallingMethodEndpointAdapterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testUnsupportedMethodWrongParam() throws NoSuchMethodException {
|
||||
void testUnsupportedMethodWrongParam() throws NoSuchMethodException {
|
||||
|
||||
Method unsupported = getClass().getMethod("unsupportedWrongParam", String.class);
|
||||
expect(this.unmarshallerMock.supports(unsupported.getGenericParameterTypes()[0])).andReturn(false);
|
||||
@@ -194,7 +194,7 @@ public class GenericMarshallingMethodEndpointAdapterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testUnsupportedMethodWrongReturnType() throws NoSuchMethodException {
|
||||
void testUnsupportedMethodWrongReturnType() throws NoSuchMethodException {
|
||||
|
||||
Method unsupported = getClass().getMethod("unsupportedWrongParam", String.class);
|
||||
expect(this.marshallerMock.supports(unsupported.getGenericReturnType())).andReturn(false);
|
||||
|
||||
@@ -40,7 +40,7 @@ import static org.easymock.EasyMock.replay;
|
||||
import static org.easymock.EasyMock.verify;
|
||||
|
||||
@Deprecated
|
||||
public class MarshallingMethodEndpointAdapterTests {
|
||||
class MarshallingMethodEndpointAdapterTests {
|
||||
|
||||
private MarshallingMethodEndpointAdapter adapter;
|
||||
|
||||
@@ -55,7 +55,7 @@ public class MarshallingMethodEndpointAdapterTests {
|
||||
private boolean responseInvoked;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() throws Exception {
|
||||
void setUp() throws Exception {
|
||||
|
||||
this.adapter = new MarshallingMethodEndpointAdapter();
|
||||
this.marshallerMock = createMock(Marshaller.class);
|
||||
@@ -68,7 +68,7 @@ public class MarshallingMethodEndpointAdapterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNoResponse() throws Exception {
|
||||
void testNoResponse() throws Exception {
|
||||
|
||||
Method noResponse = getClass().getMethod("noResponse", MyType.class);
|
||||
MethodEndpoint methodEndpoint = new MethodEndpoint(this, noResponse);
|
||||
@@ -86,7 +86,7 @@ public class MarshallingMethodEndpointAdapterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNoRequestPayload() throws Exception {
|
||||
void testNoRequestPayload() throws Exception {
|
||||
|
||||
MockWebServiceMessage request = new MockWebServiceMessage();
|
||||
this.messageContext = new DefaultMessageContext(request, new MockWebServiceMessageFactory());
|
||||
@@ -104,7 +104,7 @@ public class MarshallingMethodEndpointAdapterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testResponse() throws Exception {
|
||||
void testResponse() throws Exception {
|
||||
|
||||
Method response = getClass().getMethod("response", MyType.class);
|
||||
MethodEndpoint methodEndpoint = new MethodEndpoint(this, response);
|
||||
@@ -123,7 +123,7 @@ public class MarshallingMethodEndpointAdapterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSupportedNoResponse() throws NoSuchMethodException {
|
||||
void testSupportedNoResponse() throws NoSuchMethodException {
|
||||
|
||||
Method noResponse = getClass().getMethod("noResponse", MyType.class);
|
||||
MethodEndpoint methodEndpoint = new MethodEndpoint(this, noResponse);
|
||||
@@ -137,7 +137,7 @@ public class MarshallingMethodEndpointAdapterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSupportedResponse() throws NoSuchMethodException {
|
||||
void testSupportedResponse() throws NoSuchMethodException {
|
||||
|
||||
Method response = getClass().getMethod("response", MyType.class);
|
||||
MethodEndpoint methodEndpoint = new MethodEndpoint(this, response);
|
||||
@@ -152,7 +152,7 @@ public class MarshallingMethodEndpointAdapterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testUnsupportedMethodMultipleParams() throws NoSuchMethodException {
|
||||
void testUnsupportedMethodMultipleParams() throws NoSuchMethodException {
|
||||
|
||||
Method unsupported = getClass().getMethod("unsupportedMultipleParams", String.class, String.class);
|
||||
|
||||
@@ -164,7 +164,7 @@ public class MarshallingMethodEndpointAdapterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testUnsupportedMethodWrongParam() throws NoSuchMethodException {
|
||||
void testUnsupportedMethodWrongParam() throws NoSuchMethodException {
|
||||
|
||||
Method unsupported = getClass().getMethod("unsupportedWrongParam", String.class);
|
||||
expect(this.unmarshallerMock.supports(String.class)).andReturn(false);
|
||||
@@ -178,7 +178,7 @@ public class MarshallingMethodEndpointAdapterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testUnsupportedMethodWrongReturnType() throws NoSuchMethodException {
|
||||
void testUnsupportedMethodWrongReturnType() throws NoSuchMethodException {
|
||||
|
||||
Method unsupported = getClass().getMethod("unsupportedWrongParam", String.class);
|
||||
expect(this.marshallerMock.supports(String.class)).andReturn(false);
|
||||
|
||||
@@ -29,25 +29,25 @@ import static org.easymock.EasyMock.createMock;
|
||||
import static org.easymock.EasyMock.replay;
|
||||
import static org.easymock.EasyMock.verify;
|
||||
|
||||
public class MessageEndpointAdapterTests {
|
||||
class MessageEndpointAdapterTests {
|
||||
|
||||
private MessageEndpointAdapter adapter;
|
||||
|
||||
private MessageEndpoint endpointMock;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() {
|
||||
void setUp() {
|
||||
this.adapter = new MessageEndpointAdapter();
|
||||
this.endpointMock = createMock(MessageEndpoint.class);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSupports() {
|
||||
void testSupports() {
|
||||
assertThat(this.adapter.supports(this.endpointMock)).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInvoke() throws Exception {
|
||||
void testInvoke() throws Exception {
|
||||
|
||||
MessageContext context = new DefaultMessageContext(new MockWebServiceMessageFactory());
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ import org.springframework.ws.server.endpoint.MethodEndpoint;
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
@Deprecated
|
||||
public class MessageMethodEndpointAdapterTests {
|
||||
class MessageMethodEndpointAdapterTests {
|
||||
|
||||
private MessageMethodEndpointAdapter adapter;
|
||||
|
||||
@@ -36,20 +36,20 @@ public class MessageMethodEndpointAdapterTests {
|
||||
private MessageContext messageContext;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() {
|
||||
void setUp() {
|
||||
this.adapter = new MessageMethodEndpointAdapter();
|
||||
this.messageContext = new DefaultMessageContext(new MockWebServiceMessageFactory());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSupported() throws NoSuchMethodException {
|
||||
void testSupported() throws NoSuchMethodException {
|
||||
|
||||
MethodEndpoint methodEndpoint = new MethodEndpoint(this, "supported", MessageContext.class);
|
||||
assertThat(this.adapter.supportsInternal(methodEndpoint)).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testUnsupportedMethodMultipleParams() throws NoSuchMethodException {
|
||||
void testUnsupportedMethodMultipleParams() throws NoSuchMethodException {
|
||||
|
||||
assertThat(this.adapter.supportsInternal(
|
||||
new MethodEndpoint(this, "unsupportedMultipleParams", MessageContext.class, MessageContext.class)))
|
||||
@@ -57,14 +57,14 @@ public class MessageMethodEndpointAdapterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testUnsupportedMethodWrongParam() throws NoSuchMethodException {
|
||||
void testUnsupportedMethodWrongParam() throws NoSuchMethodException {
|
||||
|
||||
assertThat(this.adapter.supportsInternal(new MethodEndpoint(this, "unsupportedWrongParam", String.class)))
|
||||
.isFalse();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInvokeSupported() throws Exception {
|
||||
void testInvokeSupported() throws Exception {
|
||||
|
||||
MethodEndpoint methodEndpoint = new MethodEndpoint(this, "supported", MessageContext.class);
|
||||
|
||||
|
||||
@@ -42,26 +42,26 @@ import static org.easymock.EasyMock.isA;
|
||||
import static org.easymock.EasyMock.replay;
|
||||
import static org.easymock.EasyMock.verify;
|
||||
|
||||
public class PayloadEndpointAdapterTests {
|
||||
class PayloadEndpointAdapterTests {
|
||||
|
||||
private PayloadEndpointAdapter adapter;
|
||||
|
||||
private PayloadEndpoint endpointMock;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() {
|
||||
void setUp() {
|
||||
|
||||
this.adapter = new PayloadEndpointAdapter();
|
||||
this.endpointMock = createMock(PayloadEndpoint.class);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSupports() {
|
||||
void testSupports() {
|
||||
assertThat(this.adapter.supports(this.endpointMock)).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInvoke() throws Exception {
|
||||
void testInvoke() throws Exception {
|
||||
|
||||
MockWebServiceMessage request = new MockWebServiceMessage("<request/>");
|
||||
final Transformer transformer = TransformerFactoryUtils.newInstance().newTransformer();
|
||||
@@ -86,7 +86,7 @@ public class PayloadEndpointAdapterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInvokeNoResponse() throws Exception {
|
||||
void testInvokeNoResponse() throws Exception {
|
||||
|
||||
MockWebServiceMessage request = new MockWebServiceMessage("<request/>");
|
||||
MessageContext messageContext = new DefaultMessageContext(request, new MockWebServiceMessageFactory());
|
||||
|
||||
@@ -33,7 +33,7 @@ import org.springframework.ws.server.endpoint.MethodEndpoint;
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
@Deprecated
|
||||
public class PayloadMethodEndpointAdapterTests {
|
||||
class PayloadMethodEndpointAdapterTests {
|
||||
|
||||
private PayloadMethodEndpointAdapter adapter;
|
||||
|
||||
@@ -44,28 +44,28 @@ public class PayloadMethodEndpointAdapterTests {
|
||||
private MessageContext messageContext;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() {
|
||||
void setUp() {
|
||||
|
||||
this.adapter = new PayloadMethodEndpointAdapter();
|
||||
this.messageContext = new DefaultMessageContext(new MockWebServiceMessageFactory());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSupportedNoResponse() throws NoSuchMethodException {
|
||||
void testSupportedNoResponse() throws NoSuchMethodException {
|
||||
|
||||
MethodEndpoint methodEndpoint = new MethodEndpoint(this, "noResponse", DOMSource.class);
|
||||
assertThat(this.adapter.supportsInternal(methodEndpoint)).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSupportedResponse() throws NoSuchMethodException {
|
||||
void testSupportedResponse() throws NoSuchMethodException {
|
||||
|
||||
MethodEndpoint methodEndpoint = new MethodEndpoint(this, "response", StreamSource.class);
|
||||
assertThat(this.adapter.supportsInternal(methodEndpoint)).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testUnsupportedMethodMultipleParams() throws NoSuchMethodException {
|
||||
void testUnsupportedMethodMultipleParams() throws NoSuchMethodException {
|
||||
|
||||
assertThat(this.adapter
|
||||
.supportsInternal(new MethodEndpoint(this, "unsupportedMultipleParams", Source.class, Source.class)))
|
||||
@@ -73,21 +73,21 @@ public class PayloadMethodEndpointAdapterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testUnsupportedMethodWrongReturnType() throws NoSuchMethodException {
|
||||
void testUnsupportedMethodWrongReturnType() throws NoSuchMethodException {
|
||||
|
||||
assertThat(this.adapter.supportsInternal(new MethodEndpoint(this, "unsupportedWrongReturnType", Source.class)))
|
||||
.isFalse();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testUnsupportedMethodWrongParam() throws NoSuchMethodException {
|
||||
void testUnsupportedMethodWrongParam() throws NoSuchMethodException {
|
||||
|
||||
assertThat(this.adapter.supportsInternal(new MethodEndpoint(this, "unsupportedWrongParam", String.class)))
|
||||
.isFalse();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNoResponse() throws Exception {
|
||||
void testNoResponse() throws Exception {
|
||||
|
||||
MethodEndpoint methodEndpoint = new MethodEndpoint(this, "noResponse", DOMSource.class);
|
||||
|
||||
@@ -99,7 +99,7 @@ public class PayloadMethodEndpointAdapterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testResponse() throws Exception {
|
||||
void testResponse() throws Exception {
|
||||
|
||||
WebServiceMessage request = new MockWebServiceMessage("<request/>");
|
||||
this.messageContext = new DefaultMessageContext(request, new MockWebServiceMessageFactory());
|
||||
|
||||
@@ -49,7 +49,7 @@ import static org.easymock.EasyMock.replay;
|
||||
import static org.easymock.EasyMock.verify;
|
||||
|
||||
@Deprecated
|
||||
public class XPathParamAnnotationMethodEndpointAdapterTests {
|
||||
class XPathParamAnnotationMethodEndpointAdapterTests {
|
||||
|
||||
private static final String CONTENTS = "<root><child><text>text</text><number>42.0</number></child></root>";
|
||||
|
||||
@@ -62,14 +62,14 @@ public class XPathParamAnnotationMethodEndpointAdapterTests {
|
||||
private boolean namespacesInvoked;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() throws Exception {
|
||||
void setUp() throws Exception {
|
||||
|
||||
this.adapter = new XPathParamAnnotationMethodEndpointAdapter();
|
||||
this.adapter.afterPropertiesSet();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testUnsupportedInvalidParam() throws NoSuchMethodException {
|
||||
void testUnsupportedInvalidParam() throws NoSuchMethodException {
|
||||
|
||||
MethodEndpoint endpoint = new MethodEndpoint(this, "unsupportedInvalidParamType", Integer.TYPE);
|
||||
|
||||
@@ -77,21 +77,21 @@ public class XPathParamAnnotationMethodEndpointAdapterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testUnsupportedInvalidReturnType() throws NoSuchMethodException {
|
||||
void testUnsupportedInvalidReturnType() throws NoSuchMethodException {
|
||||
|
||||
MethodEndpoint endpoint = new MethodEndpoint(this, "unsupportedInvalidReturnType", String.class);
|
||||
assertThat(this.adapter.supports(endpoint)).isFalse();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testUnsupportedInvalidParams() throws NoSuchMethodException {
|
||||
void testUnsupportedInvalidParams() throws NoSuchMethodException {
|
||||
|
||||
MethodEndpoint endpoint = new MethodEndpoint(this, "unsupportedInvalidParams", String.class, String.class);
|
||||
assertThat(this.adapter.supports(endpoint)).isFalse();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSupportedTypes() throws NoSuchMethodException {
|
||||
void testSupportedTypes() throws NoSuchMethodException {
|
||||
|
||||
MethodEndpoint endpoint = new MethodEndpoint(this, "supportedTypes", Boolean.TYPE, Double.TYPE, Node.class,
|
||||
NodeList.class, String.class);
|
||||
@@ -99,28 +99,28 @@ public class XPathParamAnnotationMethodEndpointAdapterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSupportsStringSource() throws NoSuchMethodException {
|
||||
void testSupportsStringSource() throws NoSuchMethodException {
|
||||
|
||||
MethodEndpoint endpoint = new MethodEndpoint(this, "supportedStringSource", String.class);
|
||||
assertThat(this.adapter.supports(endpoint)).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSupportsSource() throws NoSuchMethodException {
|
||||
void testSupportsSource() throws NoSuchMethodException {
|
||||
|
||||
MethodEndpoint endpoint = new MethodEndpoint(this, "supportedSource", String.class);
|
||||
assertThat(this.adapter.supports(endpoint)).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSupportsVoid() throws NoSuchMethodException {
|
||||
void testSupportsVoid() throws NoSuchMethodException {
|
||||
|
||||
MethodEndpoint endpoint = new MethodEndpoint(this, "supportedVoid", String.class);
|
||||
assertThat(this.adapter.supports(endpoint)).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInvokeTypes() throws Exception {
|
||||
void testInvokeTypes() throws Exception {
|
||||
|
||||
WebServiceMessage messageMock = createMock(WebServiceMessage.class);
|
||||
expect(messageMock.getPayloadSource()).andReturn(new StringSource(CONTENTS));
|
||||
@@ -138,7 +138,7 @@ public class XPathParamAnnotationMethodEndpointAdapterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInvokeSource() throws Exception {
|
||||
void testInvokeSource() throws Exception {
|
||||
|
||||
WebServiceMessage requestMock = createMock(WebServiceMessage.class);
|
||||
WebServiceMessage responseMock = createMock(WebServiceMessage.class);
|
||||
@@ -158,7 +158,7 @@ public class XPathParamAnnotationMethodEndpointAdapterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInvokeVoidDom() throws Exception {
|
||||
void testInvokeVoidDom() throws Exception {
|
||||
|
||||
DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactoryUtils.newInstance();
|
||||
DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();
|
||||
|
||||
@@ -51,7 +51,7 @@ public abstract class AbstractPayloadMethodProcessorTests extends AbstractMethod
|
||||
protected abstract MethodParameter[] createSupportedReturnTypes() throws NoSuchMethodException;
|
||||
|
||||
@Test
|
||||
public void supportsParameter() throws NoSuchMethodException {
|
||||
void supportsParameter() throws NoSuchMethodException {
|
||||
|
||||
for (MethodParameter supportedParameter : this.supportedParameters) {
|
||||
assertThat(this.processor.supportsParameter(supportedParameter)).isTrue();
|
||||
@@ -64,7 +64,7 @@ public abstract class AbstractPayloadMethodProcessorTests extends AbstractMethod
|
||||
}
|
||||
|
||||
@Test
|
||||
public void supportsReturnType() throws NoSuchMethodException {
|
||||
void supportsReturnType() throws NoSuchMethodException {
|
||||
|
||||
for (MethodParameter supportedReturnType : this.supportedReturnTypes) {
|
||||
assertThat(this.processor.supportsReturnType(supportedReturnType)).isTrue();
|
||||
@@ -77,22 +77,22 @@ public abstract class AbstractPayloadMethodProcessorTests extends AbstractMethod
|
||||
}
|
||||
|
||||
@Test
|
||||
public void saajArgument() throws Exception {
|
||||
void saajArgument() throws Exception {
|
||||
testResolveArgument(createSaajMessageContext());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void mockArgument() throws Exception {
|
||||
void mockArgument() throws Exception {
|
||||
testResolveArgument(createMockMessageContext());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void axiomCachingArgument() throws Exception {
|
||||
void axiomCachingArgument() throws Exception {
|
||||
testResolveArgument(createCachingAxiomMessageContext());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void axiomNonCachingArgument() throws Exception {
|
||||
void axiomNonCachingArgument() throws Exception {
|
||||
testResolveArgument(createNonCachingAxiomMessageContext());
|
||||
}
|
||||
|
||||
@@ -111,22 +111,22 @@ public abstract class AbstractPayloadMethodProcessorTests extends AbstractMethod
|
||||
}
|
||||
|
||||
@Test
|
||||
public void saajReturnValue() throws Exception {
|
||||
void saajReturnValue() throws Exception {
|
||||
testHandleReturnValue(createSaajMessageContext());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void mockReturnValue() throws Exception {
|
||||
void mockReturnValue() throws Exception {
|
||||
testHandleReturnValue(createMockMessageContext());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void axiomCachingReturnValue() throws Exception {
|
||||
void axiomCachingReturnValue() throws Exception {
|
||||
testHandleReturnValue(createCachingAxiomMessageContext());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void axiomNonCachingReturnValue() throws Exception {
|
||||
void axiomNonCachingReturnValue() throws Exception {
|
||||
testHandleReturnValue(createNonCachingAxiomMessageContext());
|
||||
}
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ import static org.easymock.EasyMock.isA;
|
||||
import static org.easymock.EasyMock.replay;
|
||||
import static org.easymock.EasyMock.verify;
|
||||
|
||||
public class MarshallingPayloadMethodProcessorTests extends AbstractMethodArgumentResolverTests {
|
||||
class MarshallingPayloadMethodProcessorTests extends AbstractMethodArgumentResolverTests {
|
||||
|
||||
private MarshallingPayloadMethodProcessor processor;
|
||||
|
||||
@@ -53,7 +53,7 @@ public class MarshallingPayloadMethodProcessorTests extends AbstractMethodArgume
|
||||
private MethodParameter supportedReturnType;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() throws Exception {
|
||||
void setUp() throws Exception {
|
||||
|
||||
this.marshaller = createMock("marshaller", GenericMarshaller.class);
|
||||
this.unmarshaller = createMock("unmarshaller", GenericUnmarshaller.class);
|
||||
@@ -63,7 +63,7 @@ public class MarshallingPayloadMethodProcessorTests extends AbstractMethodArgume
|
||||
}
|
||||
|
||||
@Test
|
||||
public void supportsParameterSupported() {
|
||||
void supportsParameterSupported() {
|
||||
|
||||
expect(this.unmarshaller.supports(isA(Type.class))).andReturn(true);
|
||||
|
||||
@@ -75,7 +75,7 @@ public class MarshallingPayloadMethodProcessorTests extends AbstractMethodArgume
|
||||
}
|
||||
|
||||
@Test
|
||||
public void supportsParameterUnsupported() {
|
||||
void supportsParameterUnsupported() {
|
||||
|
||||
expect(this.unmarshaller.supports(isA(Type.class))).andReturn(false);
|
||||
|
||||
@@ -87,7 +87,7 @@ public class MarshallingPayloadMethodProcessorTests extends AbstractMethodArgume
|
||||
}
|
||||
|
||||
@Test
|
||||
public void supportsParameterNoUnmarshallerSupported() {
|
||||
void supportsParameterNoUnmarshallerSupported() {
|
||||
|
||||
this.processor = new MarshallingPayloadMethodProcessor();
|
||||
this.processor.setMarshaller(this.marshaller);
|
||||
@@ -100,7 +100,7 @@ public class MarshallingPayloadMethodProcessorTests extends AbstractMethodArgume
|
||||
}
|
||||
|
||||
@Test
|
||||
public void supportsReturnTypeSupported() {
|
||||
void supportsReturnTypeSupported() {
|
||||
|
||||
expect(this.marshaller.supports(isA(Type.class))).andReturn(true);
|
||||
|
||||
@@ -112,7 +112,7 @@ public class MarshallingPayloadMethodProcessorTests extends AbstractMethodArgume
|
||||
}
|
||||
|
||||
@Test
|
||||
public void supportsReturnTypeUnsupported() {
|
||||
void supportsReturnTypeUnsupported() {
|
||||
|
||||
expect(this.marshaller.supports(isA(Type.class))).andReturn(false);
|
||||
|
||||
@@ -124,7 +124,7 @@ public class MarshallingPayloadMethodProcessorTests extends AbstractMethodArgume
|
||||
}
|
||||
|
||||
@Test
|
||||
public void supportsReturnTypeNoMarshaller() {
|
||||
void supportsReturnTypeNoMarshaller() {
|
||||
|
||||
this.processor = new MarshallingPayloadMethodProcessor();
|
||||
this.processor.setUnmarshaller(this.unmarshaller);
|
||||
@@ -137,7 +137,7 @@ public class MarshallingPayloadMethodProcessorTests extends AbstractMethodArgume
|
||||
}
|
||||
|
||||
@Test
|
||||
public void resolveArgument() throws Exception {
|
||||
void resolveArgument() throws Exception {
|
||||
|
||||
MyObject expected = new MyObject();
|
||||
|
||||
@@ -154,7 +154,7 @@ public class MarshallingPayloadMethodProcessorTests extends AbstractMethodArgume
|
||||
}
|
||||
|
||||
@Test
|
||||
public void resolveArgumentNoUnmarshaller() {
|
||||
void resolveArgumentNoUnmarshaller() {
|
||||
|
||||
assertThatIllegalStateException().isThrownBy(() -> {
|
||||
|
||||
@@ -170,7 +170,7 @@ public class MarshallingPayloadMethodProcessorTests extends AbstractMethodArgume
|
||||
}
|
||||
|
||||
@Test
|
||||
public void handleReturnValue() throws Exception {
|
||||
void handleReturnValue() throws Exception {
|
||||
|
||||
MyObject returnValue = new MyObject();
|
||||
|
||||
@@ -185,7 +185,7 @@ public class MarshallingPayloadMethodProcessorTests extends AbstractMethodArgume
|
||||
}
|
||||
|
||||
@Test
|
||||
public void handleReturnValueNoMarshaller() {
|
||||
void handleReturnValueNoMarshaller() {
|
||||
|
||||
assertThatIllegalStateException().isThrownBy(() -> {
|
||||
|
||||
|
||||
@@ -26,26 +26,26 @@ import org.springframework.ws.context.MessageContext;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class MessageContextMethodArgumentResolverTests {
|
||||
class MessageContextMethodArgumentResolverTests {
|
||||
|
||||
private MessageContextMethodArgumentResolver resolver;
|
||||
|
||||
private MethodParameter supported;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() throws NoSuchMethodException {
|
||||
void setUp() throws NoSuchMethodException {
|
||||
|
||||
this.resolver = new MessageContextMethodArgumentResolver();
|
||||
this.supported = new MethodParameter(getClass().getMethod("supported", MessageContext.class), 0);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void supportsParameter() {
|
||||
void supportsParameter() {
|
||||
assertThat(this.resolver.supportsParameter(this.supported)).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void resolveArgument() throws Exception {
|
||||
void resolveArgument() throws Exception {
|
||||
|
||||
MessageContext messageContext = new DefaultMessageContext(new MockWebServiceMessageFactory());
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ import org.springframework.xml.transform.StringSource;
|
||||
/**
|
||||
* @author Arjen Poutsma
|
||||
*/
|
||||
public class SourcePayloadMethodProcessorTests extends AbstractPayloadMethodProcessorTests {
|
||||
class SourcePayloadMethodProcessorTests extends AbstractPayloadMethodProcessorTests {
|
||||
|
||||
@Override
|
||||
protected AbstractPayloadSourceMethodProcessor createProcessor() {
|
||||
|
||||
@@ -36,7 +36,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
* @author Arjen Poutsma
|
||||
*/
|
||||
@SuppressWarnings("Since15")
|
||||
public class StaxPayloadMethodArgumentResolverTests extends AbstractMethodArgumentResolverTests {
|
||||
class StaxPayloadMethodArgumentResolverTests extends AbstractMethodArgumentResolverTests {
|
||||
|
||||
private StaxPayloadMethodArgumentResolver resolver;
|
||||
|
||||
@@ -47,7 +47,7 @@ public class StaxPayloadMethodArgumentResolverTests extends AbstractMethodArgume
|
||||
private MethodParameter invalidParameter;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() throws Exception {
|
||||
void setUp() throws Exception {
|
||||
|
||||
this.resolver = new StaxPayloadMethodArgumentResolver();
|
||||
this.streamParameter = new MethodParameter(getClass().getMethod("streamReader", XMLStreamReader.class), 0);
|
||||
@@ -56,7 +56,7 @@ public class StaxPayloadMethodArgumentResolverTests extends AbstractMethodArgume
|
||||
}
|
||||
|
||||
@Test
|
||||
public void supportsParameter() {
|
||||
void supportsParameter() {
|
||||
|
||||
assertThat(this.resolver.supportsParameter(this.streamParameter)).isTrue();
|
||||
assertThat(this.resolver.supportsParameter(this.eventParameter)).isTrue();
|
||||
@@ -64,7 +64,7 @@ public class StaxPayloadMethodArgumentResolverTests extends AbstractMethodArgume
|
||||
}
|
||||
|
||||
@Test
|
||||
public void resolveStreamReaderSaaj() throws Exception {
|
||||
void resolveStreamReaderSaaj() throws Exception {
|
||||
|
||||
MessageContext messageContext = createSaajMessageContext();
|
||||
|
||||
@@ -74,7 +74,7 @@ public class StaxPayloadMethodArgumentResolverTests extends AbstractMethodArgume
|
||||
}
|
||||
|
||||
@Test
|
||||
public void resolveStreamReaderAxiomCaching() throws Exception {
|
||||
void resolveStreamReaderAxiomCaching() throws Exception {
|
||||
|
||||
MessageContext messageContext = createCachingAxiomMessageContext();
|
||||
|
||||
@@ -84,7 +84,7 @@ public class StaxPayloadMethodArgumentResolverTests extends AbstractMethodArgume
|
||||
}
|
||||
|
||||
@Test
|
||||
public void resolveStreamReaderAxiomNonCaching() throws Exception {
|
||||
void resolveStreamReaderAxiomNonCaching() throws Exception {
|
||||
|
||||
MessageContext messageContext = createNonCachingAxiomMessageContext();
|
||||
|
||||
@@ -94,7 +94,7 @@ public class StaxPayloadMethodArgumentResolverTests extends AbstractMethodArgume
|
||||
}
|
||||
|
||||
@Test
|
||||
public void resolveStreamReaderStream() throws Exception {
|
||||
void resolveStreamReaderStream() throws Exception {
|
||||
|
||||
MessageContext messageContext = createMockMessageContext();
|
||||
|
||||
@@ -104,7 +104,7 @@ public class StaxPayloadMethodArgumentResolverTests extends AbstractMethodArgume
|
||||
}
|
||||
|
||||
@Test
|
||||
public void resolveEventReaderSaaj() throws Exception {
|
||||
void resolveEventReaderSaaj() throws Exception {
|
||||
|
||||
MessageContext messageContext = createSaajMessageContext();
|
||||
|
||||
@@ -114,7 +114,7 @@ public class StaxPayloadMethodArgumentResolverTests extends AbstractMethodArgume
|
||||
}
|
||||
|
||||
@Test
|
||||
public void resolveEventReaderAxiomCaching() throws Exception {
|
||||
void resolveEventReaderAxiomCaching() throws Exception {
|
||||
|
||||
MessageContext messageContext = createCachingAxiomMessageContext();
|
||||
|
||||
@@ -124,7 +124,7 @@ public class StaxPayloadMethodArgumentResolverTests extends AbstractMethodArgume
|
||||
}
|
||||
|
||||
@Test
|
||||
public void resolveEventReaderAxiomNonCaching() throws Exception {
|
||||
void resolveEventReaderAxiomNonCaching() throws Exception {
|
||||
|
||||
MessageContext messageContext = createNonCachingAxiomMessageContext();
|
||||
|
||||
@@ -134,7 +134,7 @@ public class StaxPayloadMethodArgumentResolverTests extends AbstractMethodArgume
|
||||
}
|
||||
|
||||
@Test
|
||||
public void resolveEventReaderStream() throws Exception {
|
||||
void resolveEventReaderStream() throws Exception {
|
||||
|
||||
MessageContext messageContext = createMockMessageContext();
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ import org.springframework.ws.server.endpoint.annotation.XPathParam;
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
@Namespaces(@Namespace(prefix = "tns", uri = "http://springframework.org/spring-ws"))
|
||||
public class XPathParamMethodArgumentResolverTests {
|
||||
class XPathParamMethodArgumentResolverTests {
|
||||
|
||||
private static final String CONTENTS = "<root><child><text>text</text><number>42</number></child></root>";
|
||||
|
||||
@@ -60,7 +60,7 @@ public class XPathParamMethodArgumentResolverTests {
|
||||
private MethodParameter namespaceClassParameter;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() throws Exception {
|
||||
void setUp() throws Exception {
|
||||
|
||||
this.resolver = new XPathParamMethodArgumentResolver();
|
||||
Method supportedTypes = getClass().getMethod("supportedTypes", Boolean.TYPE, Double.TYPE, Node.class,
|
||||
@@ -77,7 +77,7 @@ public class XPathParamMethodArgumentResolverTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void supportsParameter() {
|
||||
void supportsParameter() {
|
||||
|
||||
assertThat(this.resolver.supportsParameter(this.booleanParameter)).isTrue();
|
||||
assertThat(this.resolver.supportsParameter(this.doubleParameter)).isTrue();
|
||||
@@ -89,7 +89,7 @@ public class XPathParamMethodArgumentResolverTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void resolveBoolean() throws Exception {
|
||||
void resolveBoolean() throws Exception {
|
||||
|
||||
MockWebServiceMessage request = new MockWebServiceMessage(CONTENTS);
|
||||
MessageContext messageContext = new DefaultMessageContext(request, new MockWebServiceMessageFactory());
|
||||
@@ -104,7 +104,7 @@ public class XPathParamMethodArgumentResolverTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void resolveDouble() throws Exception {
|
||||
void resolveDouble() throws Exception {
|
||||
|
||||
MockWebServiceMessage request = new MockWebServiceMessage(CONTENTS);
|
||||
MessageContext messageContext = new DefaultMessageContext(request, new MockWebServiceMessageFactory());
|
||||
@@ -119,7 +119,7 @@ public class XPathParamMethodArgumentResolverTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void resolveNode() throws Exception {
|
||||
void resolveNode() throws Exception {
|
||||
|
||||
MockWebServiceMessage request = new MockWebServiceMessage(CONTENTS);
|
||||
MessageContext messageContext = new DefaultMessageContext(request, new MockWebServiceMessageFactory());
|
||||
@@ -134,7 +134,7 @@ public class XPathParamMethodArgumentResolverTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void resolveNodeList() throws Exception {
|
||||
void resolveNodeList() throws Exception {
|
||||
|
||||
MockWebServiceMessage request = new MockWebServiceMessage(CONTENTS);
|
||||
MessageContext messageContext = new DefaultMessageContext(request, new MockWebServiceMessageFactory());
|
||||
@@ -150,7 +150,7 @@ public class XPathParamMethodArgumentResolverTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void resolveString() throws Exception {
|
||||
void resolveString() throws Exception {
|
||||
|
||||
MockWebServiceMessage request = new MockWebServiceMessage(CONTENTS);
|
||||
MessageContext messageContext = new DefaultMessageContext(request, new MockWebServiceMessageFactory());
|
||||
@@ -165,7 +165,7 @@ public class XPathParamMethodArgumentResolverTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void resolveConvertedType() throws Exception {
|
||||
void resolveConvertedType() throws Exception {
|
||||
|
||||
MockWebServiceMessage request = new MockWebServiceMessage(CONTENTS);
|
||||
MessageContext messageContext = new DefaultMessageContext(request, new MockWebServiceMessageFactory());
|
||||
@@ -177,7 +177,7 @@ public class XPathParamMethodArgumentResolverTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void resolveNamespacesMethod() throws Exception {
|
||||
void resolveNamespacesMethod() throws Exception {
|
||||
|
||||
MockWebServiceMessage request = new MockWebServiceMessage(
|
||||
"<root xmlns=\"http://springframework.org/spring-ws\">text</root>");
|
||||
@@ -190,7 +190,7 @@ public class XPathParamMethodArgumentResolverTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void resolveNamespacesClass() throws Exception {
|
||||
void resolveNamespacesClass() throws Exception {
|
||||
|
||||
MockWebServiceMessage request = new MockWebServiceMessage(
|
||||
"<root xmlns=\"http://springframework.org/spring-ws\">text</root>");
|
||||
|
||||
@@ -28,7 +28,7 @@ import org.springframework.ws.server.endpoint.annotation.ResponsePayload;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class Dom4jPayloadMethodProcessorTests extends AbstractPayloadMethodProcessorTests {
|
||||
class Dom4jPayloadMethodProcessorTests extends AbstractPayloadMethodProcessorTests {
|
||||
|
||||
@Override
|
||||
protected AbstractPayloadSourceMethodProcessor createProcessor() {
|
||||
|
||||
@@ -32,7 +32,7 @@ import org.springframework.xml.DocumentBuilderFactoryUtils;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class DomPayloadMethodProcessorTests extends AbstractPayloadMethodProcessorTests {
|
||||
class DomPayloadMethodProcessorTests extends AbstractPayloadMethodProcessorTests {
|
||||
|
||||
@Override
|
||||
protected AbstractPayloadSourceMethodProcessor createProcessor() {
|
||||
|
||||
@@ -26,7 +26,7 @@ import org.springframework.ws.server.endpoint.annotation.ResponsePayload;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class JDomPayloadMethodProcessorTests extends AbstractPayloadMethodProcessorTests {
|
||||
class JDomPayloadMethodProcessorTests extends AbstractPayloadMethodProcessorTests {
|
||||
|
||||
@Override
|
||||
protected AbstractPayloadSourceMethodProcessor createProcessor() {
|
||||
|
||||
@@ -26,7 +26,7 @@ import org.springframework.ws.server.endpoint.annotation.ResponsePayload;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class XomPayloadMethodProcessorTests extends AbstractPayloadMethodProcessorTests {
|
||||
class XomPayloadMethodProcessorTests extends AbstractPayloadMethodProcessorTests {
|
||||
|
||||
@Override
|
||||
protected AbstractPayloadSourceMethodProcessor createProcessor() {
|
||||
|
||||
@@ -37,7 +37,7 @@ import org.springframework.ws.server.endpoint.annotation.ResponsePayload;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class JaxbElementPayloadMethodProcessorTests {
|
||||
class JaxbElementPayloadMethodProcessorTests {
|
||||
|
||||
private JaxbElementPayloadMethodProcessor processor;
|
||||
|
||||
@@ -48,7 +48,7 @@ public class JaxbElementPayloadMethodProcessorTests {
|
||||
private MethodParameter stringReturnType;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() throws Exception {
|
||||
void setUp() throws Exception {
|
||||
|
||||
this.processor = new JaxbElementPayloadMethodProcessor();
|
||||
this.supportedParameter = new MethodParameter(getClass().getMethod("supported", JAXBElement.class), 0);
|
||||
@@ -57,17 +57,17 @@ public class JaxbElementPayloadMethodProcessorTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void supportsParameter() {
|
||||
void supportsParameter() {
|
||||
assertThat(this.processor.supportsParameter(this.supportedParameter)).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void supportsReturnType() {
|
||||
void supportsReturnType() {
|
||||
assertThat(this.processor.supportsReturnType(this.supportedReturnType)).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void resolveArgument() throws JAXBException {
|
||||
void resolveArgument() throws JAXBException {
|
||||
|
||||
WebServiceMessage request = new MockWebServiceMessage(
|
||||
"<myType xmlns='http://springframework.org'><string>Foo</string></myType>");
|
||||
@@ -83,7 +83,7 @@ public class JaxbElementPayloadMethodProcessorTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void handleReturnValue() throws Exception {
|
||||
void handleReturnValue() throws Exception {
|
||||
|
||||
MessageContext messageContext = new DefaultMessageContext(new MockWebServiceMessageFactory());
|
||||
|
||||
@@ -104,7 +104,7 @@ public class JaxbElementPayloadMethodProcessorTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void handleReturnValueString() throws Exception {
|
||||
void handleReturnValueString() throws Exception {
|
||||
|
||||
MessageContext messageContext = new DefaultMessageContext(new MockWebServiceMessageFactory());
|
||||
|
||||
@@ -124,7 +124,7 @@ public class JaxbElementPayloadMethodProcessorTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void handleNullReturnValue() throws Exception {
|
||||
void handleNullReturnValue() throws Exception {
|
||||
|
||||
MessageContext messageContext = new DefaultMessageContext(new MockWebServiceMessageFactory());
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ import org.springframework.xml.sax.AbstractXmlReader;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class XmlRootElementPayloadMethodProcessorTests {
|
||||
class XmlRootElementPayloadMethodProcessorTests {
|
||||
|
||||
private XmlRootElementPayloadMethodProcessor processor;
|
||||
|
||||
@@ -58,7 +58,7 @@ public class XmlRootElementPayloadMethodProcessorTests {
|
||||
private MethodParameter rootElementReturnType;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() throws Exception {
|
||||
void setUp() throws Exception {
|
||||
|
||||
this.processor = new XmlRootElementPayloadMethodProcessor();
|
||||
this.rootElementParameter = new MethodParameter(getClass().getMethod("rootElement", MyRootElement.class), 0);
|
||||
@@ -67,20 +67,20 @@ public class XmlRootElementPayloadMethodProcessorTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void supportsParameter() {
|
||||
void supportsParameter() {
|
||||
|
||||
assertThat(this.processor.supportsParameter(this.rootElementParameter)).isTrue();
|
||||
assertThat(this.processor.supportsParameter(this.typeParameter)).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void supportsReturnType() {
|
||||
void supportsReturnType() {
|
||||
|
||||
assertThat(this.processor.supportsReturnType(this.rootElementReturnType)).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void resolveArgumentRootElement() throws JAXBException {
|
||||
void resolveArgumentRootElement() throws JAXBException {
|
||||
|
||||
WebServiceMessage request = new MockWebServiceMessage(
|
||||
"<root xmlns='http://springframework.org'><string>Foo</string></root>");
|
||||
@@ -96,7 +96,7 @@ public class XmlRootElementPayloadMethodProcessorTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void resolveArgumentType() throws JAXBException {
|
||||
void resolveArgumentType() throws JAXBException {
|
||||
|
||||
WebServiceMessage request = new MockWebServiceMessage(
|
||||
"<type xmlns='http://springframework.org'><string>Foo</string></type>");
|
||||
@@ -112,7 +112,7 @@ public class XmlRootElementPayloadMethodProcessorTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void resolveArgumentFromCustomSAXSource() throws JAXBException {
|
||||
void resolveArgumentFromCustomSAXSource() throws JAXBException {
|
||||
|
||||
// Create a custom SAXSource that generates an appropriate sequence of events.
|
||||
XMLReader xmlReader = new AbstractXmlReader() {
|
||||
@@ -179,7 +179,7 @@ public class XmlRootElementPayloadMethodProcessorTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void handleReturnValue() throws Exception {
|
||||
void handleReturnValue() throws Exception {
|
||||
|
||||
MessageContext messageContext = new DefaultMessageContext(new MockWebServiceMessageFactory());
|
||||
|
||||
@@ -198,7 +198,7 @@ public class XmlRootElementPayloadMethodProcessorTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void handleNullReturnValue() throws Exception {
|
||||
void handleNullReturnValue() throws Exception {
|
||||
|
||||
MessageContext messageContext = new DefaultMessageContext(new MockWebServiceMessageFactory());
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ import org.springframework.xml.transform.TransformerFactoryUtils;
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
|
||||
|
||||
public class PayloadTransformingInterceptorTests {
|
||||
class PayloadTransformingInterceptorTests {
|
||||
|
||||
private PayloadTransformingInterceptor interceptor;
|
||||
|
||||
@@ -57,7 +57,7 @@ public class PayloadTransformingInterceptorTests {
|
||||
private Resource xslt;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() throws Exception {
|
||||
void setUp() throws Exception {
|
||||
|
||||
this.interceptor = new PayloadTransformingInterceptor();
|
||||
TransformerFactory transformerFactory = TransformerFactoryUtils.newInstance();
|
||||
@@ -68,7 +68,7 @@ public class PayloadTransformingInterceptorTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testHandleRequest() throws Exception {
|
||||
void testHandleRequest() throws Exception {
|
||||
|
||||
this.interceptor.setRequestXslt(this.xslt);
|
||||
this.interceptor.afterPropertiesSet();
|
||||
@@ -86,7 +86,7 @@ public class PayloadTransformingInterceptorTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testHandleRequestNoXslt() throws Exception {
|
||||
void testHandleRequestNoXslt() throws Exception {
|
||||
|
||||
this.interceptor.setResponseXslt(this.xslt);
|
||||
this.interceptor.afterPropertiesSet();
|
||||
@@ -103,7 +103,7 @@ public class PayloadTransformingInterceptorTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testHandleResponse() throws Exception {
|
||||
void testHandleResponse() throws Exception {
|
||||
|
||||
this.interceptor.setResponseXslt(this.xslt);
|
||||
this.interceptor.afterPropertiesSet();
|
||||
@@ -123,7 +123,7 @@ public class PayloadTransformingInterceptorTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testHandleResponseNoXslt() throws Exception {
|
||||
void testHandleResponseNoXslt() throws Exception {
|
||||
|
||||
this.interceptor.setRequestXslt(this.xslt);
|
||||
this.interceptor.afterPropertiesSet();
|
||||
@@ -143,7 +143,7 @@ public class PayloadTransformingInterceptorTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSaaj() throws Exception {
|
||||
void testSaaj() throws Exception {
|
||||
|
||||
this.interceptor.setRequestXslt(this.xslt);
|
||||
this.interceptor.afterPropertiesSet();
|
||||
@@ -164,7 +164,7 @@ public class PayloadTransformingInterceptorTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testPox() throws Exception {
|
||||
void testPox() throws Exception {
|
||||
|
||||
this.interceptor.setRequestXslt(this.xslt);
|
||||
this.interceptor.afterPropertiesSet();
|
||||
@@ -185,7 +185,7 @@ public class PayloadTransformingInterceptorTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNoStylesheetsSet() {
|
||||
void testNoStylesheetsSet() {
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> this.interceptor.afterPropertiesSet());
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration("bridged-method-registration.xml")
|
||||
public class BridgedMethodRegistrationTests {
|
||||
class BridgedMethodRegistrationTests {
|
||||
|
||||
@Autowired
|
||||
private PayloadRootAnnotationMethodEndpointMapping mapping;
|
||||
@@ -44,7 +44,7 @@ public class BridgedMethodRegistrationTests {
|
||||
private ApplicationContext applicationContext;
|
||||
|
||||
@Test
|
||||
public void registration() throws NoSuchMethodException {
|
||||
void registration() throws NoSuchMethodException {
|
||||
|
||||
MethodEndpoint bridgedMethod = this.mapping
|
||||
.lookupEndpoint(new QName("http://springframework.org/spring-ws", "Request"));
|
||||
|
||||
@@ -37,7 +37,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration("cglib-proxy-registration.xml")
|
||||
public class CgLibProxyRegistrationTests {
|
||||
class CgLibProxyRegistrationTests {
|
||||
|
||||
@Autowired
|
||||
private PayloadRootAnnotationMethodEndpointMapping mapping;
|
||||
@@ -46,7 +46,7 @@ public class CgLibProxyRegistrationTests {
|
||||
private ApplicationContext applicationContext;
|
||||
|
||||
@Test
|
||||
public void registration() throws NoSuchMethodException {
|
||||
void registration() throws NoSuchMethodException {
|
||||
|
||||
MethodEndpoint cglibProxy = this.mapping
|
||||
.lookupEndpoint(new QName("http://springframework.org/spring-ws", "Request"));
|
||||
|
||||
@@ -37,17 +37,17 @@ import static org.mockito.Mockito.verify;
|
||||
/**
|
||||
* Test case for {@link AbstractEndpointMapping}.
|
||||
*/
|
||||
public class EndpointMappingTests {
|
||||
class EndpointMappingTests {
|
||||
|
||||
private MessageContext messageContext;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() {
|
||||
void setUp() {
|
||||
this.messageContext = new DefaultMessageContext(new MockWebServiceMessageFactory());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void defaultEndpoint() throws Exception {
|
||||
void defaultEndpoint() throws Exception {
|
||||
|
||||
Object defaultEndpoint = new Object();
|
||||
AbstractEndpointMapping mapping = new AbstractEndpointMapping() {
|
||||
@@ -66,7 +66,7 @@ public class EndpointMappingTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void endpoint() throws Exception {
|
||||
void endpoint() throws Exception {
|
||||
|
||||
final Object endpoint = new Object();
|
||||
AbstractEndpointMapping mapping = new AbstractEndpointMapping() {
|
||||
@@ -84,7 +84,7 @@ public class EndpointMappingTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void endpointInterceptors() throws Exception {
|
||||
void endpointInterceptors() throws Exception {
|
||||
|
||||
final Object endpoint = new Object();
|
||||
EndpointInterceptor interceptor = new EndpointInterceptorAdapter();
|
||||
@@ -104,7 +104,7 @@ public class EndpointMappingTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void smartEndpointInterceptors() throws Exception {
|
||||
void smartEndpointInterceptors() throws Exception {
|
||||
|
||||
StaticApplicationContext applicationContext = new StaticApplicationContext();
|
||||
applicationContext.registerSingleton("smartInterceptor", MySmartEndpointInterceptor.class);
|
||||
@@ -178,7 +178,7 @@ public class EndpointMappingTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void endpointBeanName() throws Exception {
|
||||
void endpointBeanName() throws Exception {
|
||||
|
||||
StaticApplicationContext applicationContext = new StaticApplicationContext();
|
||||
applicationContext.registerSingleton("endpoint", Object.class);
|
||||
@@ -199,7 +199,7 @@ public class EndpointMappingTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void endpointInvalidBeanName() throws Exception {
|
||||
void endpointInvalidBeanName() throws Exception {
|
||||
|
||||
StaticApplicationContext applicationContext = new StaticApplicationContext();
|
||||
applicationContext.registerSingleton("endpoint", Object.class);
|
||||
@@ -220,7 +220,7 @@ public class EndpointMappingTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void endpointPrototype() throws Exception {
|
||||
void endpointPrototype() throws Exception {
|
||||
|
||||
StaticApplicationContext applicationContext = new StaticApplicationContext();
|
||||
applicationContext.registerPrototype("endpoint", MyEndpoint.class);
|
||||
|
||||
@@ -37,7 +37,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration("jdk-proxy-registration.xml")
|
||||
public class JdkProxyRegistrationTests {
|
||||
class JdkProxyRegistrationTests {
|
||||
|
||||
@Autowired
|
||||
private PayloadRootAnnotationMethodEndpointMapping mapping;
|
||||
@@ -46,7 +46,7 @@ public class JdkProxyRegistrationTests {
|
||||
private ApplicationContext applicationContext;
|
||||
|
||||
@Test
|
||||
public void registration() throws NoSuchMethodException {
|
||||
void registration() throws NoSuchMethodException {
|
||||
|
||||
MethodEndpoint jdkProxy = this.mapping
|
||||
.lookupEndpoint(new QName("http://springframework.org/spring-ws", "Request"));
|
||||
|
||||
@@ -30,10 +30,10 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
/**
|
||||
* Test case for AbstractMapBasedEndpointMapping.
|
||||
*/
|
||||
public class MapBasedSoapEndpointMappingTests {
|
||||
class MapBasedSoapEndpointMappingTests {
|
||||
|
||||
@Test
|
||||
public void testBeanNames() throws Exception {
|
||||
void testBeanNames() throws Exception {
|
||||
|
||||
StaticApplicationContext context = new StaticApplicationContext();
|
||||
context.registerSingleton("endpointMapping", MyMapBasedEndpointMapping.class);
|
||||
@@ -60,7 +60,7 @@ public class MapBasedSoapEndpointMappingTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testDisabledBeanNames() throws Exception {
|
||||
void testDisabledBeanNames() throws Exception {
|
||||
|
||||
StaticApplicationContext context = new StaticApplicationContext();
|
||||
context.registerSingleton("endpoint", Object.class);
|
||||
@@ -75,7 +75,7 @@ public class MapBasedSoapEndpointMappingTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testEndpointMap() throws Exception {
|
||||
void testEndpointMap() throws Exception {
|
||||
|
||||
Map<String, Object> endpointMap = new TreeMap<>();
|
||||
Object endpoint1 = new Object();
|
||||
@@ -108,11 +108,11 @@ public class MapBasedSoapEndpointMappingTests {
|
||||
|
||||
private String[] validKeys = new String[0];
|
||||
|
||||
public void setKey(String key) {
|
||||
void setKey(String key) {
|
||||
this.key = key;
|
||||
}
|
||||
|
||||
public void setValidKeys(String[] validKeys) {
|
||||
void setValidKeys(String[] validKeys) {
|
||||
|
||||
this.validKeys = validKeys;
|
||||
Arrays.sort(this.validKeys);
|
||||
|
||||
@@ -49,7 +49,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration("payloadRootAnnotationMethodEndpointMapping.xml")
|
||||
public class PayloadRootAnnotationMethodEndpointMappingTests {
|
||||
class PayloadRootAnnotationMethodEndpointMappingTests {
|
||||
|
||||
@Autowired
|
||||
private PayloadRootAnnotationMethodEndpointMapping mapping;
|
||||
@@ -58,7 +58,7 @@ public class PayloadRootAnnotationMethodEndpointMappingTests {
|
||||
private ApplicationContext applicationContext;
|
||||
|
||||
@Test
|
||||
public void registrationSingle() throws NoSuchMethodException {
|
||||
void registrationSingle() throws NoSuchMethodException {
|
||||
|
||||
MethodEndpoint endpoint = this.mapping
|
||||
.lookupEndpoint(new QName("http://springframework.org/spring-ws", "Request"));
|
||||
@@ -72,7 +72,7 @@ public class PayloadRootAnnotationMethodEndpointMappingTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void registrationMultiple() throws NoSuchMethodException {
|
||||
void registrationMultiple() throws NoSuchMethodException {
|
||||
|
||||
Method doItMultiple = MyEndpoint.class.getMethod("doItMultiple");
|
||||
MethodEndpoint expected = new MethodEndpoint("endpoint", this.applicationContext, doItMultiple);
|
||||
@@ -90,7 +90,7 @@ public class PayloadRootAnnotationMethodEndpointMappingTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void registrationRepeatable() throws NoSuchMethodException {
|
||||
void registrationRepeatable() throws NoSuchMethodException {
|
||||
|
||||
Method doItMultiple = MyEndpoint.class.getMethod("doItRepeatable");
|
||||
MethodEndpoint expected = new MethodEndpoint("endpoint", this.applicationContext, doItMultiple);
|
||||
@@ -108,12 +108,12 @@ public class PayloadRootAnnotationMethodEndpointMappingTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void registrationInvalid() {
|
||||
void registrationInvalid() {
|
||||
assertThat(this.mapping.lookupEndpoint(new QName("http://springframework.org/spring-ws", "Invalid"))).isNull();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void invoke() throws Exception {
|
||||
void invoke() throws Exception {
|
||||
|
||||
MessageFactory messageFactory = MessageFactory.newInstance();
|
||||
SOAPMessage request = messageFactory.createMessage();
|
||||
|
||||
@@ -28,17 +28,17 @@ import org.springframework.ws.context.MessageContext;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class PayloadRootQNameEndpointMappingTests {
|
||||
class PayloadRootQNameEndpointMappingTests {
|
||||
|
||||
private PayloadRootQNameEndpointMapping mapping;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() {
|
||||
void setUp() {
|
||||
this.mapping = new PayloadRootQNameEndpointMapping();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testResolveQNames() throws Exception {
|
||||
void testResolveQNames() throws Exception {
|
||||
|
||||
MockWebServiceMessage request = new MockWebServiceMessage("<root/>");
|
||||
MessageContext context = new DefaultMessageContext(request, new MockWebServiceMessageFactory());
|
||||
@@ -50,7 +50,7 @@ public class PayloadRootQNameEndpointMappingTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetQNameNameNamespace() throws Exception {
|
||||
void testGetQNameNameNamespace() throws Exception {
|
||||
|
||||
MockWebServiceMessage request = new MockWebServiceMessage("<prefix:localname xmlns:prefix=\"namespace\"/>");
|
||||
MessageContext context = new DefaultMessageContext(request, new MockWebServiceMessageFactory());
|
||||
|
||||
@@ -26,12 +26,12 @@ import org.springframework.ws.context.MessageContext;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class SimpleMethodEndpointMappingTests {
|
||||
class SimpleMethodEndpointMappingTests {
|
||||
|
||||
private SimpleMethodEndpointMapping mapping;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() throws Exception {
|
||||
void setUp() throws Exception {
|
||||
|
||||
this.mapping = new SimpleMethodEndpointMapping();
|
||||
this.mapping.setMethodPrefix("prefix");
|
||||
@@ -44,14 +44,14 @@ public class SimpleMethodEndpointMappingTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testRegistration() {
|
||||
void testRegistration() {
|
||||
|
||||
assertThat(this.mapping.lookupEndpoint("MyRequest")).isNotNull();
|
||||
assertThat(this.mapping.lookupEndpoint("request")).isNull();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetLookupKeyForMessageNoNamespace() throws Exception {
|
||||
void testGetLookupKeyForMessageNoNamespace() throws Exception {
|
||||
|
||||
MockWebServiceMessage request = new MockWebServiceMessage("<MyRequest/>");
|
||||
MessageContext messageContext = new DefaultMessageContext(request, new MockWebServiceMessageFactory());
|
||||
@@ -60,7 +60,7 @@ public class SimpleMethodEndpointMappingTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetLookupKeyForMessageNamespace() throws Exception {
|
||||
void testGetLookupKeyForMessageNamespace() throws Exception {
|
||||
|
||||
MockWebServiceMessage request = new MockWebServiceMessage(
|
||||
"<MyRequest xmlns='http://springframework.org/spring-ws/' />");
|
||||
|
||||
@@ -35,26 +35,26 @@ import static org.easymock.EasyMock.expect;
|
||||
import static org.easymock.EasyMock.replay;
|
||||
import static org.easymock.EasyMock.verify;
|
||||
|
||||
public class UriEndpointMappingTests {
|
||||
class UriEndpointMappingTests {
|
||||
|
||||
private UriEndpointMapping mapping;
|
||||
|
||||
private MessageContext context;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() {
|
||||
void setUp() {
|
||||
|
||||
this.mapping = new UriEndpointMapping();
|
||||
this.context = new DefaultMessageContext(new MockWebServiceMessageFactory());
|
||||
}
|
||||
|
||||
@AfterEach
|
||||
public void clearContext() {
|
||||
void clearContext() {
|
||||
TransportContextHolder.setTransportContext(null);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getLookupKeyForMessage() throws Exception {
|
||||
void getLookupKeyForMessage() throws Exception {
|
||||
|
||||
WebServiceConnection connectionMock = createMock(WebServiceConnection.class);
|
||||
TransportContextHolder.setTransportContext(new DefaultTransportContext(connectionMock));
|
||||
@@ -70,7 +70,7 @@ public class UriEndpointMappingTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getLookupKeyForMessagePath() throws Exception {
|
||||
void getLookupKeyForMessagePath() throws Exception {
|
||||
|
||||
this.mapping.setUsePath(true);
|
||||
|
||||
@@ -88,7 +88,7 @@ public class UriEndpointMappingTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testValidateLookupKey() {
|
||||
void testValidateLookupKey() {
|
||||
|
||||
assertThat(this.mapping.validateLookupKey("http://example.com/services")).isTrue();
|
||||
assertThat(this.mapping.validateLookupKey("some string")).isFalse();
|
||||
|
||||
@@ -26,17 +26,17 @@ import org.springframework.ws.context.MessageContext;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class XPathPayloadEndpointMappingTests {
|
||||
class XPathPayloadEndpointMappingTests {
|
||||
|
||||
private XPathPayloadEndpointMapping mapping;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() {
|
||||
void setUp() {
|
||||
this.mapping = new XPathPayloadEndpointMapping();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetLookupKeyForMessage() throws Exception {
|
||||
void testGetLookupKeyForMessage() throws Exception {
|
||||
|
||||
this.mapping.setExpression("/root/text()");
|
||||
this.mapping.afterPropertiesSet();
|
||||
|
||||
@@ -26,17 +26,17 @@ import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class XmlRootElementEndpointMappingTests {
|
||||
class XmlRootElementEndpointMappingTests {
|
||||
|
||||
private XmlRootElementEndpointMapping mapping;
|
||||
|
||||
@BeforeEach
|
||||
public void createMapping() {
|
||||
void createMapping() {
|
||||
this.mapping = new XmlRootElementEndpointMapping();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void rootElement() throws NoSuchMethodException {
|
||||
void rootElement() throws NoSuchMethodException {
|
||||
|
||||
Method rootElement = getClass().getMethod("rootElement", MyRootElement.class);
|
||||
QName name = this.mapping.getLookupKeyForMethod(rootElement);
|
||||
|
||||
@@ -29,10 +29,10 @@ import org.springframework.ws.server.endpoint.annotation.Namespaces;
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
@Namespaces({ @Namespace(prefix = "prefix1", uri = "class1"), @Namespace(uri = "class2") })
|
||||
public class NamespaceUtilsTests {
|
||||
class NamespaceUtilsTests {
|
||||
|
||||
@Test
|
||||
public void getNamespaceContextMethod() throws NoSuchMethodException {
|
||||
void getNamespaceContextMethod() throws NoSuchMethodException {
|
||||
|
||||
Method method = getClass().getMethod("method");
|
||||
NamespaceContext namespaceContext = NamespaceUtils.getNamespaceContext(method);
|
||||
@@ -43,9 +43,9 @@ public class NamespaceUtilsTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getNamespaceContextClass() throws NoSuchMethodException {
|
||||
void getNamespaceContextClass() throws NoSuchMethodException {
|
||||
|
||||
Method method = getClass().getMethod("getNamespaceContextClass");
|
||||
Method method = getClass().getDeclaredMethod("getNamespaceContextClass");
|
||||
NamespaceContext namespaceContext = NamespaceUtils.getNamespaceContext(method);
|
||||
|
||||
assertThat(namespaceContext.getNamespaceURI("prefix1")).isEqualTo("class1");
|
||||
|
||||
@@ -41,10 +41,10 @@ import org.springframework.xml.transform.TransformerFactoryUtils;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class PayloadRootUtilsTests {
|
||||
class PayloadRootUtilsTests {
|
||||
|
||||
@Test
|
||||
public void testGetQNameForDomSource() throws Exception {
|
||||
void testGetQNameForDomSource() throws Exception {
|
||||
|
||||
DocumentBuilderFactory factory = DocumentBuilderFactoryUtils.newInstance();
|
||||
DocumentBuilder builder = factory.newDocumentBuilder();
|
||||
@@ -61,7 +61,7 @@ public class PayloadRootUtilsTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetQNameForStaxSourceStreamReader() throws Exception {
|
||||
void testGetQNameForStaxSourceStreamReader() throws Exception {
|
||||
|
||||
String contents = "<prefix:localname xmlns:prefix='namespace'/>";
|
||||
XMLInputFactory inputFactory = XMLInputFactoryUtils.newInstance();
|
||||
@@ -76,7 +76,7 @@ public class PayloadRootUtilsTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetQNameForStaxSourceEventReader() throws Exception {
|
||||
void testGetQNameForStaxSourceEventReader() throws Exception {
|
||||
|
||||
String contents = "<prefix:localname xmlns:prefix='namespace'/>";
|
||||
XMLInputFactory inputFactory = XMLInputFactoryUtils.newInstance();
|
||||
@@ -91,7 +91,7 @@ public class PayloadRootUtilsTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetQNameForStreamSource() throws Exception {
|
||||
void testGetQNameForStreamSource() throws Exception {
|
||||
String contents = "<prefix:localname xmlns:prefix='namespace'/>";
|
||||
Source source = new StreamSource(new StringReader(contents));
|
||||
QName qName = PayloadRootUtils.getPayloadRootQName(source, TransformerFactoryUtils.newInstance());
|
||||
@@ -103,7 +103,7 @@ public class PayloadRootUtilsTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetQNameForSaxSource() throws Exception {
|
||||
void testGetQNameForSaxSource() throws Exception {
|
||||
String contents = "<prefix:localname xmlns:prefix='namespace'/>";
|
||||
Source source = new SAXSource(new InputSource(new StringReader(contents)));
|
||||
QName qName = PayloadRootUtils.getPayloadRootQName(source, TransformerFactoryUtils.newInstance());
|
||||
@@ -115,7 +115,7 @@ public class PayloadRootUtilsTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetQNameForNullSource() throws Exception {
|
||||
void testGetQNameForNullSource() throws Exception {
|
||||
|
||||
QName qName = PayloadRootUtils.getPayloadRootQName(null, TransformerFactoryUtils.newInstance());
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ public abstract class AbstractSoapBodyTests extends AbstractSoapElementTests {
|
||||
protected abstract SoapBody createSoapBody() throws Exception;
|
||||
|
||||
@Test
|
||||
public void testPayload() throws Exception {
|
||||
void testPayload() throws Exception {
|
||||
|
||||
String payload = "<payload xmlns='http://www.springframework.org' />";
|
||||
this.transformer.transform(new StringSource(payload), this.soapBody.getPayloadResult());
|
||||
@@ -54,7 +54,7 @@ public abstract class AbstractSoapBodyTests extends AbstractSoapElementTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetPayloadResultTwice() throws Exception {
|
||||
void testGetPayloadResultTwice() throws Exception {
|
||||
|
||||
String payload = "<payload xmlns='http://www.springframework.org' />";
|
||||
this.transformer.transform(new StringSource(payload), this.soapBody.getPayloadResult());
|
||||
@@ -68,12 +68,12 @@ public abstract class AbstractSoapBodyTests extends AbstractSoapElementTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNoFault() {
|
||||
void testNoFault() {
|
||||
assertThat(this.soapBody.hasFault()).isFalse();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAddFaultWithExistingPayload() throws Exception {
|
||||
void testAddFaultWithExistingPayload() throws Exception {
|
||||
|
||||
StringSource contents = new StringSource("<payload xmlns='http://www.springframework.org' />");
|
||||
this.transformer.transform(contents, this.soapBody.getPayloadResult());
|
||||
|
||||
@@ -46,7 +46,7 @@ public abstract class AbstractSoapElementTests {
|
||||
protected abstract SoapElement createSoapElement() throws Exception;
|
||||
|
||||
@Test
|
||||
public void testAttributes() {
|
||||
void testAttributes() {
|
||||
|
||||
QName name = new QName("http://springframework.org/spring-ws", "attribute");
|
||||
String value = "value";
|
||||
@@ -60,7 +60,7 @@ public abstract class AbstractSoapElementTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAddNamespaceDeclaration() {
|
||||
void testAddNamespaceDeclaration() {
|
||||
|
||||
String prefix = "p";
|
||||
String namespace = "http://springframework.org/spring-ws";
|
||||
@@ -68,7 +68,7 @@ public abstract class AbstractSoapElementTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAddDefaultNamespaceDeclaration() {
|
||||
void testAddDefaultNamespaceDeclaration() {
|
||||
|
||||
String prefix = "";
|
||||
String namespace = "http://springframework.org/spring-ws";
|
||||
|
||||
@@ -34,7 +34,7 @@ public abstract class AbstractSoapEnvelopeTests extends AbstractSoapElementTests
|
||||
protected abstract SoapEnvelope createSoapEnvelope() throws Exception;
|
||||
|
||||
@Test
|
||||
public void testGetHeader() {
|
||||
void testGetHeader() {
|
||||
|
||||
SoapHeader header = this.soapEnvelope.getHeader();
|
||||
|
||||
@@ -42,7 +42,7 @@ public abstract class AbstractSoapEnvelopeTests extends AbstractSoapElementTests
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetBody() {
|
||||
void testGetBody() {
|
||||
|
||||
SoapBody body = this.soapEnvelope.getBody();
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ public abstract class AbstractSoapHeaderTests extends AbstractSoapElementTests {
|
||||
protected abstract SoapHeader createSoapHeader() throws Exception;
|
||||
|
||||
@Test
|
||||
public void testAddHeaderElement() throws Exception {
|
||||
void testAddHeaderElement() throws Exception {
|
||||
|
||||
QName qName = new QName(NAMESPACE, "localName", PREFIX);
|
||||
SoapHeaderElement headerElement = this.soapHeader.addHeaderElement(qName);
|
||||
@@ -66,7 +66,7 @@ public abstract class AbstractSoapHeaderTests extends AbstractSoapElementTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testRemoveHeaderElement() {
|
||||
void testRemoveHeaderElement() {
|
||||
|
||||
QName qName = new QName(NAMESPACE, "localName", PREFIX);
|
||||
this.soapHeader.removeHeaderElement(qName);
|
||||
@@ -78,7 +78,7 @@ public abstract class AbstractSoapHeaderTests extends AbstractSoapElementTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testExamineAllHeaderElement() throws Exception {
|
||||
void testExamineAllHeaderElement() throws Exception {
|
||||
|
||||
QName qName = new QName(NAMESPACE, "localName", PREFIX);
|
||||
SoapHeaderElement headerElement = this.soapHeader.addHeaderElement(qName);
|
||||
@@ -108,7 +108,7 @@ public abstract class AbstractSoapHeaderTests extends AbstractSoapElementTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testExamineHeaderElementWithName() {
|
||||
void testExamineHeaderElementWithName() {
|
||||
|
||||
QName name1 = new QName(NAMESPACE, "name1", PREFIX);
|
||||
QName name2 = new QName(NAMESPACE, "name2", PREFIX);
|
||||
@@ -126,7 +126,7 @@ public abstract class AbstractSoapHeaderTests extends AbstractSoapElementTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testExamineMustUnderstandHeaderElements() {
|
||||
void testExamineMustUnderstandHeaderElements() {
|
||||
|
||||
QName qName1 = new QName(NAMESPACE, "localName1", PREFIX);
|
||||
SoapHeaderElement headerElement1 = this.soapHeader.addHeaderElement(qName1);
|
||||
@@ -150,7 +150,7 @@ public abstract class AbstractSoapHeaderTests extends AbstractSoapElementTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetResult() throws Exception {
|
||||
void testGetResult() throws Exception {
|
||||
|
||||
String content = "<spring:localName xmlns:spring='http://www.springframework.org'><spring:content/></spring:localName>";
|
||||
this.transformer.transform(new StringSource(content), this.soapHeader.getResult());
|
||||
|
||||
@@ -28,7 +28,7 @@ import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
||||
public abstract class AbstractSoapMessageFactoryTests extends AbstractWebServiceMessageFactoryTests {
|
||||
|
||||
@Test
|
||||
public void testCreateEmptySoapMessage() {
|
||||
void testCreateEmptySoapMessage() {
|
||||
|
||||
WebServiceMessage message = this.messageFactory.createWebServiceMessage();
|
||||
|
||||
@@ -36,22 +36,22 @@ public abstract class AbstractSoapMessageFactoryTests extends AbstractWebService
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCreateSoapMessageIllFormedXml() {
|
||||
void testCreateSoapMessageIllFormedXml() {
|
||||
assertThatExceptionOfType(InvalidXmlException.class).isThrownBy(this::doTestCreateSoapMessageIllFormedXml);
|
||||
}
|
||||
|
||||
public abstract void doTestCreateSoapMessageIllFormedXml() throws Exception;
|
||||
protected abstract void doTestCreateSoapMessageIllFormedXml() throws Exception;
|
||||
|
||||
@Test
|
||||
public abstract void testCreateSoapMessageNoAttachment() throws Exception;
|
||||
protected abstract void testCreateSoapMessageNoAttachment() throws Exception;
|
||||
|
||||
@Test
|
||||
public abstract void testCreateSoapMessageSwA() throws Exception;
|
||||
protected abstract void testCreateSoapMessageSwA() throws Exception;
|
||||
|
||||
@Test
|
||||
public abstract void testCreateSoapMessageMtom() throws Exception;
|
||||
protected abstract void testCreateSoapMessageMtom() throws Exception;
|
||||
|
||||
@Test
|
||||
public abstract void testCreateSoapMessageMissingContentType() throws Exception;
|
||||
protected abstract void testCreateSoapMessageMissingContentType() throws Exception;
|
||||
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ public abstract class AbstractSoapMessageTests extends AbstractMimeMessageTests
|
||||
protected abstract SoapMessage createSoapMessage() throws Exception;
|
||||
|
||||
@Test
|
||||
public void testValidate() throws Exception {
|
||||
void testValidate() throws Exception {
|
||||
|
||||
XmlValidator validator = XmlValidatorFactory.createValidator(getSoapSchemas(),
|
||||
XmlValidatorFactory.SCHEMA_W3C_XML);
|
||||
@@ -76,7 +76,7 @@ public abstract class AbstractSoapMessageTests extends AbstractMimeMessageTests
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSoapAction() {
|
||||
void testSoapAction() {
|
||||
|
||||
assertThat(this.soapMessage.getSoapAction()).isEqualTo("\"\"");
|
||||
|
||||
@@ -86,7 +86,7 @@ public abstract class AbstractSoapMessageTests extends AbstractMimeMessageTests
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCharsetAttribute() throws Exception {
|
||||
void testCharsetAttribute() throws Exception {
|
||||
|
||||
MockTransportOutputStream outputStream = new MockTransportOutputStream(new ByteArrayOutputStream());
|
||||
this.soapMessage.writeTo(outputStream);
|
||||
@@ -107,7 +107,7 @@ public abstract class AbstractSoapMessageTests extends AbstractMimeMessageTests
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSetStreamingPayload() throws Exception {
|
||||
void testSetStreamingPayload() throws Exception {
|
||||
|
||||
if (!(this.soapMessage instanceof StreamingWebServiceMessage streamingMessage)) {
|
||||
return;
|
||||
@@ -144,21 +144,21 @@ public abstract class AbstractSoapMessageTests extends AbstractMimeMessageTests
|
||||
protected abstract Resource[] getSoapSchemas();
|
||||
|
||||
@Test
|
||||
public abstract void testGetVersion();
|
||||
protected abstract void testGetVersion();
|
||||
|
||||
@Test
|
||||
public abstract void testWriteToTransportOutputStream() throws Exception;
|
||||
protected abstract void testWriteToTransportOutputStream() throws Exception;
|
||||
|
||||
@Test
|
||||
public abstract void testWriteToTransportResponseAttachment() throws Exception;
|
||||
protected abstract void testWriteToTransportResponseAttachment() throws Exception;
|
||||
|
||||
@Test
|
||||
public abstract void testToDocument() throws Exception;
|
||||
protected abstract void testToDocument() throws Exception;
|
||||
|
||||
@Test
|
||||
public abstract void testSetLiveDocument() throws Exception;
|
||||
protected abstract void testSetLiveDocument() throws Exception;
|
||||
|
||||
@Test
|
||||
public abstract void testSetOtherDocument() throws Exception;
|
||||
protected abstract void testSetOtherDocument() throws Exception;
|
||||
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ public abstract class AbstractWsAddressingTests {
|
||||
protected MessageFactory messageFactory;
|
||||
|
||||
@BeforeEach
|
||||
public void createMessageFactory() throws Exception {
|
||||
void createMessageFactory() throws Exception {
|
||||
this.messageFactory = MessageFactory.newInstance(SOAPConstants.SOAP_1_2_PROTOCOL);
|
||||
}
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ public abstract class AbstractActionCallbackTests extends AbstractWsAddressingTe
|
||||
private WebServiceConnection connectionMock;
|
||||
|
||||
@BeforeEach
|
||||
public void createMocks() {
|
||||
void createMocks() {
|
||||
|
||||
this.strategyMock = createMock(MessageIdStrategy.class);
|
||||
|
||||
@@ -64,12 +64,12 @@ public abstract class AbstractActionCallbackTests extends AbstractWsAddressingTe
|
||||
}
|
||||
|
||||
@AfterEach
|
||||
public void clearContext() {
|
||||
void clearContext() {
|
||||
TransportContextHolder.setTransportContext(null);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testValid() throws Exception {
|
||||
void testValid() throws Exception {
|
||||
|
||||
URI action = new URI("http://example.com/fabrikam/mail/Delete");
|
||||
URI to = new URI("mailto:fabrikam@example.com");
|
||||
@@ -91,7 +91,7 @@ public abstract class AbstractActionCallbackTests extends AbstractWsAddressingTe
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testDefaults() throws Exception {
|
||||
void testDefaults() throws Exception {
|
||||
|
||||
URI action = new URI("http://example.com/fabrikam/mail/Delete");
|
||||
URI connectionUri = new URI("mailto:fabrikam@example.com");
|
||||
@@ -116,7 +116,7 @@ public abstract class AbstractActionCallbackTests extends AbstractWsAddressingTe
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNotInitializeTo() throws Exception {
|
||||
void testNotInitializeTo() throws Exception {
|
||||
|
||||
URI action = new URI("http://example.com/fabrikam/mail/Delete");
|
||||
URI connectionUri = new URI("mailto:fabrikam@example.com");
|
||||
|
||||
@@ -19,7 +19,7 @@ package org.springframework.ws.soap.addressing.client;
|
||||
import org.springframework.ws.soap.addressing.version.Addressing10;
|
||||
import org.springframework.ws.soap.addressing.version.AddressingVersion;
|
||||
|
||||
public class ActionCallback10Tests extends AbstractActionCallbackTests {
|
||||
class ActionCallback10Tests extends AbstractActionCallbackTests {
|
||||
|
||||
@Override
|
||||
protected AddressingVersion getVersion() {
|
||||
|
||||
@@ -19,7 +19,7 @@ package org.springframework.ws.soap.addressing.client;
|
||||
import org.springframework.ws.soap.addressing.version.Addressing200408;
|
||||
import org.springframework.ws.soap.addressing.version.AddressingVersion;
|
||||
|
||||
public class ActionCallback200408Tests extends AbstractActionCallbackTests {
|
||||
class ActionCallback200408Tests extends AbstractActionCallbackTests {
|
||||
|
||||
@Override
|
||||
protected AddressingVersion getVersion() {
|
||||
|
||||
@@ -23,17 +23,17 @@ import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class UuidMessageIdStrategyTests {
|
||||
class UuidMessageIdStrategyTests {
|
||||
|
||||
private MessageIdStrategy strategy;
|
||||
|
||||
@BeforeEach
|
||||
public final void setUp() {
|
||||
final void setUp() {
|
||||
this.strategy = new UuidMessageIdStrategy();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testStrategy() {
|
||||
void testStrategy() {
|
||||
|
||||
URI messageId1 = this.strategy.newMessageId(null);
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ public abstract class AbstractAddressingInterceptorTests extends AbstractWsAddre
|
||||
protected MessageIdStrategy strategyMock;
|
||||
|
||||
@BeforeEach
|
||||
public void createMocks() throws Exception {
|
||||
void createMocks() throws Exception {
|
||||
|
||||
this.strategyMock = createMock(MessageIdStrategy.class);
|
||||
expect(this.strategyMock.isDuplicate(isA(URI.class))).andReturn(false).anyTimes();
|
||||
@@ -60,7 +60,7 @@ public abstract class AbstractAddressingInterceptorTests extends AbstractWsAddre
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testUnderstands() throws Exception {
|
||||
void testUnderstands() throws Exception {
|
||||
|
||||
SaajSoapMessage validRequest = loadSaajMessage(getTestPath() + "/valid.xml");
|
||||
Iterator<SoapHeaderElement> iterator = validRequest.getSoapHeader().examineAllHeaderElements();
|
||||
@@ -76,7 +76,7 @@ public abstract class AbstractAddressingInterceptorTests extends AbstractWsAddre
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testValidRequest() throws Exception {
|
||||
void testValidRequest() throws Exception {
|
||||
|
||||
SaajSoapMessage valid = loadSaajMessage(getTestPath() + "/valid.xml");
|
||||
MessageContext context = new DefaultMessageContext(valid, new SaajSoapMessageFactory(this.messageFactory));
|
||||
@@ -92,7 +92,7 @@ public abstract class AbstractAddressingInterceptorTests extends AbstractWsAddre
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNoMessageId() throws Exception {
|
||||
void testNoMessageId() throws Exception {
|
||||
|
||||
SaajSoapMessage valid = loadSaajMessage(getTestPath() + "/request-no-message-id.xml");
|
||||
MessageContext context = new DefaultMessageContext(valid, new SaajSoapMessageFactory(this.messageFactory));
|
||||
@@ -112,7 +112,7 @@ public abstract class AbstractAddressingInterceptorTests extends AbstractWsAddre
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNoReplyTo() throws Exception {
|
||||
void testNoReplyTo() throws Exception {
|
||||
|
||||
SaajSoapMessage valid = loadSaajMessage(getTestPath() + "/request-no-reply-to.xml");
|
||||
MessageContext context = new DefaultMessageContext(valid, new SaajSoapMessageFactory(this.messageFactory));
|
||||
@@ -134,7 +134,7 @@ public abstract class AbstractAddressingInterceptorTests extends AbstractWsAddre
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAnonymousReplyTo() throws Exception {
|
||||
void testAnonymousReplyTo() throws Exception {
|
||||
|
||||
SaajSoapMessage valid = loadSaajMessage(getTestPath() + "/request-anonymous.xml");
|
||||
MessageContext context = new DefaultMessageContext(valid, new SaajSoapMessageFactory(this.messageFactory));
|
||||
@@ -155,7 +155,7 @@ public abstract class AbstractAddressingInterceptorTests extends AbstractWsAddre
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNoneReplyTo() throws Exception {
|
||||
protected void testNoneReplyTo() throws Exception {
|
||||
|
||||
SaajSoapMessage valid = loadSaajMessage(getTestPath() + "/request-none.xml");
|
||||
MessageContext context = new DefaultMessageContext(valid, new SaajSoapMessageFactory(this.messageFactory));
|
||||
@@ -169,7 +169,7 @@ public abstract class AbstractAddressingInterceptorTests extends AbstractWsAddre
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFaultTo() throws Exception {
|
||||
void testFaultTo() throws Exception {
|
||||
|
||||
SaajSoapMessage valid = loadSaajMessage(getTestPath() + "/request-fault-to.xml");
|
||||
MessageContext context = new DefaultMessageContext(valid, new SaajSoapMessageFactory(this.messageFactory));
|
||||
@@ -193,7 +193,7 @@ public abstract class AbstractAddressingInterceptorTests extends AbstractWsAddre
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testOutOfBandReplyTo() throws Exception {
|
||||
void testOutOfBandReplyTo() throws Exception {
|
||||
|
||||
WebServiceMessageSender senderMock = createMock(WebServiceMessageSender.class);
|
||||
|
||||
|
||||
@@ -18,6 +18,8 @@ package org.springframework.ws.soap.addressing.server;
|
||||
|
||||
import java.net.URI;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import org.springframework.ws.context.DefaultMessageContext;
|
||||
import org.springframework.ws.context.MessageContext;
|
||||
import org.springframework.ws.soap.SoapMessage;
|
||||
@@ -31,7 +33,7 @@ import static org.easymock.EasyMock.expect;
|
||||
import static org.easymock.EasyMock.replay;
|
||||
import static org.easymock.EasyMock.verify;
|
||||
|
||||
public class AddressingInterceptor10Tests extends AbstractAddressingInterceptorTests {
|
||||
class AddressingInterceptor10Tests extends AbstractAddressingInterceptorTests {
|
||||
|
||||
@Override
|
||||
protected AddressingVersion getVersion() {
|
||||
@@ -43,7 +45,8 @@ public class AddressingInterceptor10Tests extends AbstractAddressingInterceptorT
|
||||
return "10";
|
||||
}
|
||||
|
||||
public void testNoTo() throws Exception {
|
||||
@Test
|
||||
void testNoTo() throws Exception {
|
||||
|
||||
SaajSoapMessage valid = loadSaajMessage(getTestPath() + "/request-no-to.xml");
|
||||
MessageContext context = new DefaultMessageContext(valid, new SaajSoapMessageFactory(this.messageFactory));
|
||||
|
||||
@@ -19,7 +19,7 @@ package org.springframework.ws.soap.addressing.server;
|
||||
import org.springframework.ws.soap.addressing.version.Addressing200408;
|
||||
import org.springframework.ws.soap.addressing.version.AddressingVersion;
|
||||
|
||||
public class AddressingInterceptor200408Tests extends AbstractAddressingInterceptorTests {
|
||||
class AddressingInterceptor200408Tests extends AbstractAddressingInterceptorTests {
|
||||
|
||||
@Override
|
||||
protected AddressingVersion getVersion() {
|
||||
|
||||
@@ -45,7 +45,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
* @author Arjen Poutsma
|
||||
* @author Nate Stoddard
|
||||
*/
|
||||
public class AnnotationActionMethodEndpointMappingTests {
|
||||
class AnnotationActionMethodEndpointMappingTests {
|
||||
|
||||
private StaticApplicationContext applicationContext;
|
||||
|
||||
@@ -54,7 +54,7 @@ public class AnnotationActionMethodEndpointMappingTests {
|
||||
private MessageFactory messageFactory;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() throws Exception {
|
||||
void setUp() throws Exception {
|
||||
|
||||
this.messageFactory = MessageFactory.newInstance(SOAPConstants.SOAP_1_2_PROTOCOL);
|
||||
|
||||
@@ -69,7 +69,7 @@ public class AnnotationActionMethodEndpointMappingTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void mapping() throws Exception {
|
||||
void mapping() throws Exception {
|
||||
|
||||
MessageContext messageContext = createMessageContext();
|
||||
|
||||
|
||||
@@ -35,14 +35,14 @@ import org.springframework.ws.soap.server.endpoint.interceptor.PayloadValidating
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class SimpleActionEndpointMappingTests extends AbstractWsAddressingTests {
|
||||
class SimpleActionEndpointMappingTests extends AbstractWsAddressingTests {
|
||||
|
||||
private SimpleActionEndpointMapping mapping;
|
||||
|
||||
private Endpoint1 endpoint1;
|
||||
|
||||
@BeforeEach
|
||||
public void createMappings() throws Exception {
|
||||
void createMappings() throws Exception {
|
||||
|
||||
this.mapping = new SimpleActionEndpointMapping();
|
||||
|
||||
@@ -61,7 +61,7 @@ public class SimpleActionEndpointMappingTests extends AbstractWsAddressingTests
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testMatch() throws Exception {
|
||||
void testMatch() throws Exception {
|
||||
|
||||
SaajSoapMessage message = loadSaajMessage("200408/valid.xml");
|
||||
MessageContext messageContext = new DefaultMessageContext(message,
|
||||
@@ -81,7 +81,7 @@ public class SimpleActionEndpointMappingTests extends AbstractWsAddressingTests
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNoMatch() throws Exception {
|
||||
void testNoMatch() throws Exception {
|
||||
|
||||
SaajSoapMessage message = loadSaajMessage("200408/response-no-message-id.xml");
|
||||
MessageContext messageContext = new DefaultMessageContext(message,
|
||||
|
||||
@@ -32,14 +32,14 @@ import org.springframework.ws.transport.TransportConstants;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class SaajSoapActionCallbackTests {
|
||||
class SaajSoapActionCallbackTests {
|
||||
|
||||
private SaajSoapMessageFactory saaj11Factory = new SaajSoapMessageFactory();
|
||||
|
||||
private SaajSoapMessageFactory saaj12Factory = new SaajSoapMessageFactory();
|
||||
|
||||
@BeforeEach
|
||||
public void init() throws SOAPException {
|
||||
void init() throws SOAPException {
|
||||
|
||||
MessageFactory messageFactory11 = MessageFactory.newInstance(SOAPConstants.SOAP_1_1_PROTOCOL);
|
||||
|
||||
@@ -54,7 +54,7 @@ public class SaajSoapActionCallbackTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void noSoapAction11ShouldProduceEmptySoapActionHeader() {
|
||||
void noSoapAction11ShouldProduceEmptySoapActionHeader() {
|
||||
|
||||
SaajSoapMessage message = this.saaj11Factory.createWebServiceMessage();
|
||||
String[] soapActionHeaders = message.getSaajMessage()
|
||||
@@ -65,7 +65,7 @@ public class SaajSoapActionCallbackTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void soapAction11ShouldProduceSoapActionHeader() throws IOException {
|
||||
void soapAction11ShouldProduceSoapActionHeader() throws IOException {
|
||||
|
||||
SaajSoapMessage message = this.saaj11Factory.createWebServiceMessage();
|
||||
SoapActionCallback callback = new SoapActionCallback("testAction");
|
||||
@@ -78,7 +78,7 @@ public class SaajSoapActionCallbackTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void emptySoapAction11() throws IOException {
|
||||
void emptySoapAction11() throws IOException {
|
||||
|
||||
SaajSoapMessage message = this.saaj11Factory.createWebServiceMessage();
|
||||
SoapActionCallback callback = new SoapActionCallback(null);
|
||||
@@ -91,7 +91,7 @@ public class SaajSoapActionCallbackTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void noSoapAction12() {
|
||||
void noSoapAction12() {
|
||||
|
||||
SaajSoapMessage message = this.saaj12Factory.createWebServiceMessage();
|
||||
String[] soapActionHeaders = message.getSaajMessage()
|
||||
@@ -102,7 +102,7 @@ public class SaajSoapActionCallbackTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void soapAction12ShouldProduceNoSoapActionHeader() throws IOException {
|
||||
void soapAction12ShouldProduceNoSoapActionHeader() throws IOException {
|
||||
|
||||
SaajSoapMessage message = this.saaj12Factory.createWebServiceMessage();
|
||||
SoapActionCallback callback = new SoapActionCallback("testAction");
|
||||
@@ -119,7 +119,7 @@ public class SaajSoapActionCallbackTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void emptySoapAction12ShouldProduceNoSoapActionHeader() throws IOException {
|
||||
void emptySoapAction12ShouldProduceNoSoapActionHeader() throws IOException {
|
||||
|
||||
SaajSoapMessage message = this.saaj12Factory.createWebServiceMessage();
|
||||
SoapActionCallback callback = new SoapActionCallback(null);
|
||||
|
||||
@@ -29,7 +29,7 @@ import org.springframework.ws.soap.soap11.AbstractSoap11BodyTests;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class SaajSoap11BodyTests extends AbstractSoap11BodyTests {
|
||||
class SaajSoap11BodyTests extends AbstractSoap11BodyTests {
|
||||
|
||||
@Override
|
||||
protected SoapBody createSoapBody() throws Exception {
|
||||
@@ -41,7 +41,7 @@ public class SaajSoap11BodyTests extends AbstractSoap11BodyTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testLangAttributeOnSoap11FaultString() throws Exception {
|
||||
void testLangAttributeOnSoap11FaultString() throws Exception {
|
||||
|
||||
MessageFactory messageFactory = MessageFactory.newInstance(SOAPConstants.SOAP_1_1_PROTOCOL);
|
||||
SOAPMessage saajMessage = messageFactory.createMessage();
|
||||
|
||||
@@ -23,7 +23,7 @@ import jakarta.xml.soap.SOAPMessage;
|
||||
import org.springframework.ws.soap.SoapEnvelope;
|
||||
import org.springframework.ws.soap.soap11.AbstractSoap11EnvelopeTests;
|
||||
|
||||
public class SaajSoap11EnvelopeTests extends AbstractSoap11EnvelopeTests {
|
||||
class SaajSoap11EnvelopeTests extends AbstractSoap11EnvelopeTests {
|
||||
|
||||
@Override
|
||||
protected SoapEnvelope createSoapEnvelope() throws Exception {
|
||||
|
||||
@@ -23,7 +23,7 @@ import jakarta.xml.soap.SOAPMessage;
|
||||
import org.springframework.ws.soap.SoapHeader;
|
||||
import org.springframework.ws.soap.soap11.AbstractSoap11HeaderTests;
|
||||
|
||||
public class SaajSoap11HeaderTests extends AbstractSoap11HeaderTests {
|
||||
class SaajSoap11HeaderTests extends AbstractSoap11HeaderTests {
|
||||
|
||||
@Override
|
||||
protected SoapHeader createSoapHeader() throws Exception {
|
||||
|
||||
@@ -33,7 +33,7 @@ import org.springframework.ws.soap.soap11.AbstractSoap11MessageFactoryTests;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class SaajSoap11MessageFactoryTests extends AbstractSoap11MessageFactoryTests {
|
||||
class SaajSoap11MessageFactoryTests extends AbstractSoap11MessageFactoryTests {
|
||||
|
||||
@Override
|
||||
protected WebServiceMessageFactory createMessageFactory() throws Exception {
|
||||
@@ -43,7 +43,7 @@ public class SaajSoap11MessageFactoryTests extends AbstractSoap11MessageFactoryT
|
||||
}
|
||||
|
||||
@Test
|
||||
public void properties() throws IOException {
|
||||
void properties() throws IOException {
|
||||
|
||||
Map<String, ?> properties = Collections.singletonMap(SOAPMessage.WRITE_XML_DECLARATION, "true");
|
||||
((SaajSoapMessageFactory) this.messageFactory).setMessageProperties(properties);
|
||||
|
||||
@@ -36,7 +36,7 @@ import org.springframework.xml.transform.StringSource;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class SaajSoap11MessageTests extends AbstractSoap11MessageTests {
|
||||
class SaajSoap11MessageTests extends AbstractSoap11MessageTests {
|
||||
|
||||
private SOAPMessage saajMessage;
|
||||
|
||||
@@ -61,7 +61,7 @@ public class SaajSoap11MessageTests extends AbstractSoap11MessageTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetPayloadSource() throws Exception {
|
||||
void testGetPayloadSource() throws Exception {
|
||||
|
||||
this.saajMessage.getSOAPPart().getEnvelope().getBody().addChildElement("child");
|
||||
Source source = this.soapMessage.getPayloadSource();
|
||||
@@ -72,7 +72,7 @@ public class SaajSoap11MessageTests extends AbstractSoap11MessageTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetPayloadSourceText() throws Exception {
|
||||
void testGetPayloadSourceText() throws Exception {
|
||||
|
||||
SOAPBody body = this.saajMessage.getSOAPPart().getEnvelope().getBody();
|
||||
body.addTextNode(" ");
|
||||
@@ -85,7 +85,7 @@ public class SaajSoap11MessageTests extends AbstractSoap11MessageTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetPayloadResult() throws Exception {
|
||||
void testGetPayloadResult() throws Exception {
|
||||
|
||||
StringSource source = new StringSource("<child/>");
|
||||
Result result = this.soapMessage.getPayloadResult();
|
||||
|
||||
@@ -23,7 +23,7 @@ import jakarta.xml.soap.SOAPMessage;
|
||||
import org.springframework.ws.soap.SoapBody;
|
||||
import org.springframework.ws.soap.soap12.AbstractSoap12BodyTests;
|
||||
|
||||
public class SaajSoap12BodyTests extends AbstractSoap12BodyTests {
|
||||
class SaajSoap12BodyTests extends AbstractSoap12BodyTests {
|
||||
|
||||
@Override
|
||||
protected SoapBody createSoapBody() throws Exception {
|
||||
|
||||
@@ -23,7 +23,7 @@ import jakarta.xml.soap.SOAPMessage;
|
||||
import org.springframework.ws.soap.SoapEnvelope;
|
||||
import org.springframework.ws.soap.soap12.AbstractSoap12EnvelopeTests;
|
||||
|
||||
public class SaajSoap12EnvelopeTests extends AbstractSoap12EnvelopeTests {
|
||||
class SaajSoap12EnvelopeTests extends AbstractSoap12EnvelopeTests {
|
||||
|
||||
@Override
|
||||
protected SoapEnvelope createSoapEnvelope() throws Exception {
|
||||
|
||||
@@ -23,7 +23,7 @@ import jakarta.xml.soap.SOAPMessage;
|
||||
import org.springframework.ws.soap.SoapHeader;
|
||||
import org.springframework.ws.soap.soap12.AbstractSoap12HeaderTests;
|
||||
|
||||
public class SaajSoap12HeaderTests extends AbstractSoap12HeaderTests {
|
||||
class SaajSoap12HeaderTests extends AbstractSoap12HeaderTests {
|
||||
|
||||
@Override
|
||||
protected SoapHeader createSoapHeader() throws Exception {
|
||||
|
||||
@@ -22,7 +22,7 @@ import jakarta.xml.soap.SOAPConstants;
|
||||
import org.springframework.ws.WebServiceMessageFactory;
|
||||
import org.springframework.ws.soap.soap12.AbstractSoap12MessageFactoryTests;
|
||||
|
||||
public class SaajSoap12MessageFactoryTests extends AbstractSoap12MessageFactoryTests {
|
||||
class SaajSoap12MessageFactoryTests extends AbstractSoap12MessageFactoryTests {
|
||||
|
||||
@Override
|
||||
protected WebServiceMessageFactory createMessageFactory() throws Exception {
|
||||
|
||||
@@ -22,6 +22,7 @@ import javax.xml.transform.Source;
|
||||
import jakarta.xml.soap.MessageFactory;
|
||||
import jakarta.xml.soap.SOAPConstants;
|
||||
import jakarta.xml.soap.SOAPMessage;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.xmlunit.assertj.XmlAssert;
|
||||
|
||||
import org.springframework.ws.soap.SoapMessage;
|
||||
@@ -31,7 +32,7 @@ import org.springframework.xml.transform.StringSource;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class SaajSoap12MessageTests extends AbstractSoap12MessageTests {
|
||||
class SaajSoap12MessageTests extends AbstractSoap12MessageTests {
|
||||
|
||||
@Override
|
||||
protected String getNS() {
|
||||
@@ -54,7 +55,8 @@ public class SaajSoap12MessageTests extends AbstractSoap12MessageTests {
|
||||
return new SaajSoapMessage(this.saajMessage, true, messageFactory);
|
||||
}
|
||||
|
||||
public void testGetPayloadSource() throws Exception {
|
||||
@Test
|
||||
void testGetPayloadSource() throws Exception {
|
||||
|
||||
this.saajMessage.getSOAPBody().addChildElement("child");
|
||||
Source source = this.soapMessage.getPayloadSource();
|
||||
@@ -64,7 +66,8 @@ public class SaajSoap12MessageTests extends AbstractSoap12MessageTests {
|
||||
XmlAssert.assertThat(result.toString()).and("<child/>").ignoreWhitespace().areIdentical();
|
||||
}
|
||||
|
||||
public void testGetPayloadSourceText() throws Exception {
|
||||
@Test
|
||||
void testGetPayloadSourceText() throws Exception {
|
||||
|
||||
this.saajMessage.getSOAPBody().addTextNode(" ");
|
||||
this.saajMessage.getSOAPBody().addChildElement("child");
|
||||
@@ -75,7 +78,8 @@ public class SaajSoap12MessageTests extends AbstractSoap12MessageTests {
|
||||
XmlAssert.assertThat(result.toString()).and("<child/>").ignoreWhitespace().areIdentical();
|
||||
}
|
||||
|
||||
public void testGetPayloadResult() throws Exception {
|
||||
@Test
|
||||
void testGetPayloadResult() throws Exception {
|
||||
|
||||
StringSource source = new StringSource("<child/>");
|
||||
Result result = this.soapMessage.getPayloadResult();
|
||||
|
||||
@@ -37,7 +37,7 @@ import org.springframework.xml.transform.TransformerFactoryUtils;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class SaajContentHandlerTests {
|
||||
class SaajContentHandlerTests {
|
||||
|
||||
private SaajContentHandler handler;
|
||||
|
||||
@@ -46,7 +46,7 @@ public class SaajContentHandlerTests {
|
||||
private SOAPEnvelope envelope;
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() throws Exception {
|
||||
void setUp() throws Exception {
|
||||
|
||||
MessageFactory messageFactory = MessageFactory.newInstance();
|
||||
SOAPMessage message = messageFactory.createMessage();
|
||||
@@ -56,7 +56,7 @@ public class SaajContentHandlerTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testHandler() throws Exception {
|
||||
void testHandler() throws Exception {
|
||||
|
||||
String content = "<Root xmlns='http://springframework.org/spring-ws/1' "
|
||||
+ "xmlns:child='http://springframework.org/spring-ws/2'>"
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user