Sha256: e3dc786e1a66165d560ec1bf7a18108494286d7b76a047419f44e9c7e10ebf36
Contents?: true
Size: 934 Bytes
Versions: 15
Compression:
Stored size: 934 Bytes
Contents
# encoding: ASCII-8BIT require 'helper' require 'wsdl/parser' require 'wsdl/soap/classDefCreator' require 'wsdl/soap/classNameCreator' module WSDL class TestMultipleFault < Test::Unit::TestCase def self.setup(filename) @@filename = filename end def test_multiplefault @wsdl = WSDL::Parser.new.parse(File.open(@@filename) { |f| f.read }) name_creator = WSDL::SOAP::ClassNameCreator.new classdefstr = WSDL::SOAP::ClassDefCreator.new(@wsdl, name_creator).dump yield_eval_binding(classdefstr) do |b| assert_equal( WSDL::TestMultipleFault::AuthenticationError, eval("AuthenticationError", b) ) assert_equal( WSDL::TestMultipleFault::AuthorizationError, eval("AuthorizationError", b) ) end end def yield_eval_binding(evaled) b = binding eval(evaled, b) yield(b) end end TestMultipleFault.setup(File.join(File.dirname(__FILE__), 'multiplefault.wsdl')) end
Version data entries
15 entries across 15 versions & 9 rubygems