INT-3683: Fix typo in schema.sql.vpp
JIRA: https://jira.spring.io/browse/INT-3683 * In addition fix `inputs` for the Gradle `generateSql` task and regenerate all SQLs to apply the typo fix. The previous way to generate sql scripts doesn't work properly. It is always as `UP-TO-DATE`. Adding `inputs` to the `generateSql` show the correct behaviour. From other side that makes `cleanSql` task as redundant. * Applying the Travis config fix to this commit as well. Fix HTTP test timeout https://build.spring.io/browse/INT-B41-346 Fix `ProducerAndConsumerAutoStartupTests` https://build.spring.io/browse/INT-B41-346 Fix `DelayerUsageTests` `time` bean scope bug https://build.spring.io/browse/INT-B41-347 Fix `HttpInboundGatewayParserTests.java` generics Java < 8 compiler warnings Increase Tomcat response timeout for WebSocket tests https://build.spring.io/browse/INT-B41-349 Increase timeout in the `AsyncMessagingTemplateTests#executionException()` Fix `ClassCastException` for the `StandardWebSocketClient#userProperties` Increase Delay to 2 Seconds in DelayHandlerTests
This commit is contained in:
committed by
Gary Russell
parent
b69c0c2d24
commit
178c86faa4
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
* Copyright 2002-2015 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.
|
||||
@@ -22,6 +22,7 @@ import static org.hamcrest.CoreMatchers.is;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertFalse;
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
import static org.junit.Assert.assertSame;
|
||||
import static org.junit.Assert.assertThat;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import static org.springframework.integration.test.util.TestUtils.getPropertyValue;
|
||||
@@ -114,14 +115,14 @@ public class HttpInboundGatewayParserTests {
|
||||
@Test
|
||||
public void checkConfig() {
|
||||
assertNotNull(gateway);
|
||||
assertThat((Boolean) getPropertyValue(gateway, "expectReply"), is(true));
|
||||
assertThat((Boolean) getPropertyValue(gateway, "convertExceptions"), is(true));
|
||||
assertThat((PollableChannel) getPropertyValue(gateway, "replyChannel"), is(responses));
|
||||
assertTrue(getPropertyValue(gateway, "expectReply", Boolean.class));
|
||||
assertTrue(getPropertyValue(gateway, "convertExceptions", Boolean.class));
|
||||
assertSame(this.responses, getPropertyValue(gateway, "replyChannel"));
|
||||
assertNotNull(TestUtils.getPropertyValue(gateway, "errorChannel"));
|
||||
MessagingTemplate messagingTemplate = TestUtils.getPropertyValue(
|
||||
gateway, "messagingTemplate", MessagingTemplate.class);
|
||||
assertEquals(Long.valueOf(1234), TestUtils.getPropertyValue(messagingTemplate, "sendTimeout"));
|
||||
assertEquals(Long.valueOf(4567), TestUtils.getPropertyValue(messagingTemplate, "receiveTimeout"));
|
||||
assertEquals(1234L, TestUtils.getPropertyValue(messagingTemplate, "sendTimeout"));
|
||||
assertEquals(4567L, TestUtils.getPropertyValue(messagingTemplate, "receiveTimeout"));
|
||||
|
||||
boolean registerDefaultConverters = TestUtils.getPropertyValue(gateway,"mergeWithDefaultConverters", Boolean.class);
|
||||
assertFalse("By default the register-default-converters flag should be false", registerDefaultConverters);
|
||||
@@ -132,7 +133,7 @@ public class HttpInboundGatewayParserTests {
|
||||
messageConverters.size() > 0);
|
||||
}
|
||||
|
||||
@Test(timeout=1000) @DirtiesContext
|
||||
@Test @DirtiesContext
|
||||
public void checkFlow() throws Exception {
|
||||
requests.subscribe(handlerExpecting(any(Message.class)));
|
||||
MockHttpServletRequest request = new MockHttpServletRequest();
|
||||
@@ -258,7 +259,8 @@ public class HttpInboundGatewayParserTests {
|
||||
messageConverters.size() > 1);
|
||||
}
|
||||
|
||||
public static class Person{
|
||||
public static class Person {
|
||||
|
||||
private String name;
|
||||
|
||||
public String getName() {
|
||||
@@ -268,9 +270,10 @@ public class HttpInboundGatewayParserTests {
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static class PersonConverter implements Converter<Person, String>{
|
||||
public static class PersonConverter implements Converter<Person, String> {
|
||||
|
||||
public String convert(Person source) {
|
||||
return source.getName();
|
||||
|
||||
Reference in New Issue
Block a user