Fix SI sample for compatibility with latest SI

* Fix test `FunctionSampleSpringIntegrationApplicationTests` to use AssertJ
This commit is contained in:
Artem Bilan
2020-08-14 16:43:47 -04:00
committed by Oleg Zhurakousky
parent f2f1432912
commit c33b2a4dbf
3 changed files with 7 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2019 the original author or authors.
* Copyright 2019-2020 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.
@@ -35,7 +35,7 @@ public class FunctionSampleSpringIntegrationApplication {
@Bean
public IntegrationFlow uppercaseFlow() {
return IntegrationFlows.from(MessageFunction.class, "uppercase")
return IntegrationFlows.from(MessageFunction.class, (gateway) -> gateway.beanName("uppercase"))
.<String, String>transform(String::toUpperCase)
.logAndReply(LoggingHandler.Level.WARN);
}
@@ -43,4 +43,5 @@ public class FunctionSampleSpringIntegrationApplication {
public interface MessageFunction extends Function<Message<String>, Message<String>> {
}
}