From f46280ae9f77d2c6e80e630f72a74c8e07280cc7 Mon Sep 17 00:00:00 2001 From: myPrecious Date: Thu, 10 Aug 2017 00:11:19 +0800 Subject: [PATCH] core: Java Refactor Duplicate throws exception, and Javadoc issues: ManagedChannelImplTransportManagerTest.java has been deleted. --- .../io/grpc/internal/InternalSubchannelTest.java | 2 -- .../io/grpc/testing/integration/ProxyTest.java | 14 ++++---------- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/core/src/test/java/io/grpc/internal/InternalSubchannelTest.java b/core/src/test/java/io/grpc/internal/InternalSubchannelTest.java index 3e5f03df13..12cad64bf2 100644 --- a/core/src/test/java/io/grpc/internal/InternalSubchannelTest.java +++ b/core/src/test/java/io/grpc/internal/InternalSubchannelTest.java @@ -51,8 +51,6 @@ import org.mockito.MockitoAnnotations; /** * Unit tests for {@link InternalSubchannel}. - * - *

It only tests the logic that is not covered by {@link ManagedChannelImplTransportManagerTest}. */ @RunWith(JUnit4.class) public class InternalSubchannelTest { diff --git a/interop-testing/src/test/java/io/grpc/testing/integration/ProxyTest.java b/interop-testing/src/test/java/io/grpc/testing/integration/ProxyTest.java index ee5dc5c64d..62cd0d82ba 100644 --- a/interop-testing/src/test/java/io/grpc/testing/integration/ProxyTest.java +++ b/interop-testing/src/test/java/io/grpc/testing/integration/ProxyTest.java @@ -24,8 +24,6 @@ import java.io.DataOutputStream; import java.io.IOException; import java.net.ServerSocket; import java.net.Socket; -import java.net.UnknownHostException; -import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.ThreadPoolExecutor; @@ -60,8 +58,7 @@ public class ProxyTest { } @Test - public void smallLatency() - throws UnknownHostException, IOException, InterruptedException, ExecutionException { + public void smallLatency() throws Exception { server = new Server(); int serverPort = server.init(); executor.execute(server); @@ -92,8 +89,7 @@ public class ProxyTest { } @Test - public void bigLatency() - throws UnknownHostException, IOException, InterruptedException, ExecutionException { + public void bigLatency() throws Exception { server = new Server(); int serverPort = server.init(); executor.execute(server); @@ -123,8 +119,7 @@ public class ProxyTest { } @Test - public void smallBandwidth() - throws UnknownHostException, IOException, InterruptedException, ExecutionException { + public void smallBandwidth() throws Exception { server = new Server(); int serverPort = server.init(); server.setMode("stream"); @@ -149,8 +144,7 @@ public class ProxyTest { } @Test - public void largeBandwidth() - throws UnknownHostException, IOException, InterruptedException, ExecutionException { + public void largeBandwidth() throws Exception { server = new Server(); int serverPort = server.init(); server.setMode("stream");