From 26bc8a5b5b9d1ddc5b2b3992dc818da10f582b8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjetil=20=C3=98rbekk?= Date: Wed, 11 Apr 2012 14:54:20 +0200 Subject: Rename NewRpcChannel => RpcChannel. --- src/test/java/com/orbekk/protobuf/ProtobufFunctionalTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/test/java/com/orbekk/protobuf') diff --git a/src/test/java/com/orbekk/protobuf/ProtobufFunctionalTest.java b/src/test/java/com/orbekk/protobuf/ProtobufFunctionalTest.java index 1f1bc46..bf30f59 100644 --- a/src/test/java/com/orbekk/protobuf/ProtobufFunctionalTest.java +++ b/src/test/java/com/orbekk/protobuf/ProtobufFunctionalTest.java @@ -35,12 +35,12 @@ public class ProtobufFunctionalTest { CountDownLatch returnC = new CountDownLatch(1); SimpleProtobufServer server = SimpleProtobufServer.create(0, 50, 1); int serverport = server.getPort(); - NewRpcChannel channel; + RpcChannel channel; TestService directService = new TestService(); Test.Service service; @Before public void setUp() throws Exception { - channel = NewRpcChannel.create("localhost", serverport); + channel = RpcChannel.create("localhost", serverport); service = Test.Service.newStub(channel); server.start(); server.registerService(directService); @@ -79,7 +79,7 @@ public class ProtobufFunctionalTest { } @org.junit.Test public void testNewRpcChannel() throws Exception { - NewRpcChannel channel = NewRpcChannel.create("localhost", serverport); + RpcChannel channel = RpcChannel.create("localhost", serverport); Test.Service service = Test.Service.newStub(channel); Test.Type1 request = Test.Type1.newBuilder().build(); int count = 10000; @@ -100,7 +100,7 @@ public class ProtobufFunctionalTest { } @org.junit.Test public void testDoneSignal() throws Exception { - NewRpcChannel channel = NewRpcChannel.create("localhost", serverport); + RpcChannel channel = RpcChannel.create("localhost", serverport); Test.Service service = Test.Service.newStub(channel); Test.Type1 request = Test.Type1.newBuilder().build(); -- cgit v1.2.3