Skip to content

Commit d9e09b9

Browse files
committed
Test that Kotlin synthetic classes work in SpEL
Related to spring-projects/spring-framework#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
1 parent feae9d8 commit d9e09b9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ ext {
9393
springDataVersion = 'Moore-SR1'
9494
springSecurityVersion = '5.2.1.RELEASE'
9595
springRetryVersion = '1.2.4.RELEASE'
96-
springVersion = project.hasProperty('springVersion') ? project.springVersion : '5.2.1.RELEASE'
96+
springVersion = project.hasProperty('springVersion') ? project.springVersion : '5.2.2.BUILD-SNAPSHOT'
9797
springWsVersion = '3.0.8.RELEASE'
9898
tomcatVersion = "9.0.27"
9999
xstreamVersion = '1.4.11.1'

spring-integration-core/src/test/kotlin/org/springframework/integration/function/FunctionsTests.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ class FunctionsTests {
167167

168168
@Bean
169169
fun flowFromSupplier() =
170-
IntegrationFlows.from<String>({ "bar" }) { e -> e.poller { p -> p.fixedDelay(10).maxMessagesPerPoll(1) } }
170+
IntegrationFlows.from<String>({ "" }) { e -> e.poller { p -> p.fixedDelay(10).maxMessagesPerPoll(1) } }
171+
.transform<String, String> { "blank" }
171172
.channel { c -> c.queue("fromSupplierQueue") }
172173
.get()
173174

0 commit comments

Comments
 (0)