Polish checkstyles in GCP module

Resolves #520
This commit is contained in:
谭繁华
2020-05-15 17:33:52 +08:00
committed by Oleg Zhurakousky
parent d74111785d
commit f279010aab
2 changed files with 8 additions and 2 deletions

View File

@@ -47,6 +47,9 @@ public class FunctionInvokerBackgroundTests {
private static final Gson gson = new Gson(); private static final Gson gson = new Gson();
/**
* The rule for log.
*/
@Rule @Rule
public final SystemOutRule systemOutRule = new SystemOutRule().enableLog(); public final SystemOutRule systemOutRule = new SystemOutRule().enableLog();

View File

@@ -51,7 +51,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Daniel Zou * @author Daniel Zou
* @author Mike Eltsufin * @author Mike Eltsufin
*/ */
public class LocalServerTestSupport { final public class LocalServerTestSupport {
private static final Gson gson = new Gson(); private static final Gson gson = new Gson();
@@ -61,8 +61,11 @@ public class LocalServerTestSupport {
private static AtomicInteger nextPort = new AtomicInteger(8080); private static AtomicInteger nextPort = new AtomicInteger(8080);
private LocalServerTestSupport() {
}
/** /**
* Starts up the Cloud Function Server and executes the test * 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)) { try (ServerProcess serverProcess = LocalServerTestSupport.startServer(mainClass, function)) {