Update s-c-build to 3.0.0 snapshot
This commit is contained in:
committed by
Oleg Zhurakousky
parent
3d941329e7
commit
8b3b0815a4
@@ -18,8 +18,8 @@ package org.springframework.cloud.stream.binder.stub1;
|
||||
|
||||
import org.springframework.beans.BeansException;
|
||||
import org.springframework.beans.factory.BeanFactory;
|
||||
import org.springframework.boot.actuate.health.ApplicationHealthIndicator;
|
||||
import org.springframework.boot.actuate.health.HealthIndicator;
|
||||
import org.springframework.boot.actuate.health.PingHealthIndicator;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
import org.springframework.cloud.stream.binder.Binder;
|
||||
@@ -55,7 +55,7 @@ public class StubBinder1Configuration {
|
||||
|
||||
@Bean
|
||||
public HealthIndicator binderHealthIndicator() {
|
||||
return new ApplicationHealthIndicator();
|
||||
return new PingHealthIndicator();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -842,10 +842,9 @@ public class ImplicitFunctionBindingTests {
|
||||
@EnableAutoConfiguration
|
||||
public static class FunctionSampleSpringIntegrationConfiguration {
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user