Bring Thrift test code up to date
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664852 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/test/java/src/TestClient.java b/test/java/src/TestClient.java
index 546265c..7e2e49e 100644
--- a/test/java/src/TestClient.java
+++ b/test/java/src/TestClient.java
@@ -69,9 +69,9 @@
}
TBinaryProtocol binaryProtocol =
- new TBinaryProtocol();
+ new TBinaryProtocol(transport, transport);
ThriftTest.Client testClient =
- new ThriftTest.Client(transport, binaryProtocol);
+ new ThriftTest.Client(binaryProtocol);
long timeMin = 0;
long timeMax = 0;
diff --git a/test/java/src/TestServer.java b/test/java/src/TestServer.java
index fe70594..bf3f685 100644
--- a/test/java/src/TestServer.java
+++ b/test/java/src/TestServer.java
@@ -237,12 +237,10 @@
}
// Processor
- TBinaryProtocol binaryProtocol =
- new TBinaryProtocol();
TestHandler testHandler =
new TestHandler();
ThriftTest.Processor testProcessor =
- new ThriftTest.Processor(testHandler, binaryProtocol);
+ new ThriftTest.Processor(testHandler);
// Transport
TServerSocket tServerSocket =
@@ -254,7 +252,7 @@
// serverEngine = new TSimpleServer(testProcessor, tServerSocket);
// ThreadPool Server
- serverEngine = new TThreadPoolServer(testProcessor, tServerSocket);
+ serverEngine = new TThreadPoolServer(testProcessor, tServerSocket);
// Run it
System.out.println("Starting the server on port " + port + "...");