Fix JDBC tests and some upgrades
https://build.spring.io/browse/INT-FATS5IC-430 Looks like there is a race condition when our polling rate around data base is too fast and we have access to the DB files even during application context close. * Stop polling channel adapter in the tests explicitly after test methods * Increase some tests performance decreasing timeouts to wait * Upgrade to Reactor-3.1.5, AssertJ-3.9.1, Derby-10.14.1.0 and some Gradle plugins * Upgrade to `reactor-netty-0.7.5` * Remove workaround from the `StompServerIntegrationTests` * Upgrade to Spring Data Kay SR5 * Upgrade to Spring Security 5.0.3 * Increase timeouts and performance in the `StreamTransformerParserTests`
This commit is contained in:
committed by
Gary Russell
parent
b55a5bdde4
commit
cb0d43db6b
@@ -20,7 +20,7 @@
|
||||
<stream-transformer input-channel="directInput" output-channel="output"/>
|
||||
|
||||
<stream-transformer input-channel="queueInput" output-channel="output">
|
||||
<poller fixed-delay="10000"/>
|
||||
<poller fixed-delay="1"/>
|
||||
</stream-transformer>
|
||||
|
||||
<chain input-channel="charsetChannel" output-channel="output">
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2016 the original author or authors.
|
||||
* Copyright 2016-2018 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.
|
||||
@@ -39,6 +39,7 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
/**
|
||||
* @author Mark Fisher
|
||||
* @author Gary Russell
|
||||
* @author Artem Bilan
|
||||
*/
|
||||
@ContextConfiguration
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@@ -64,7 +65,7 @@ public class StreamTransformerParserTests {
|
||||
@Test
|
||||
public void directChannelWithStringMessage() {
|
||||
this.directInput.send(new GenericMessage<InputStream>(new ByteArrayInputStream("foo".getBytes())));
|
||||
Message<?> result = output.receive(0);
|
||||
Message<?> result = output.receive(10000);
|
||||
assertNotNull(result);
|
||||
assertArrayEquals("foo".getBytes(), (byte[]) result.getPayload());
|
||||
}
|
||||
@@ -72,7 +73,7 @@ public class StreamTransformerParserTests {
|
||||
@Test
|
||||
public void queueChannelWithStringMessage() {
|
||||
this.queueInput.send(new GenericMessage<InputStream>(new ByteArrayInputStream("foo".getBytes())));
|
||||
Message<?> result = output.receive(3000);
|
||||
Message<?> result = output.receive(10000);
|
||||
assertNotNull(result);
|
||||
assertArrayEquals("foo".getBytes(), (byte[]) result.getPayload());
|
||||
}
|
||||
@@ -80,7 +81,7 @@ public class StreamTransformerParserTests {
|
||||
@Test
|
||||
public void charset() {
|
||||
this.charsetChannel.send(new GenericMessage<InputStream>(new ByteArrayInputStream("foo".getBytes())));
|
||||
Message<?> result = output.receive(0);
|
||||
Message<?> result = output.receive(10000);
|
||||
assertNotNull(result);
|
||||
assertEquals("foo", result.getPayload());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user