Skip to content

Commit e46ed8a

Browse files
committed
Polishing
1 parent 936726a commit e46ed8a

File tree

1 file changed

+5
-6
lines changed
  • spring-cloud-function-adapters/spring-cloud-function-adapter-aws/src/test/java/org/springframework/cloud/function/adapter/aws

1 file changed

+5
-6
lines changed

spring-cloud-function-adapters/spring-cloud-function-adapter-aws/src/test/java/org/springframework/cloud/function/adapter/aws/FunctionInvokerTests.java

+5-6
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public class FunctionInvokerTests {
108108
+ " \"timestamp\": 1712716805129\n"
109109
+ " }\n"
110110
+ "}";
111-
111+
112112
String scheduleEvent = "{\n"
113113
+ " \"version\": \"0\",\n"
114114
+ " \"id\": \"17793124-05d4-b198-2fde-7ededc63b103\",\n"
@@ -766,7 +766,7 @@ public void before() throws Exception {
766766
System.clearProperty("spring.cloud.function.definition");
767767
//this.getEnvironment().clear();
768768
}
769-
769+
770770
@Test
771771
public void testScheduledEvent() throws Exception {
772772
System.setProperty("MAIN_CLASS", ScheduledEventConfiguration.class.getName());
@@ -777,8 +777,7 @@ public void testScheduledEvent() throws Exception {
777777
ByteArrayOutputStream output = new ByteArrayOutputStream();
778778
invoker.handleRequest(targetStream, output, null);
779779
String result = new String(output.toByteArray(), StandardCharsets.UTF_8);
780-
System.out.println("Result: " + result);
781-
//assertThat(result).contains("APIGatewayCustomAuthorizerEvent(version=null, type=TOKEN");
780+
assertThat(result).contains("IYV3p45BT0ac8hjHg1houSdS1a.Mro8e");
782781
}
783782

784783
@SuppressWarnings({ "rawtypes", "unchecked" })
@@ -2014,11 +2013,11 @@ public String toString() {
20142013
return this.name;
20152014
}
20162015
}
2017-
2016+
20182017
@EnableAutoConfiguration
20192018
@Configuration
20202019
public static class ScheduledEventConfiguration {
2021-
2020+
20222021
@Bean
20232022
public Function<ScheduledEvent, ScheduledEvent> event() {
20242023
return event -> {

0 commit comments

Comments
 (0)