Skip to content

Commit

Permalink
Test that Kotlin synthetic classes work in SpEL
Browse files Browse the repository at this point in the history
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
  • Loading branch information
artembilan committed Nov 19, 2019
1 parent 0c6b067 commit c19782f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Expand Up @@ -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'
Expand Down
Expand Up @@ -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()

Expand Down

0 comments on commit c19782f

Please sign in to comment.