From d639ac13b5839c149b82e77621a631b3664310a4 Mon Sep 17 00:00:00 2001 From: Kevin Clark Date: Wed, 18 Jun 2008 01:04:18 +0000 Subject: [PATCH] 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 --- test/rb/integration/test_simple_handler.rb | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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 -- 2.17.1