You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by kc...@apache.org on 2008/06/18 03:04:18 UTC
svn commit: r668938 -
/incubator/thrift/trunk/test/rb/integration/test_simple_handler.rb
Author: kclark
Date: Tue Jun 17 18:04:18 2008
New Revision: 668938
URL: http://svn.apache.org/viewvc?rev=668938&view=rev
Log:
Fix the last of the deprecated names in tests
Modified:
incubator/thrift/trunk/test/rb/integration/test_simple_handler.rb
Modified: incubator/thrift/trunk/test/rb/integration/test_simple_handler.rb
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/test/rb/integration/test_simple_handler.rb?rev=668938&r1=668937&r2=668938&view=diff
==============================================================================
--- incubator/thrift/trunk/test/rb/integration/test_simple_handler.rb (original)
+++ incubator/thrift/trunk/test/rb/integration/test_simple_handler.rb Tue Jun 17 18:04:18 2008
@@ -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 @@
# 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