diff options
author | Bryan Duxbury <bryanduxbury@apache.org> | 2009-03-24 05:23:52 +0000 |
---|---|---|
committer | Bryan Duxbury <bryanduxbury@apache.org> | 2009-03-24 05:23:52 +0000 |
commit | e8ae5d3728de07e880d6477db0f63ed9a7c65415 (patch) | |
tree | 3b55ef7506d405e597aaf053d78b1dd00f279c2f /test/rb | |
parent | 127d01cb0635dcf9c4650c00ef822b9f6bd7be85 (diff) | |
download | thrift-e8ae5d3728de07e880d6477db0f63ed9a7c65415.tar.gz |
THRIFT-275. rb: Remove deprecated classes from Ruby library
This patch removes all the deprecation stuff and the t*.rb classes that were only placeholders. In addition, I've changed the implementations of some "abstract" methods to throw NotImplementedError instead of returning nil, and fixed the test accordingly. Finally, I removed the no longer required borrow and consume methods from all the transport implementations that had them. (Borrow and consume have been supplanted by the thrift_native package.)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@757668 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/rb')
-rw-r--r-- | test/rb/core/test_backwards_compatability.rb | 2 | ||||
-rw-r--r-- | test/rb/core/test_exceptions.rb | 2 | ||||
-rw-r--r-- | test/rb/core/transport/test_transport.rb | 4 |
3 files changed, 2 insertions, 6 deletions
diff --git a/test/rb/core/test_backwards_compatability.rb b/test/rb/core/test_backwards_compatability.rb index 2e5330d5c..eda1ec4b8 100644 --- a/test/rb/core/test_backwards_compatability.rb +++ b/test/rb/core/test_backwards_compatability.rb @@ -1,6 +1,6 @@ require File.join(File.dirname(__FILE__), '../test_helper') -require 'thrift/thrift' +require 'thrift' class TestThriftException < Test::Unit::TestCase def test_has_accessible_message diff --git a/test/rb/core/test_exceptions.rb b/test/rb/core/test_exceptions.rb index 88aacb0b6..8488baa4b 100644 --- a/test/rb/core/test_exceptions.rb +++ b/test/rb/core/test_exceptions.rb @@ -1,6 +1,6 @@ require File.join(File.dirname(__FILE__), '../test_helper') -require 'thrift/thrift' +require 'thrift' class TestException < Test::Unit::TestCase def test_has_accessible_message diff --git a/test/rb/core/transport/test_transport.rb b/test/rb/core/transport/test_transport.rb index 7a62e5a3c..1cf001ff7 100644 --- a/test/rb/core/transport/test_transport.rb +++ b/test/rb/core/transport/test_transport.rb @@ -30,10 +30,6 @@ class TestThriftTransport < Test::Unit::TestCase assert_nil @trans.close end - def test_read - assert_nil @trans.read(100) # arbitrary size - end - # TODO: # This doesn't necessarily test he right thing. # It _looks_ like read isn't guarenteed to return the length |