Fix JmsMockTests for bad Mockito usage
https://build.spring.io/browse/INTSAMPLES-NIGHTLY-2074 Upgrade to SK-2.0 M1 and SIK-3.0 M1 Fix JPA sample adding `SEQUENCE HIBERNATE_SEQUENCE` DDL into the `schema.sql` https://build.spring.io/browse/INTSAMPLES-NIGHTLY-2078/ The latest Hibernate version doesn't create such a DB entity if we use `hibernate.ddl-auto: none` Increase timeouts in the JMS and TCP tests
This commit is contained in:
@@ -6,8 +6,6 @@
|
||||
xmlns:int-stream="http://www.springframework.org/schema/integration/stream"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
||||
http://www.springframework.org/schema/beans/spring-beans.xsd
|
||||
http://www.springframework.org/schema/context
|
||||
http://www.springframework.org/schema/context/spring-context.xsd
|
||||
http://www.springframework.org/schema/integration
|
||||
http://www.springframework.org/schema/integration/spring-integration.xsd
|
||||
http://www.springframework.org/schema/integration/jms
|
||||
@@ -15,11 +13,9 @@
|
||||
http://www.springframework.org/schema/integration/stream
|
||||
http://www.springframework.org/schema/integration/stream/spring-integration-stream.xsd">
|
||||
|
||||
<int-stream:stdin-channel-adapter id="stdin" channel="stdinToJmsoutChannel"/>
|
||||
<int-stream:stdin-channel-adapter id="stdin" channel="stdinToJmsOutChannel"/>
|
||||
|
||||
<int:channel id="stdinToJmsoutChannel"/>
|
||||
|
||||
<int:chain input-channel="stdinToJmsoutChannel">
|
||||
<int:chain input-channel="stdinToJmsOutChannel">
|
||||
<int:header-enricher>
|
||||
<int:header name="jms_replyTo" ref="replyQueue" />
|
||||
</int:header-enricher>
|
||||
@@ -32,7 +28,7 @@
|
||||
<int:channel id="jmsReplyChannel" />
|
||||
|
||||
<int:aggregator input-channel="jmsReplyChannel" output-channel="out"
|
||||
group-timeout="5000"
|
||||
group-timeout="20000"
|
||||
expire-groups-upon-timeout="false"
|
||||
send-partial-result-on-expiry="true"
|
||||
discard-channel="logLateArrivers"
|
||||
|
||||
@@ -13,10 +13,10 @@
|
||||
http://www.springframework.org/schema/integration/stream
|
||||
http://www.springframework.org/schema/integration/stream/spring-integration-stream.xsd">
|
||||
|
||||
<stream:stdin-channel-adapter id="stdin" channel="stdinToJmsoutChannel"/>
|
||||
<stream:stdin-channel-adapter id="stdin" channel="stdinToJmsOutChannel"/>
|
||||
|
||||
<channel id="stdinToJmsoutChannel"/>
|
||||
<channel id="stdinToJmsOutChannel"/>
|
||||
|
||||
<jms:outbound-channel-adapter id="jmsout" channel="stdinToJmsoutChannel" destination="requestQueue"/>
|
||||
<jms:outbound-channel-adapter id="jmsout" channel="stdinToJmsOutChannel" destination="requestQueue"/>
|
||||
|
||||
</beans:beans>
|
||||
|
||||
@@ -15,11 +15,11 @@
|
||||
http://www.springframework.org/schema/integration/stream
|
||||
http://www.springframework.org/schema/integration/stream/spring-integration-stream.xsd">
|
||||
|
||||
<stream:stdin-channel-adapter id="stdin" channel="stdinToJmsoutChannel"/>
|
||||
<stream:stdin-channel-adapter id="stdin" channel="stdinToJmsOutChannel"/>
|
||||
|
||||
<channel id="stdinToJmsoutChannel"/>
|
||||
<channel id="stdinToJmsOutChannel"/>
|
||||
|
||||
<jms:outbound-gateway request-channel="stdinToJmsoutChannel"
|
||||
<jms:outbound-gateway request-channel="stdinToJmsOutChannel"
|
||||
request-destination="requestQueue"
|
||||
reply-channel="jmsReplyChannel"/>
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2015 the original author or authors.
|
||||
* Copyright 2002-2017 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.
|
||||
@@ -13,6 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.integration.samples.jms;
|
||||
|
||||
import java.util.List;
|
||||
@@ -29,6 +30,7 @@ import org.springframework.messaging.MessageChannel;
|
||||
/**
|
||||
* @author Gunnar Hillert
|
||||
* @author Gary Russell
|
||||
* @author Artem Bilan
|
||||
*/
|
||||
public class AggregatorDemoTest {
|
||||
|
||||
@@ -44,14 +46,14 @@ public class AggregatorDemoTest {
|
||||
|
||||
final GenericXmlApplicationContext applicationContext = new GenericXmlApplicationContext(configFilesGatewayDemo);
|
||||
|
||||
final MessageChannel stdinToJmsoutChannel = applicationContext.getBean("stdinToJmsoutChannel", MessageChannel.class);
|
||||
final MessageChannel stdinToJmsOutChannel = applicationContext.getBean("stdinToJmsOutChannel", MessageChannel.class);
|
||||
|
||||
stdinToJmsoutChannel.send(MessageBuilder.withPayload("jms test").build());
|
||||
stdinToJmsOutChannel.send(MessageBuilder.withPayload("jms test").build());
|
||||
|
||||
final QueueChannel queueChannel = applicationContext.getBean("queueChannel", QueueChannel.class);
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
Message<List<String>> reply = (Message<List<String>>) queueChannel.receive(20000);
|
||||
Message<List<String>> reply = (Message<List<String>>) queueChannel.receive(600000);
|
||||
Assert.assertNotNull(reply);
|
||||
List<String> out = reply.getPayload();
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2017 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.
|
||||
@@ -13,6 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.integration.samples.jms;
|
||||
|
||||
import org.junit.Assert;
|
||||
@@ -42,9 +43,9 @@ public class ChannelAdapterDemoTest {
|
||||
|
||||
final GenericXmlApplicationContext applicationContext = new GenericXmlApplicationContext(configFilesChannelAdapterDemo);
|
||||
|
||||
final MessageChannel stdinToJmsoutChannel = applicationContext.getBean("stdinToJmsoutChannel", MessageChannel.class);
|
||||
final MessageChannel stdinToJmsOutChannel = applicationContext.getBean("stdinToJmsOutChannel", MessageChannel.class);
|
||||
|
||||
stdinToJmsoutChannel.send(MessageBuilder.withPayload("jms test").build());
|
||||
stdinToJmsOutChannel.send(MessageBuilder.withPayload("jms test").build());
|
||||
|
||||
final QueueChannel queueChannel = applicationContext.getBean("queueChannel", QueueChannel.class);
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2017 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.
|
||||
@@ -13,6 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.integration.samples.jms;
|
||||
|
||||
import org.junit.Assert;
|
||||
@@ -42,9 +43,9 @@ public class GatewayDemoTest {
|
||||
|
||||
final GenericXmlApplicationContext applicationContext = new GenericXmlApplicationContext(configFilesGatewayDemo);
|
||||
|
||||
final MessageChannel stdinToJmsoutChannel = applicationContext.getBean("stdinToJmsoutChannel", MessageChannel.class);
|
||||
final MessageChannel stdinToJmsOutChannel = applicationContext.getBean("stdinToJmsOutChannel", MessageChannel.class);
|
||||
|
||||
stdinToJmsoutChannel.send(MessageBuilder.withPayload("jms test").build());
|
||||
stdinToJmsOutChannel.send(MessageBuilder.withPayload("jms test").build());
|
||||
|
||||
final QueueChannel queueChannel = applicationContext.getBean("queueChannel", QueueChannel.class);
|
||||
|
||||
|
||||
@@ -1,3 +1 @@
|
||||
insert into PEOPLE(id, name, CREATED_DATE_TIME) values ('1001', 'Cartman', NOW());
|
||||
|
||||
INSERT INTO SEQUENCE(SEQ_NAME, SEQ_COUNT) values ('SEQ_GEN', 0);
|
||||
|
||||
@@ -4,6 +4,6 @@ DROP TABLE if EXISTS SEQUENCE;
|
||||
|
||||
CREATE TABLE OPENJPA_SEQUENCE_TABLE (ID TINYINT NOT NULL, SEQUENCE_VALUE BIGINT, PRIMARY KEY (ID));
|
||||
|
||||
CREATE TABLE SEQUENCE (SEQ_NAME VARCHAR(50), SEQ_COUNT DECIMAL(15));
|
||||
|
||||
CREATE TABLE PEOPLE (id BIGINT generated by default as identity, name VARCHAR(255), CREATED_DATE_TIME TIMESTAMP, PRIMARY KEY (id));
|
||||
|
||||
CREATE SEQUENCE HIBERNATE_SEQUENCE START WITH 1 INCREMENT BY 1;
|
||||
Reference in New Issue
Block a user