Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Changeset 1563

Show
Ignore:
Timestamp:
05/24/05 00:31:31 (4 years ago)
Author:
nahi
Message:

method name 'set' was able to crash with a class Set.
ruby -rset test/soap/calc/test_calc2.rb

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/test/soap/calc/calc2.rb

    r1520 r1563  
    44  end 
    55 
    6   def set(value) 
     6  def set_value(value) 
    77    @value = value 
    88  end 
    99 
    10   def get 
     10  def get_value 
    1111    @value 
    1212  end 
  • trunk/test/soap/calc/server2.rb

    r1520 r1563  
    77  def on_init 
    88    servant = CalcService2.new 
    9     add_method(servant, 'set', 'newValue') 
    10     add_method(servant, 'get') 
     9    add_method(servant, 'set_value', 'newValue') 
     10    add_method(servant, 'get_value') 
    1111    add_method_as(servant, '+', 'add', 'lhs') 
    1212    add_method_as(servant, '-', 'sub', 'lhs') 
  • trunk/test/soap/calc/test_calc2.rb

    r1520 r1563  
    2121    @var = SOAP::RPC::Driver.new(@endpoint, 'http://tempuri.org/calcService') 
    2222    @var.wiredump_dev = STDERR if $DEBUG 
    23     @var.add_method('set', 'newValue') 
    24     @var.add_method('get') 
     23    @var.add_method('set_value', 'newValue') 
     24    @var.add_method('get_value') 
    2525    @var.add_method_as('+', 'add', 'rhs') 
    2626    @var.add_method_as('-', 'sub', 'rhs') 
     
    3737 
    3838  def test_calc2 
    39     assert_equal(1, @var.set(1)) 
     39    assert_equal(1, @var.set_value(1)) 
    4040    assert_equal(3, @var + 2) 
    4141    assert_equal(-1.2, @var - 2.2)