Sha256: eabd9bba1dc9f6cec4009a27f7049b3e7756a591343397aab74ae3c24d31d9ca

Contents?: true

Size: 682 Bytes

Versions: 33

Compression:

Stored size: 682 Bytes

Contents

require 'test/unit'
require 'wsdl/xmlSchema/parser'


module XSD


class TestEmptyCharset < Test::Unit::TestCase
  def setup
    @file = File.join(File.dirname(File.expand_path(__FILE__)), 'noencoding.xml')
  end

  def test_wsdl
    begin
      xml = WSDL::XMLSchema::Parser.new.parse(File.open(@file) { |f| f.read })
    rescue RuntimeError
      if XSD::XMLParser.const_defined?("REXMLParser")
	STDERR.puts("rexml cannot handle euc-jp without iconv/uconv.")
	return
      end
      raise
    rescue Errno::EINVAL
      # unsupported encoding
      return
    end
    assert_equal(WSDL::XMLSchema::Schema, xml.class)
    assert_equal(0, xml.collect_elements.size)
  end
end


end

Version data entries

33 entries across 33 versions & 13 rubygems

Version Path
mumboe-soap4r-1.6.0.pre.beta test/xsd/test_noencoding.rb
DefV-soap4r-1.5.8.2 test/xsd/test_noencoding.rb
mumboe-soap4r-1.5.8.7 test/xsd/test_noencoding.rb
teo-soap4r-1.5.9b test/xsd/test_noencoding.rb
mumboe-soap4r-1.5.8.6 test/xsd/test_noencoding.rb
soap4r-spox-1.6.0 test/xsd/test_noencoding.rb
soap4r-r19-1.5.9 test/xsd/test_noencoding.rb
mumboe-soap4r-1.5.8.5 test/xsd/test_noencoding.rb
soap4r-ruby1.9-2.0.5 test/xsd/test_noencoding.rb
soap4r-sgonyea-1.6.0 test/xsd/test_noencoding.rb
soap4r-straightjacket-1.5.9 test/xsd/test_noencoding.rb
soap4r-straightjacket-1.5.8 test/xsd/test_noencoding.rb
soap4r-ruby1.9-2.0.3 test/xsd/test_noencoding.rb
soap4r-ruby1.9-2.0.2 test/xsd/test_noencoding.rb
soap4r-ruby1.9-2.0.1 test/xsd/test_noencoding.rb
mumboe-soap4r-1.5.8.4 test/xsd/test_noencoding.rb
soap4r-ruby1.9-2.0.0 test/xsd/test_noencoding.rb
hands-soap4r-1.5.8.4 test/xsd/test_noencoding.rb
soap4r-ruby1.9-1.0.0 test/xsd/test_noencoding.rb
snaury-soap4r-1.5.8.1 test/xsd/test_noencoding.rb