Merge additional test to ensure propper type conversion
This commit is contained in:
@@ -565,7 +565,7 @@ public class BeanFactoryAwareFunctionRegistryTests {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testGH_608_C() {
|
public void testGH_608_C() {
|
||||||
ApplicationContext context = new SpringApplicationBuilder(MessageFunctionConfiguration.class)
|
ApplicationContext context = new SpringApplicationBuilder(SampleFunctionConfiguration.class)
|
||||||
.run("--logging.level.org.springframework.cloud.function=DEBUG",
|
.run("--logging.level.org.springframework.cloud.function=DEBUG",
|
||||||
"--spring.main.lazy-initialization=true");
|
"--spring.main.lazy-initialization=true");
|
||||||
FunctionCatalog catalog = context.getBean(FunctionCatalog.class);
|
FunctionCatalog catalog = context.getBean(FunctionCatalog.class);
|
||||||
@@ -836,11 +836,6 @@ public class BeanFactoryAwareFunctionRegistryTests {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@Bean
|
|
||||||
public Function<Flux<Message<Event<String, Person>>>, Flux<String>> echoGenericObjectFlux() {
|
|
||||||
return x -> x.map(eventMessage -> eventMessage.getPayload().getData().getName());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@EnableAutoConfiguration
|
@EnableAutoConfiguration
|
||||||
@@ -849,6 +844,11 @@ public class BeanFactoryAwareFunctionRegistryTests {
|
|||||||
|
|
||||||
AtomicReference<Object> consumerInputRef = new AtomicReference<>();
|
AtomicReference<Object> consumerInputRef = new AtomicReference<>();
|
||||||
|
|
||||||
|
@Bean
|
||||||
|
public Function<Flux<Message<Event<String, Person>>>, Flux<String>> echoGenericObjectFlux() {
|
||||||
|
return x -> x.map(eventMessage -> eventMessage.getPayload().getData().getName());
|
||||||
|
}
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
public Function<Person, Person> uppercasePerson() {
|
public Function<Person, Person> uppercasePerson() {
|
||||||
return person -> {
|
return person -> {
|
||||||
|
|||||||
Reference in New Issue
Block a user