core: Java Refactor

Duplicate throws exception, and Javadoc issues: ManagedChannelImplTransportManagerTest.java has been deleted.
This commit is contained in:
myPrecious 2017-08-10 00:11:19 +08:00 committed by ZHANG Dapeng
parent 8585cd5e0d
commit f46280ae9f
2 changed files with 4 additions and 12 deletions

View File

@ -51,8 +51,6 @@ import org.mockito.MockitoAnnotations;
/**
* Unit tests for {@link InternalSubchannel}.
*
* <p>It only tests the logic that is not covered by {@link ManagedChannelImplTransportManagerTest}.
*/
@RunWith(JUnit4.class)
public class InternalSubchannelTest {

View File

@ -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");