From c9b72398d593e31fecaa227361c588f6f1ddb43e Mon Sep 17 00:00:00 2001 From: Oleg Zhurakousky Date: Wed, 8 Apr 2020 15:17:44 +0200 Subject: [PATCH] Polishing Resolves #483 --- .../FunctionInvokerIntegrationTests.java | 2 +- .../gcloud/integration/LocalServerTestSupport.java | 14 ++------------ 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/spring-cloud-function-adapters/spring-cloud-function-adapter-gcp/src/test/java/org/springframework/cloud/function/adapter/gcloud/integration/FunctionInvokerIntegrationTests.java b/spring-cloud-function-adapters/spring-cloud-function-adapter-gcp/src/test/java/org/springframework/cloud/function/adapter/gcloud/integration/FunctionInvokerIntegrationTests.java index dc5f73f02..5fe9105f2 100644 --- a/spring-cloud-function-adapters/spring-cloud-function-adapter-gcp/src/test/java/org/springframework/cloud/function/adapter/gcloud/integration/FunctionInvokerIntegrationTests.java +++ b/spring-cloud-function-adapters/spring-cloud-function-adapter-gcp/src/test/java/org/springframework/cloud/function/adapter/gcloud/integration/FunctionInvokerIntegrationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2020 the original author or authors. + * Copyright 2020-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/spring-cloud-function-adapters/spring-cloud-function-adapter-gcp/src/test/java/org/springframework/cloud/function/adapter/gcloud/integration/LocalServerTestSupport.java b/spring-cloud-function-adapters/spring-cloud-function-adapter-gcp/src/test/java/org/springframework/cloud/function/adapter/gcloud/integration/LocalServerTestSupport.java index 4061c5d1f..04df86185 100644 --- a/spring-cloud-function-adapters/spring-cloud-function-adapter-gcp/src/test/java/org/springframework/cloud/function/adapter/gcloud/integration/LocalServerTestSupport.java +++ b/spring-cloud-function-adapters/spring-cloud-function-adapter-gcp/src/test/java/org/springframework/cloud/function/adapter/gcloud/integration/LocalServerTestSupport.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2020 the original author or authors. + * Copyright 2020-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -64,7 +64,7 @@ public class LocalServerTestSupport { /** * Starts up the Cloud Function Server and executes the test */ - public static void verify(Class mainClass, String function, I input, O expectedOutput) { + public static void verify(Class mainClass, String function, I input, O expectedOutput) { try (ServerProcess serverProcess = LocalServerTestSupport.startServer(mainClass, function)) { TestRestTemplate testRestTemplate = new TestRestTemplate(); @@ -140,7 +140,6 @@ public class LocalServerTestSupport { } } catch (IOException e) { - e.printStackTrace(); throw new UncheckedIOException(e); } } @@ -166,15 +165,6 @@ public class LocalServerTestSupport { return process; } - Future outputMonitorResult() { - return outputMonitorResult; - } - - String output() { - synchronized (output) { - return output.toString(); - } - } @Override public void close() {