Sha256: cc9c0ed6ef56c0eb91981a66ee2f128eb9beb24f4a205ea00a05a4fb880afd72
Contents?: true
Size: 811 Bytes
Versions: 3
Compression:
Stored size: 811 Bytes
Contents
require 'test/unit' require 'wsdl/parser' require 'wsdl/soap/classDefCreator' 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 }) classdefstr = WSDL::SOAP::ClassDefCreator.new(@wsdl).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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
soap4r-1.5.5.20061022 | test/wsdl/test_multiplefault.rb |
soap4r-1.5.6 | test/wsdl/test_multiplefault.rb |
soap4r-1.5.7 | test/wsdl/test_multiplefault.rb |