diff options
author | Kevin Clark <kclark@apache.org> | 2008-06-18 01:04:18 +0000 |
---|---|---|
committer | Kevin Clark <kclark@apache.org> | 2008-06-18 01:04:18 +0000 |
commit | d639ac13b5839c149b82e77621a631b3664310a4 (patch) | |
tree | a42cee3b7fe593072827587f7ae93931bbaac07e /test/rb | |
parent | 9d33041a1be82e79c7bb89393bbe9c7f78fe93cd (diff) | |
download | thrift-d639ac13b5839c149b82e77621a631b3664310a4.tar.gz |
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
Diffstat (limited to 'test/rb')
-rw-r--r-- | test/rb/integration/test_simple_handler.rb | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/test/rb/integration/test_simple_handler.rb b/test/rb/integration/test_simple_handler.rb index 509f452fa..7dd2fbc2f 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 |