Polishing

Resolves #483
This commit is contained in:
Oleg Zhurakousky
2020-04-08 15:17:44 +02:00
parent b91d6ee008
commit c9b72398d5
2 changed files with 3 additions and 13 deletions

View File

@@ -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.

View File

@@ -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 <I, O> void verify(Class mainClass, String function, I input, O expectedOutput) {
public static <I, O> 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() {