require File.join(File.dirname(__FILE__), '../test_helper')

require 'thrift/thrift'

class TestTException < Test::Unit::TestCase
  def test_has_accessible_message
    msg = "hi there thrift"
    assert_equal msg, TException.new(msg).message
  end
  
end

class TestConstRemapping < Test::Unit::TestCase
  def test_remappings
    maps = {
      TException => Thrift::Exception,
      TApplicationException => Thrift::ApplicationException,
      TType => Thrift::Types,
      TMessageType => Thrift::MessageTypes,
      TProcessor => Thrift::Processor,
      ThriftClient => Thrift::Client,
      ThriftStruct => Thrift::Struct,
      TProtocol => Thrift::Protocol,
      TProtocolException => Thrift::ProtocolException
    }
    
    maps.each do |k, v|
      assert_equal k, v
    end
  end
end


require File.join(File.dirname(__FILE__), '../test_helper')

require 'thrift/thrift'

class TestTException < Test::Unit::TestCase
  def test_has_accessible_message
    msg = "hi there thrift"
    assert_equal msg, Thrift::Exception.new(msg).message
  end
  
end


Remove test_remappings because it isn't comprehensive and it's triggering undesired warnings. This should be re-created as a spec.
Remove test_remappings because it isn't comprehensive and it's triggering undesired warnings. This should be re-created as a spec.


git-svn-id: 8d8e29b1fb681c884914062b88f3633e3a187774@668936 13f79535-47bb-0310-9956-ffa450edef68
