Sha256: 48e00277d548bc59eeb1aabc4b9e5a38ed250413de28e6ab67136cd692fed64c

Contents?: true

Size: 972 Bytes

Versions: 15

Compression:

Stored size: 972 Bytes

Contents

# encoding: ASCII-8BIT
require 'helper'
require 'testutil'
require 'soap/rpc/driver'
TestUtil.require(File.dirname(__FILE__), 'hw_s.rb')


module SOAP
module HelloWorld


class TestHelloWorld < Test::Unit::TestCase
  Port = 17171

  def setup
    @server = HelloWorldServer.new('hws', 'urn:hws', '0.0.0.0', Port)
    @server.level = Logger::Severity::ERROR
    @t = Thread.new {
      Thread.current.abort_on_exception = true
      @server.start
    }
    @endpoint = "http://localhost:#{Port}/"
    @client = SOAP::RPC::Driver.new(@endpoint, 'urn:hws')
    @client.wiredump_dev = STDERR if $DEBUG
    @client.add_method("hello_world", "from")
  end

  def teardown
    @server.shutdown if @server
    if @t
      @t.kill
      @t.join
    end
    @client.reset_stream if @client
  end

  def test_hello_world
    assert_equal("Hello World, from NaHi", @client.hello_world("NaHi"))
    assert_equal("Hello World, from <&>", @client.hello_world("<&>"))
  end
end


end
end

Version data entries

15 entries across 15 versions & 9 rubygems

Version Path
malagant-soap4r-1.5.8.20141127181857 test/soap/helloworld/test_helloworld.rb
rtiss_soap4r-1.6.1 test/soap/helloworld/test_helloworld.rb
rtiss_soap4r-1.6.0 test/soap/helloworld/test_helloworld.rb
eSpace_soap4r-1.5.8 test/soap/helloworld/test_helloworld.rb
soap4r-ruby19-1.5.9 test/soap/helloworld/test_helloworld.rb
tomdz-soap4r-1.5.8.20120202093209 test/soap/helloworld/test_helloworld.rb
soap5r-2.0.3 test/soap/helloworld/test_helloworld.rb
soap5r-2.0.2 test/soap/helloworld/test_helloworld.rb
soap5r-2.0.1 test/soap/helloworld/test_helloworld.rb
soap5r-2.0.0 test/soap/helloworld/test_helloworld.rb
soap5r-2.0.0.20120130130121 test/soap/helloworld/test_helloworld.rb
soap4r-sgonyea-1.5.9 test/soap/helloworld/test_helloworld.rb
sunteya-soap4r-1.5.8.0 test/soap/helloworld/test_helloworld.rb
tomdz-soap4r-1.5.8.20111103171510 test/soap/helloworld/test_helloworld.rb
rubyjedi-soap4r-1.5.8.20100619003610 test/soap/helloworld/test_helloworld.rb