Fix typo.

Fix typo.
This commit is contained in:
Maciej Walkowiak
2022-07-20 00:04:29 +02:00
committed by Oleg Zhurakousky
parent c5c1c2cd04
commit c08cf7ffcb
2 changed files with 3 additions and 3 deletions

View File

@@ -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());

View File

@@ -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
*/ */