From: Kevin Clark Date: Wed, 18 Jun 2008 01:04:18 +0000 (+0000) Subject: Fix the last of the deprecated names in tests X-Git-Tag: 0.2.0~611 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=d639ac13b5839c149b82e77621a631b3664310a4;p=common%2Fthrift.git Fix the last of the deprecated names in tests git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668938 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/test/rb/integration/test_simple_handler.rb b/test/rb/integration/test_simple_handler.rb index 509f452f..7dd2fbc2 100644 --- a/test/rb/integration/test_simple_handler.rb +++ b/test/rb/integration/test_simple_handler.rb @@ -1,8 +1,7 @@ require File.join(File.dirname(__FILE__), '../test_helper') -require 'thrift/transport/tsocket' -require 'thrift/protocol/tbinaryprotocol' -require 'thrift/server/tserver' +require 'thrift' +require 'thrift/protocol/binaryprotocol' require 'ThriftTest' class TestHandler @@ -47,14 +46,14 @@ class TestThrift < Test::Unit::TestCase # Initialize the server @handler = TestHandler.new() @processor = Thrift::Test::ThriftTest::Processor.new(@handler) - @transport = TServerSocket.new(9090) - @server = TThreadedServer.new(@processor, @transport) + @transport = Thrift::ServerSocket.new(9090) + @server = Thrift::ThreadedServer.new(@processor, @transport) @thread = Thread.new { @server.serve } # And the Client - @socket = TSocket.new('localhost', 9090) - @protocol = TBinaryProtocol.new(@socket) + @socket = Thrift::Socket.new('localhost', 9090) + @protocol = Thrift::BinaryProtocol.new(@socket) @client = Thrift::Test::ThriftTest::Client.new(@protocol) @socket.open end