Added initial support for lazy style FunctionCatalog/Registry which:

-  does not rely on any of the existing wrappers and instead relies on internal wrapper which performs  in-flight/just-in-time wrapping and unwrapping from reactive to imperative types
- performs transparent type conversion relying on MessageConverters and ConversionService
- supports multiple inputs/outputs
This commit is contained in:
Oleg Zhurakousky
2019-06-05 08:24:49 +02:00
parent 85af2e4ed6
commit 93f7a248a5
20 changed files with 1830 additions and 55 deletions

View File

@@ -26,6 +26,7 @@ import java.util.function.Supplier;
import com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent;
import com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent;
import org.junit.After;
import org.junit.Test;
import org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration;
@@ -46,6 +47,11 @@ public class SpringBootApiGatewayRequestHandlerTests {
private SpringBootApiGatewayRequestHandler handler;
@After
public void after() {
System.clearProperty("function.name");
}
@Test
public void supplierBean() {
System.setProperty("function.name", "supplier");
@@ -143,6 +149,7 @@ public class SpringBootApiGatewayRequestHandlerTests {
.isEqualTo("GET");
assertThat(((APIGatewayProxyResponseEvent) output).getBody())
.isEqualTo("{\"value\":\"body\"}");
}
@Test