File tree Expand file tree Collapse file tree 3 files changed +6
-12
lines changed
spring-cloud-function-context/src/test/java/org/springframework/cloud/function/context/catalog
spring-cloud-function-web
src/main/java/org/springframework/cloud/function/web/flux Expand file tree Collapse file tree 3 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -108,15 +108,6 @@ public void before() {
108108 System .clearProperty ("spring.cloud.function.definition" );
109109 }
110110
111- @ SuppressWarnings ({ "rawtypes" , "unchecked" })
112- @ Test
113- public void testEmptyPojoConversion () {
114- FunctionCatalog catalog = this .configureCatalog (EmptyPojoConfiguratioin .class );
115- Function function = catalog .lookup ("echo" );
116- String result = (String ) function .apply (MessageBuilder .withPayload (new EmptyPojo ()).build ());
117- assertThat (result ).isEqualTo ("{}" );
118- }
119-
120111 @ SuppressWarnings ({ "rawtypes" , "unchecked" })
121112 @ Test
122113 public void testCompositionWithNonExistingFunction () throws Exception {
Original file line number Diff line number Diff line change 5959 <artifactId >spring-boot-starter-webflux</artifactId >
6060 <optional >true</optional >
6161 </dependency >
62+ <dependency >
63+ <groupId >org.springframework.boot</groupId >
64+ <artifactId >spring-boot-webflux</artifactId >
65+ <optional >true</optional >
66+ </dependency >
6267 <dependency >
6368 <groupId >org.springframework.boot</groupId >
6469 <artifactId >spring-boot-configuration-processor</artifactId >
Original file line number Diff line number Diff line change 2424import org .springframework .boot .autoconfigure .condition .ConditionalOnMissingBean ;
2525import org .springframework .boot .autoconfigure .condition .ConditionalOnWebApplication ;
2626import org .springframework .boot .autoconfigure .condition .ConditionalOnWebApplication .Type ;
27- import org .springframework .boot .gson .autoconfigure .GsonAutoConfiguration ;
28- import org .springframework .boot .jackson .autoconfigure .JacksonAutoConfiguration ;
2927import org .springframework .cloud .function .context .FunctionCatalog ;
3028import org .springframework .cloud .function .context .FunctionProperties ;
3129import org .springframework .cloud .function .web .BasicStringConverter ;
4442@ ConditionalOnClass ({ Flux .class , AsyncHandlerMethodReturnValueHandler .class })
4543@ ConditionalOnWebApplication (type = Type .REACTIVE )
4644@ Import (FunctionController .class )
47- @ AutoConfigureAfter ({ JacksonAutoConfiguration . class , GsonAutoConfiguration . class })
45+ @ AutoConfigureAfter (name = { "org.springframework.boot.jackson.autoconfigure.JacksonAutoConfiguration" , "org.springframework.boot.gson.autoconfigure.GsonAutoConfiguration" })
4846public class ReactorAutoConfiguration {
4947
5048 @ Bean
You can’t perform that action at this time.
0 commit comments