Renamed 'returnAddress' in MessageHeaders to 'replyChannel'.
This commit is contained in:
@@ -88,8 +88,8 @@ public class GatewayProxyFactoryBeanTests {
|
||||
new Thread(new Runnable() {
|
||||
public void run() {
|
||||
Message<?> input = requestChannel.receive();
|
||||
StringMessage response = new StringMessage(input.getPayload() + "456");
|
||||
((MessageChannel) input.getHeaders().getReturnAddress()).send(response);
|
||||
StringMessage reply = new StringMessage(input.getPayload() + "456");
|
||||
((MessageChannel) input.getHeaders().getReplyChannel()).send(reply);
|
||||
}
|
||||
}).start();
|
||||
GatewayProxyFactoryBean proxyFactory = new GatewayProxyFactoryBean();
|
||||
@@ -175,8 +175,8 @@ public class GatewayProxyFactoryBeanTests {
|
||||
new Thread(new Runnable() {
|
||||
public void run() {
|
||||
Message<?> input = requestChannel.receive();
|
||||
StringMessage response = new StringMessage(input.getPayload() + "bar");
|
||||
((MessageChannel) input.getHeaders().getReturnAddress()).send(response);
|
||||
StringMessage reply = new StringMessage(input.getPayload() + "bar");
|
||||
((MessageChannel) input.getHeaders().getReplyChannel()).send(reply);
|
||||
}
|
||||
}).start();
|
||||
GatewayProxyFactoryBean proxyFactory = new GatewayProxyFactoryBean();
|
||||
@@ -220,8 +220,8 @@ public class GatewayProxyFactoryBeanTests {
|
||||
new Thread(new Runnable() {
|
||||
public void run() {
|
||||
Message<?> input = requestChannel.receive();
|
||||
StringMessage response = new StringMessage(input.getPayload() + "bar");
|
||||
((MessageChannel) input.getHeaders().getReturnAddress()).send(response);
|
||||
StringMessage reply = new StringMessage(input.getPayload() + "bar");
|
||||
((MessageChannel) input.getHeaders().getReplyChannel()).send(reply);
|
||||
}
|
||||
}).start();
|
||||
}
|
||||
|
||||
@@ -203,7 +203,7 @@ public class SimpleMessagingGatewayTests {
|
||||
//set expectations
|
||||
expect(replyChannel.getName()).andReturn("replyChannel").anyTimes();
|
||||
expect(messageMock.getHeaders()).andReturn(messageHeadersMock);
|
||||
expect(messageHeadersMock.getReturnAddress()).andReturn(replyChannel);
|
||||
expect(messageHeadersMock.getReplyChannel()).andReturn(replyChannel);
|
||||
expect(requestChannel.send(messageMock)).andReturn(true);
|
||||
expect(messageHeadersMock.getId()).andReturn(1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user