Commit Graph

27 Commits

Author SHA1 Message Date
Artem Bilan
7e8a67a7b8 Upgrade dependencies 2019-01-11 10:50:51 -05:00
Artem Bilan
398484f1f7 Upgrade dependencies & generate poms 2018-11-28 15:55:27 -05:00
Gary Russell
f0c0552a99 Version Upgrades 2018-09-10 14:19:14 -04:00
Artem Bilan
d4f96b9ca5 Upgrade to latest Spring dependencies 2018-07-30 13:32:02 -04:00
Gary Russell
41664f0501 Upgrade Spring Dependencies 2018-07-12 14:11:38 -04:00
Artem Bilan
72999587b1 Upgrade to SI.5.0.5, Boot 2.0.2 2018-05-09 14:57:34 -04:00
Artem Bilan
7e7642823b Check File.exists() before removal
https://build.spring.io/browse/INTSAMPLES-NIGHTLY-2401/
2018-03-20 13:59:56 -04:00
Artem Bilan
68490acf6f Fix race condition with in file-split-ftp
https://build.spring.io/browse/INTSAMPLES-NIGHTLY-2398/

* Remove `FileExistsMode.APPEND_NO_FLUSH` from the app.
It's not reliable for unit testing: keeps resources opened and cause
false positive assertions but at the same time no any interactions with
mock `session`
* Clean up test directories before and after tests
2018-03-19 12:51:23 -04:00
Artem Bilan
59d01cb6b3 Do not auto-start Inbound Channel Adapter
https://build.spring.io/browse/INTSAMPLES-NIGHTLY-JOB1-2397

To avoid race conditions with the test data and auto-started channel
adapter, it would be better to have channel adapter not started in the
beginning and prepare test data and only after that start it manually.

The race condition is when we have old data in the directory to poll
2018-03-16 10:56:13 -04:00
Gary Russell
e1929d1d3d Updgrade to Boot 2.0.0.RELEASE 2018-03-01 09:06:46 -05:00
The Alchemist
26ece34c3d Fix URL to Spring Flo 2017-12-14 09:04:35 -08:00
Artem Bilan
6ce495e427 Upgrade to Mockito-2.10.0 and appropriate fixes 2017-09-21 15:46:21 -04:00
Gary Russell
e37904128e INTSAMPLES-150: Switch to Log4j2
JIRA: https://jira.spring.io/browse/INTSAMPLES-150
2017-09-01 16:14:34 -04:00
Artem Bilan
5956cf8cfb Fix FTP sample tests to use bigger idle
https://build.spring.io/browse/INTSAMPLES-NIGHTLY-2059/

Fix `JmsMockTests` stubbing via making endpoint stopped before mocking

Force SI and SF versions via their BOMs imports
Regenerate POMs including `dependencyManagement` for BOMs customization
2017-04-11 11:56:08 -04:00
Artem Bilan
2b80cf25a8 Upgrade to SI-5.0 M3
* Fix Spring Boot 2.0 B-S compatibility
* Fix deprecation warnings
* regenerate POMs according new dependency versions
2017-04-05 17:09:49 -04:00
Artem Bilan
a21a2444ef Change Kafka Samples to use Boot auto-config
Remove `@IntegrationComponentScan` from Boot samples

Since the latest Spring Boot utilize already `@IntegrationComponentScan` for the `@SpringBootApplication` class package, there is no reason to worry about lost `@MessagingGateway`

Reflect Kafka samples changes according latest Spring Boot fixes
2017-01-16 13:23:50 -05:00
Artem Bilan
5f524dc534 Upgrade to SI-5.0 & SIK-3.0, Reactor 3.0
* Fix compatibility after Java DSL migration to the SI Core
* Also upgrade all the JMS sample to the JMS 2.0
* Fix default `connectionFactory` bean reference to the current `jmsConnectionFactory`
* Remove unsupported JPA-1.0 Spec via `OpenJpaAutoConfiguration`, since the minimum now is JPA-2.0
* Remove non-lambda sample since minimum now is Java 8
* Rename `PromiseTest` to `MonoTest` and fix it to Reactor 3.0
* Fix `stomp-server.xml` to use proper Reactor 3.0 `eactor.util.function.Tuples` for SpEL
* Regenerate POMs
2016-11-18 14:11:32 -05:00
Artem Bilan
a6bf188099 regenerate POMs 2016-11-11 13:46:03 -05:00
Artem Bilan
e35d441691 File-split-ftp: fix read files race condition
https://build.spring.io/browse/INTSAMPLES-NIGHTLY-1898/

There is no guarantee that if `File.exists()`, the real write to file has occurred

 * Add `while()` to check not only `File.exists()` but also its `length()` only after that proceed to assert logic
2016-10-25 10:34:54 -04:00
Gary Russell
171dd51024 Update file-split-ftp Visualization 2016-10-14 14:21:07 -04:00
Artem Bilan
ef31a187c4 Revert usage for fileNameExpression
Since we provide a custom `FileNameGenerator` via `fileNameExpression` we should ensure somehow `BeanFactory` injection to that
`FileWritingMessageHandlerSpec` is a `FactoryBean` since version DSL `1.2` and a particular `BPP` takes care about `Spec` internals and register custom `FileNameGenerator` as a bean.

 Use standard `FactoryBean` injection in the `lines()` flow to populate the target `FileWritingMessageHandler` to the flow
Generate pom for all project to apply SI Java DSL 1.2 GA
2016-10-14 13:28:27 -04:00
Artem Bilan
a9d653b19e Upgrade to SI-Java_DSL-1.2.RELEASE
Fixes GH-180 (https://github.com/spring-projects/spring-integration-samples/issues/180)

* Apply `PollerSpec.errorChannel(String)` style
* Replace `fileNameExpression()` to `fileNameGenerator()` to avoid `No BeanFactory` for `EvaluationContext`
* Use `.trigger()` instead of `.handle()` for `FileWritingMessageHandler.trigger()`
* Fix race condition in test, when file exists already, but there is no content yet
2016-10-14 12:57:42 -04:00
Gary Russell
948e5135cd Generate POMs 2016-10-14 11:35:47 -04:00
Gary Russell
933b3f015a file-split-ftp Move errorChannel to Poller 2016-10-13 17:22:33 -04:00
Gary Russell
b3bab0dea2 Revert "file-split-ftp Move errorChannel to Poller"
This reverts commit 7b84810388.
2016-10-13 17:21:49 -04:00
Gary Russell
7b84810388 file-split-ftp Move errorChannel to Poller 2016-10-13 17:18:17 -04:00
Gary Russell
2c1a070930 Add file-split-ftp Sample
JIRA: https://jira.spring.io/browse/INTSAMPLES-149

Polishing - PR Comments

Polishing - Work Around DSL Issue #119

Make test compatible with Windows.
Also reset Application context `DirtiesContext.ClassMode.AFTER_EACH_TEST_METHOD`.
Since tests uses the same target resources we should be sure that they use clear foundation before running
2016-09-21 11:15:14 -04:00