mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/soap/calc/*, test/soap/helloworld/*: set logging threshold to ERROR.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
618a435178
commit
00ac002f79
5 changed files with 21 additions and 9 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Thu Oct 23 00:41:45 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
|
||||||
|
|
||||||
|
* test/soap/calc/*, test/soap/helloworld/*: set logging threshold
|
||||||
|
to ERROR.
|
||||||
|
|
||||||
Wed Oct 22 12:53:31 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Wed Oct 22 12:53:31 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* lib/test/unit/collector/dir.rb (Test::Unit::Collector::Dir#collect_file):
|
* lib/test/unit/collector/dir.rb (Test::Unit::Collector::Dir#collect_file):
|
||||||
|
|
|
@ -16,7 +16,7 @@ class TestCalc < Test::Unit::TestCase
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
@server = CalcServer.new(self.class.name, nil, '0.0.0.0', Port)
|
@server = CalcServer.new(self.class.name, nil, '0.0.0.0', Port)
|
||||||
@server.level = Logger::Severity::FATAL
|
@server.level = Logger::Severity::ERROR
|
||||||
@t = Thread.new {
|
@t = Thread.new {
|
||||||
@server.start
|
@server.start
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,8 @@ class TestCalc < Test::Unit::TestCase
|
||||||
raise
|
raise
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@calc = SOAP::RPC::Driver.new("http://localhost:#{Port}/", 'http://tempuri.org/calcService')
|
@endpoint = "http://localhost:#{Port}/"
|
||||||
|
@calc = SOAP::RPC::Driver.new(@endpoint, 'http://tempuri.org/calcService')
|
||||||
@calc.add_method('add', 'lhs', 'rhs')
|
@calc.add_method('add', 'lhs', 'rhs')
|
||||||
@calc.add_method('sub', 'lhs', 'rhs')
|
@calc.add_method('sub', 'lhs', 'rhs')
|
||||||
@calc.add_method('multi', 'lhs', 'rhs')
|
@calc.add_method('multi', 'lhs', 'rhs')
|
||||||
|
@ -38,6 +39,7 @@ class TestCalc < Test::Unit::TestCase
|
||||||
@server.server.shutdown
|
@server.server.shutdown
|
||||||
@t.kill
|
@t.kill
|
||||||
@t.join
|
@t.join
|
||||||
|
@calc.reset_stream
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_calc
|
def test_calc
|
||||||
|
|
|
@ -16,7 +16,7 @@ class TestCalc2 < Test::Unit::TestCase
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
@server = CalcServer2.new('CalcServer', 'http://tempuri.org/calcService', '0.0.0.0', Port)
|
@server = CalcServer2.new('CalcServer', 'http://tempuri.org/calcService', '0.0.0.0', Port)
|
||||||
@server.level = Logger::Severity::FATAL
|
@server.level = Logger::Severity::ERROR
|
||||||
@t = Thread.new {
|
@t = Thread.new {
|
||||||
Thread.current.abort_on_exception = true
|
Thread.current.abort_on_exception = true
|
||||||
@server.start
|
@server.start
|
||||||
|
@ -28,7 +28,8 @@ class TestCalc2 < Test::Unit::TestCase
|
||||||
raise
|
raise
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@var = SOAP::RPC::Driver.new("http://localhost:#{Port}/", 'http://tempuri.org/calcService')
|
@endpoint = "http://localhost:#{Port}/"
|
||||||
|
@var = SOAP::RPC::Driver.new(@endpoint, 'http://tempuri.org/calcService')
|
||||||
@var.add_method('set', 'newValue')
|
@var.add_method('set', 'newValue')
|
||||||
@var.add_method('get')
|
@var.add_method('get')
|
||||||
@var.add_method_as('+', 'add', 'rhs')
|
@var.add_method_as('+', 'add', 'rhs')
|
||||||
|
@ -41,6 +42,7 @@ class TestCalc2 < Test::Unit::TestCase
|
||||||
@server.server.shutdown
|
@server.server.shutdown
|
||||||
@t.kill
|
@t.kill
|
||||||
@t.join
|
@t.join
|
||||||
|
@var.reset_stream
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_calc2
|
def test_calc2
|
||||||
|
|
|
@ -20,8 +20,7 @@ class TestCalcCGI < Test::Unit::TestCase
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
logger = Logger.new(STDERR)
|
logger = Logger.new(STDERR)
|
||||||
logger.level = Logger::Severity::FATAL
|
logger.level = Logger::Severity::ERROR
|
||||||
logger.level = Logger::Severity::DEBUG if $DEBUG
|
|
||||||
@server = WEBrick::HTTPServer.new(
|
@server = WEBrick::HTTPServer.new(
|
||||||
:BindAddress => "0.0.0.0",
|
:BindAddress => "0.0.0.0",
|
||||||
:Logger => logger,
|
:Logger => logger,
|
||||||
|
@ -42,7 +41,8 @@ class TestCalcCGI < Test::Unit::TestCase
|
||||||
raise
|
raise
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@calc = SOAP::RPC::Driver.new("http://localhost:#{Port}/server.cgi", 'http://tempuri.org/calcService')
|
@endpoint = "http://localhost:#{Port}/server.cgi"
|
||||||
|
@calc = SOAP::RPC::Driver.new(@endpoint, 'http://tempuri.org/calcService')
|
||||||
@calc.add_method('add', 'lhs', 'rhs')
|
@calc.add_method('add', 'lhs', 'rhs')
|
||||||
@calc.add_method('sub', 'lhs', 'rhs')
|
@calc.add_method('sub', 'lhs', 'rhs')
|
||||||
@calc.add_method('multi', 'lhs', 'rhs')
|
@calc.add_method('multi', 'lhs', 'rhs')
|
||||||
|
@ -53,6 +53,7 @@ class TestCalcCGI < Test::Unit::TestCase
|
||||||
@server.shutdown
|
@server.shutdown
|
||||||
@t.kill
|
@t.kill
|
||||||
@t.join
|
@t.join
|
||||||
|
@calc.reset_stream
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_calc
|
def test_calc
|
||||||
|
|
|
@ -16,7 +16,7 @@ class TestHelloWorld < Test::Unit::TestCase
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
@server = HelloWorldServer.new('hws', 'urn:hws', '0.0.0.0', Port)
|
@server = HelloWorldServer.new('hws', 'urn:hws', '0.0.0.0', Port)
|
||||||
@server.level = Logger::Severity::UNKNOWN
|
@server.level = Logger::Severity::ERROR
|
||||||
@t = Thread.new {
|
@t = Thread.new {
|
||||||
Thread.current.abort_on_exception = true
|
Thread.current.abort_on_exception = true
|
||||||
@server.start
|
@server.start
|
||||||
|
@ -28,7 +28,8 @@ class TestHelloWorld < Test::Unit::TestCase
|
||||||
raise
|
raise
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@client = SOAP::RPC::Driver.new("http://localhost:#{Port}/", 'urn:hws')
|
@endpoint = "http://localhost:#{Port}/"
|
||||||
|
@client = SOAP::RPC::Driver.new(@endpoint, 'urn:hws')
|
||||||
@client.add_method("hello_world", "from")
|
@client.add_method("hello_world", "from")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -36,6 +37,7 @@ class TestHelloWorld < Test::Unit::TestCase
|
||||||
@server.server.shutdown
|
@server.server.shutdown
|
||||||
@t.kill
|
@t.kill
|
||||||
@t.join
|
@t.join
|
||||||
|
@client.reset_stream
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_hello_world
|
def test_hello_world
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue