Fix typo.
Fix typo.
This commit is contained in:
committed by
Oleg Zhurakousky
parent
c5c1c2cd04
commit
c08cf7ffcb
@@ -800,7 +800,7 @@ public class FunctionInvokerTests {
|
|||||||
@Test
|
@Test
|
||||||
public void testApiGatewayPojoReturninPojo() throws Exception {
|
public void testApiGatewayPojoReturninPojo() throws Exception {
|
||||||
System.setProperty("MAIN_CLASS", ApiGatewayConfiguration.class.getName());
|
System.setProperty("MAIN_CLASS", ApiGatewayConfiguration.class.getName());
|
||||||
System.setProperty("spring.cloud.function.definition", "uppercasePojoReurnPojo");
|
System.setProperty("spring.cloud.function.definition", "uppercasePojoReturnPojo");
|
||||||
FunctionInvoker invoker = new FunctionInvoker();
|
FunctionInvoker invoker = new FunctionInvoker();
|
||||||
|
|
||||||
InputStream targetStream = new ByteArrayInputStream(this.apiGatewayEventWithStructuredBody.getBytes());
|
InputStream targetStream = new ByteArrayInputStream(this.apiGatewayEventWithStructuredBody.getBytes());
|
||||||
@@ -1305,7 +1305,7 @@ public class FunctionInvokerTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
public Function<Person, Person> uppercasePojoReurnPojo() {
|
public Function<Person, Person> uppercasePojoReturnPojo() {
|
||||||
return v -> {
|
return v -> {
|
||||||
Person p = new Person();
|
Person p = new Person();
|
||||||
p.setName(v.getName().toUpperCase());
|
p.setName(v.getName().toUpperCase());
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ import org.springframework.messaging.converter.CompositeMessageConverter;
|
|||||||
import org.springframework.util.StringUtils;
|
import org.springframework.util.StringUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implementation of {@link FunctionRegistry} capable of discovering functioins in {@link BeanFactory}.
|
* Implementation of {@link FunctionRegistry} capable of discovering functions in {@link BeanFactory}.
|
||||||
*
|
*
|
||||||
* @author Oleg Zhurakousky
|
* @author Oleg Zhurakousky
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user