INT-847 Upgrading to Spring 3.0 snapshot (CI-475 from 2009/11/25).
This commit is contained in:
@@ -37,8 +37,6 @@ import org.mockito.invocation.InvocationOnMock;
|
||||
import org.mockito.runners.MockitoJUnit44Runner;
|
||||
import org.mockito.stubbing.Answer;
|
||||
|
||||
import org.springframework.context.event.ContextRefreshedEvent;
|
||||
import org.springframework.context.support.StaticApplicationContext;
|
||||
import org.springframework.integration.channel.DirectChannel;
|
||||
import org.springframework.integration.core.Message;
|
||||
import org.springframework.integration.core.MessageChannel;
|
||||
@@ -92,7 +90,7 @@ public class SimpleWebServiceInboundGatewayTests {
|
||||
when(requestChannel.send(isA(Message.class))).thenAnswer(
|
||||
withReplyTo(replyChannel));
|
||||
when(request.getPayloadSource()).thenReturn(payloadSource);
|
||||
gateway.onApplicationEvent(new ContextRefreshedEvent(new StaticApplicationContext()));
|
||||
gateway.start();
|
||||
gateway.invoke(context);
|
||||
verify(requestChannel).send(messageWithPayload(payloadSource));
|
||||
assertTrue(output.toString().endsWith(input));
|
||||
|
||||
@@ -27,7 +27,6 @@ import org.springframework.context.support.ClassPathXmlApplicationContext;
|
||||
import org.springframework.integration.endpoint.AbstractEndpoint;
|
||||
import org.springframework.integration.endpoint.EventDrivenConsumer;
|
||||
import org.springframework.integration.endpoint.PollingConsumer;
|
||||
import org.springframework.integration.endpoint.AbstractEndpoint.StartupMode;
|
||||
import org.springframework.integration.ws.MarshallingWebServiceOutboundGateway;
|
||||
import org.springframework.integration.ws.SimpleWebServiceOutboundGateway;
|
||||
import org.springframework.oxm.Marshaller;
|
||||
@@ -222,7 +221,7 @@ public class WebServiceOutboundGatewayParserTests {
|
||||
ApplicationContext context = new ClassPathXmlApplicationContext(
|
||||
"simpleWebServiceOutboundGatewayParserTests.xml", this.getClass());
|
||||
AbstractEndpoint endpoint = (AbstractEndpoint) context.getBean("gatewayWithOrderAndAutoStartupFalse");
|
||||
assertEquals(StartupMode.MANUAL, new DirectFieldAccessor(endpoint).getPropertyValue("startupMode"));
|
||||
assertEquals(Boolean.FALSE, new DirectFieldAccessor(endpoint).getPropertyValue("autoStartup"));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user