From: Kevin Clark Date: Wed, 18 Jun 2008 01:04:03 +0000 (+0000) Subject: Fix name usage in tests. Remove test for TTransport as it really wasn't testing anyth... X-Git-Tag: 0.2.0~612 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=9d33041a1be82e79c7bb89393bbe9c7f78fe93cd;p=common%2Fthrift.git Fix name usage in tests. Remove test for TTransport as it really wasn't testing anything useful. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668937 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/test/rb/core/test_backwards_compatability.rb b/test/rb/core/test_backwards_compatability.rb index c6747524..2e5330d5 100644 --- a/test/rb/core/test_backwards_compatability.rb +++ b/test/rb/core/test_backwards_compatability.rb @@ -2,7 +2,7 @@ require File.join(File.dirname(__FILE__), '../test_helper') require 'thrift/thrift' -class TestTException < Test::Unit::TestCase +class TestThriftException < Test::Unit::TestCase def test_has_accessible_message msg = "hi there thrift" assert_equal msg, Thrift::Exception.new(msg).message diff --git a/test/rb/core/transport/test_ttransport.rb b/test/rb/core/transport/test_transport.rb similarity index 69% rename from test/rb/core/transport/test_ttransport.rb rename to test/rb/core/transport/test_transport.rb index 366389b5..7a62e5a3 100644 --- a/test/rb/core/transport/test_ttransport.rb +++ b/test/rb/core/transport/test_transport.rb @@ -1,8 +1,8 @@ require File.join(File.dirname(__FILE__), '../../test_helper') -require 'thrift/transport/ttransport' +require 'thrift/transport' -class DummyTransport < TTransport +class DummyTransport < Thrift::Transport def initialize(data) @data = data end @@ -13,9 +13,9 @@ class DummyTransport < TTransport end # TTransport is basically an abstract class, but isn't raising NotImplementedError -class TestTTransport < Test::Unit::TestCase +class TestThriftTransport < Test::Unit::TestCase def setup - @trans = TTransport.new + @trans = Thrift::Transport.new end def test_open? @@ -53,19 +53,3 @@ class TestTTransport < Test::Unit::TestCase assert_nil @trans.flush end end - -class TestTTransportDeprecation < Test::Unit::TestCase - def setup - @trans = TTransport.new - end - - def test_open? - assert_nil @trans.open? - end - - def test_readAll - # Implements read - t = DummyTransport.new("hello") - assert_equal "hello", t.read_all(5) - end -end \ No newline at end of file