Test that Kotlin synthetic classes work in SpEL

Related to https://github.com/spring-projects/spring-framework/issues/23812

* Modify `FunctionsTests.kt` test to be sure that fall back to SpEL
invocation in case of Kotlin lambda works as expected.
This is like an additional test to the fix in Spring Framework
This commit is contained in:
Artem Bilan
2019-11-13 10:09:08 -05:00
parent feae9d8dcd
commit d9e09b93fc
2 changed files with 3 additions and 2 deletions

View File

@@ -93,7 +93,7 @@ ext {
springDataVersion = 'Moore-SR1'
springSecurityVersion = '5.2.1.RELEASE'
springRetryVersion = '1.2.4.RELEASE'
springVersion = project.hasProperty('springVersion') ? project.springVersion : '5.2.1.RELEASE'
springVersion = project.hasProperty('springVersion') ? project.springVersion : '5.2.2.BUILD-SNAPSHOT'
springWsVersion = '3.0.8.RELEASE'
tomcatVersion = "9.0.27"
xstreamVersion = '1.4.11.1'

View File

@@ -167,7 +167,8 @@ class FunctionsTests {
@Bean
fun flowFromSupplier() =
IntegrationFlows.from<String>({ "bar" }) { e -> e.poller { p -> p.fixedDelay(10).maxMessagesPerPoll(1) } }
IntegrationFlows.from<String>({ "" }) { e -> e.poller { p -> p.fixedDelay(10).maxMessagesPerPoll(1) } }
.transform<String, String> { "blank" }
.channel { c -> c.queue("fromSupplierQueue") }
.get()