checkstyle MutableException
checkstyle EmptyBlock checkstyle fixRightCurly Script checkstyle EmptyStatement checkstyle RightCurly checkstyle TailingWhite checkstyle NeedBraces Fix the line separator in the `fixRightCurly.gradle`
This commit is contained in:
committed by
Artem Bilan
parent
c0b19e61b5
commit
842aded9a4
@@ -19,7 +19,7 @@ package org.springframework.integration.ws;
|
||||
/**
|
||||
* Pre-defined header names to be used when storing or retrieving
|
||||
* Web Service properties to/from integration Message Headers.
|
||||
*
|
||||
*
|
||||
* @author Mark Fisher
|
||||
*/
|
||||
public abstract class WebServiceHeaders {
|
||||
|
||||
@@ -63,7 +63,7 @@ public class WebServiceInboundGatewayParser extends AbstractInboundGatewayParser
|
||||
throw new IllegalArgumentException("An 'unmarshaller' is not allowed without 'marshaller'.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (StringUtils.hasText(marshallerRef) || StringUtils.hasText(unmarshallerRef)){
|
||||
String extractPayload = element.getAttribute("extract-payload");
|
||||
if (StringUtils.hasText(extractPayload)) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Provides several inbound and outbound Web Service components. Also contains
|
||||
* Provides several inbound and outbound Web Service components. Also contains
|
||||
* support classes (e.g. Header Mapper)
|
||||
*/
|
||||
package org.springframework.integration.ws;
|
||||
|
||||
@@ -48,7 +48,7 @@ import org.springframework.ws.context.MessageContext;
|
||||
import org.springframework.xml.transform.StringSource;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author Iwein Fuld
|
||||
*
|
||||
*/
|
||||
@@ -60,7 +60,7 @@ public class MarshallingWebServiceIntegrationTests {
|
||||
private static final String input = "<hello/>";
|
||||
|
||||
@Autowired MarshallingWebServiceInboundGateway gateway;
|
||||
|
||||
|
||||
@Mock
|
||||
private MessageContext context;
|
||||
|
||||
@@ -71,20 +71,20 @@ public class MarshallingWebServiceIntegrationTests {
|
||||
private WebServiceMessage request;
|
||||
|
||||
private Source stringSource = new StreamSource(new StringReader(input));
|
||||
|
||||
|
||||
private StringWriter output = new StringWriter();
|
||||
|
||||
private Result stringResult = new StreamResult(output);
|
||||
|
||||
|
||||
@Before public void setupMocks(){
|
||||
MockitoAnnotations.initMocks(this);
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void configOk() throws Exception {
|
||||
// just flag invalid config
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void sendString() throws Exception {
|
||||
when(context.getResponse()).thenReturn(response);
|
||||
|
||||
@@ -24,9 +24,9 @@ import org.springframework.ws.client.support.destination.DestinationProvider;
|
||||
* @author Jonas Partner
|
||||
*/
|
||||
public class StubDestinationProvider implements DestinationProvider {
|
||||
|
||||
|
||||
public URI getDestination() {
|
||||
return null;
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -51,12 +51,13 @@ public class StubMessageFactory implements WebServiceMessageFactory {
|
||||
public WebServiceMessage createWebServiceMessage(InputStream inputStream) throws IOException {
|
||||
try {
|
||||
Transformer transformer = TransformerFactory.newInstance().newTransformer();
|
||||
|
||||
|
||||
DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
|
||||
InputSource is = new InputSource( new InputStreamReader(inputStream));
|
||||
Document document = builder.parse(is);
|
||||
return new DomPoxMessage(document, transformer, "text/xml");
|
||||
} catch (Exception e) {
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw new IllegalArgumentException(e);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ import org.springframework.ws.transport.WebServiceConnection;
|
||||
import org.springframework.ws.transport.WebServiceMessageSender;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author Jonas Partner
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -28,7 +28,7 @@ import org.springframework.oxm.XmlMappingException;
|
||||
*/
|
||||
public class StubUnmarshaller implements Unmarshaller {
|
||||
|
||||
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
public boolean supports(Class clazz) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user