diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-15 20:57:30 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-15 20:57:30 +0000 |
commit | 54ec1c4fe81672ca66f327ef6ae170f458cd79e5 (patch) | |
tree | 45a752c60a9a08d681a792b70f43c89903b638a2 /ruby_1_8_5/test/soap/helloworld | |
parent | d464704f111d211c1f1ff9ef23ef1d755054be00 (diff) |
sorry. I made wrong tags.v1_8_5_54
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tags/v1_8_5_54@13009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby_1_8_5/test/soap/helloworld')
-rw-r--r-- | ruby_1_8_5/test/soap/helloworld/hw_s.rb | 16 | ||||
-rw-r--r-- | ruby_1_8_5/test/soap/helloworld/test_helloworld.rb | 40 |
2 files changed, 0 insertions, 56 deletions
diff --git a/ruby_1_8_5/test/soap/helloworld/hw_s.rb b/ruby_1_8_5/test/soap/helloworld/hw_s.rb deleted file mode 100644 index 1a54adb924..0000000000 --- a/ruby_1_8_5/test/soap/helloworld/hw_s.rb +++ /dev/null @@ -1,16 +0,0 @@ -require 'soap/rpc/standaloneServer' - -class HelloWorldServer < SOAP::RPC::StandaloneServer - def on_init - add_method(self, 'hello_world', 'from') - end - - def hello_world(from) - "Hello World, from #{ from }" - end -end - -if $0 == __FILE__ - server = HelloWorldServer.new('hws', 'urn:hws', '0.0.0.0', 17171) - server.start -end diff --git a/ruby_1_8_5/test/soap/helloworld/test_helloworld.rb b/ruby_1_8_5/test/soap/helloworld/test_helloworld.rb deleted file mode 100644 index 40c35b57fb..0000000000 --- a/ruby_1_8_5/test/soap/helloworld/test_helloworld.rb +++ /dev/null @@ -1,40 +0,0 @@ -require 'test/unit' -require 'soap/rpc/driver' -require '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.add_method("hello_world", "from") - end - - def teardown - @server.shutdown - @t.kill - @t.join - @client.reset_stream - 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 |