INTSAMPLES-144: Barrier Sample
JIRA: https://jira.spring.io/browse/INTSAMPLES-144 INTSAMPLES-144: Use o-c-a for Release INTSAMPLES-144: Switch to Spring Boot INTSAMPLES-144: Polishing * Upgrade to SI-4.2, SF-4.2, Boot-1.3 * Fix: https://jira.spring.io/browse/INTSAMPLES-145
This commit is contained in:
committed by
Artem Bilan
parent
dd7871a7ba
commit
db3d78109f
@@ -127,7 +127,7 @@ public class ListenableFutureTest {
|
||||
|
||||
}
|
||||
|
||||
@MessagingGateway(defaultReplyTimeout = 0)
|
||||
@MessagingGateway(defaultReplyTimeout = "0")
|
||||
public interface MathGateway {
|
||||
|
||||
@Gateway(requestChannel = "gatewayChannel")
|
||||
|
||||
@@ -27,9 +27,6 @@ import org.apache.log4j.Logger;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import reactor.core.composable.Promise;
|
||||
import reactor.spring.context.config.EnableReactor;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
@@ -49,6 +46,9 @@ import org.springframework.test.annotation.DirtiesContext;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
|
||||
import reactor.rx.Promise;
|
||||
import reactor.spring.context.config.EnableReactor;
|
||||
|
||||
/**
|
||||
* @author Oleg Zhurakousky
|
||||
* @author Gary Russell
|
||||
@@ -88,8 +88,7 @@ public class PromiseTest {
|
||||
failures.incrementAndGet();
|
||||
logger.error("Unexpected exception for " + number, t);
|
||||
latch.countDown();
|
||||
})
|
||||
.flush();
|
||||
}).poll();
|
||||
}
|
||||
assertTrue(latch.await(60, TimeUnit.SECONDS));
|
||||
assertEquals(0, failures.get());
|
||||
@@ -123,7 +122,7 @@ public class PromiseTest {
|
||||
|
||||
}
|
||||
|
||||
@MessagingGateway(defaultReplyTimeout = 0, reactorEnvironment = "reactorEnv")
|
||||
@MessagingGateway(defaultReplyTimeout = "0", reactorEnvironment = "reactorEnv")
|
||||
public interface MathGateway {
|
||||
|
||||
@Gateway(requestChannel = "gatewayChannel")
|
||||
|
||||
@@ -17,6 +17,7 @@ package org.springframework.integration.samples.travel;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -34,6 +35,7 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
"classpath:META-INF/spring/integration-context.xml",
|
||||
"classpath:META-INF/spring/integration-ws-context.xml"})
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@Ignore("The target WeatherWS is unreliable (INTSAMPLES-145), so uncomment if you'd like to test the real interaction")
|
||||
public class TravelGatewayTest {
|
||||
|
||||
private static final Logger LOGGER = Logger.getLogger(TravelGatewayTest.class);
|
||||
|
||||
Reference in New Issue
Block a user