INT-3366 Increase Script Test Timeouts
JIRA: https://jira.spring.io/browse/INT-3366 Timings are too tight for Travis. Also fix a JDK8 javadoc problem.
This commit is contained in:
@@ -18,7 +18,7 @@ import org.springframework.jdbc.core.JdbcTemplate;
|
||||
/**
|
||||
* Contains Oracle-specific queries for the {@link JdbcChannelMessageStore}.
|
||||
* Please ensure that the used {@link JdbcTemplate}'s fetchSize property is <code>1</code>.
|
||||
* <p/>
|
||||
* <p>
|
||||
* Fore more details, please see: http://stackoverflow.com/questions/6117254/force-oracle-to-return-top-n-rows-with-skip-locked
|
||||
*
|
||||
* @author Gunnar Hillert
|
||||
|
||||
@@ -22,8 +22,8 @@ import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.messaging.MessageChannel;
|
||||
import org.springframework.integration.channel.QueueChannel;
|
||||
import org.springframework.messaging.MessageChannel;
|
||||
import org.springframework.messaging.support.GenericMessage;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
@@ -53,12 +53,12 @@ public class Jsr223HeaderEnricherTests {
|
||||
@Test
|
||||
public void referencedScript() throws Exception{
|
||||
inputA.send(new GenericMessage<String>("Hello"));
|
||||
assertEquals("jruby", outputA.receive(1000).getHeaders().get("TEST_HEADER"));
|
||||
assertEquals("jruby", outputA.receive(20000).getHeaders().get("TEST_HEADER"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void inlineScript() throws Exception{
|
||||
inputB.send(new GenericMessage<String>("Hello"));
|
||||
assertEquals("js", outputB.receive(1000).getHeaders().get("TEST_HEADER"));
|
||||
assertEquals("js", outputB.receive(20000).getHeaders().get("TEST_HEADER"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,14 +49,14 @@ public class Jsr223InboundChannelAdapterTests {
|
||||
|
||||
@Test
|
||||
public void testInt2867InboundChannelAdapter() throws Exception {
|
||||
Message<?> message = this.inboundChannelAdapterChannel.receive(2000);
|
||||
Message<?> message = this.inboundChannelAdapterChannel.receive(20000);
|
||||
assertNotNull(message);
|
||||
Object payload = message.getPayload();
|
||||
assertThat(payload, Matchers.instanceOf(Date.class));
|
||||
assertTrue(((Date) payload).before(new Date()));
|
||||
assertEquals("bar", message.getHeaders().get("foo"));
|
||||
|
||||
message = this.inboundChannelAdapterChannel.receive(1000);
|
||||
message = this.inboundChannelAdapterChannel.receive(20000);
|
||||
assertNotNull(message);
|
||||
|
||||
message = this.inboundChannelAdapterChannel.receive(10);
|
||||
|
||||
Reference in New Issue
Block a user