2003-09-24 11:18:44 -04:00
|
|
|
require 'test/unit'
|
2003-09-26 14:34:41 -04:00
|
|
|
require 'soap/marshal'
|
2004-02-17 09:28:34 -05:00
|
|
|
dir = File.join(File.dirname(File.expand_path(__FILE__)), '../../ruby')
|
|
|
|
orgpath = $:.dup
|
|
|
|
begin
|
|
|
|
$:.push(dir)
|
|
|
|
require 'marshaltestlib'
|
|
|
|
ensure
|
|
|
|
$:.replace(orgpath)
|
|
|
|
end
|
2003-09-24 11:18:44 -04:00
|
|
|
|
2003-09-26 14:34:41 -04:00
|
|
|
module SOAP
|
|
|
|
module Marshal
|
2004-02-17 09:15:37 -05:00
|
|
|
class TestMarshal < Test::Unit::TestCase
|
|
|
|
include MarshalTestLib
|
2003-10-14 11:14:02 -04:00
|
|
|
|
2003-09-24 11:18:44 -04:00
|
|
|
def encode(o)
|
2003-09-26 14:34:41 -04:00
|
|
|
SOAPMarshal.dump(o)
|
2003-09-24 11:18:44 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
def decode(s)
|
2003-09-26 14:34:41 -04:00
|
|
|
SOAPMarshal.load(s)
|
2003-09-24 11:18:44 -04:00
|
|
|
end
|
|
|
|
end
|
2003-09-26 14:34:41 -04:00
|
|
|
end
|
|
|
|
end
|