summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-26 18:34:41 +0000
committernahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-26 18:34:41 +0000
commit157914e2c71fca0da2f8b83551be330167b6619f (patch)
treed730760d25ea3b60f787f8a3c734d45036485e63
parent3edd14272a239182d42cfd45eb855a45b0af86c9 (diff)
downloadruby-157914e2c71fca0da2f8b83551be330167b6619f.tar.gz
ruby-157914e2c71fca0da2f8b83551be330167b6619f.tar.xz
ruby-157914e2c71fca0da2f8b83551be330167b6619f.zip
* test/soap/*, test/wsdl/*, test/xsd/*: move TestCase classes into each module
namespace. TestMarshal in test/soap/marshal/test_marshal.rb crashed with test/ruby/test_marshal.rb. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog7
-rw-r--r--test/soap/calc/test_calc.rb9
-rw-r--r--test/soap/calc/test_calc2.rb9
-rw-r--r--test/soap/calc/test_calc_cgi.rb9
-rw-r--r--test/soap/helloworld/test_helloworld.rb9
-rw-r--r--test/soap/marshal/test_digraph.rb9
-rw-r--r--test/soap/marshal/test_marshal.rb18
-rw-r--r--test/soap/marshal/test_struct.rb9
-rw-r--r--test/soap/test_basetype.rb7
-rw-r--r--test/soap/test_soapelement.rb7
-rw-r--r--test/wsdl/test_emptycomplextype.rb7
-rw-r--r--test/xsd/test_xmlschemaparser.rb7
-rw-r--r--test/xsd/test_xsd.rb7
13 files changed, 105 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index 3ee1829af..b48a1d28c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Mon Sep 27 03:32:37 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/soap/*, test/wsdl/*, test/xsd/*: move TestCase classes into
+ each module namespace. TestMarshal in
+ test/soap/marshal/test_marshal.rb crashed with
+ test/ruby/test_marshal.rb.
+
Sat Sep 27 01:30:59 2003 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/socket/socket.c (ruby_connect): on win32, type of the 4th
diff --git a/test/soap/calc/test_calc.rb b/test/soap/calc/test_calc.rb
index 191295bac..e14dbf5da 100644
--- a/test/soap/calc/test_calc.rb
+++ b/test/soap/calc/test_calc.rb
@@ -6,6 +6,11 @@ $:.push(dir)
require 'server.rb'
$:.delete(dir)
+
+module SOAP
+module Calc
+
+
class TestCalc < Test::Unit::TestCase
def setup
@server = CalcServer.new(self.class.name, nil, '0.0.0.0', 7000)
@@ -39,3 +44,7 @@ class TestCalc < Test::Unit::TestCase
end
end
end
+
+
+end
+end
diff --git a/test/soap/calc/test_calc2.rb b/test/soap/calc/test_calc2.rb
index 05a43b60e..0e84ca390 100644
--- a/test/soap/calc/test_calc2.rb
+++ b/test/soap/calc/test_calc2.rb
@@ -6,6 +6,11 @@ $:.push(dir)
require 'server2.rb'
$:.delete(dir)
+
+module SOAP
+module Calc
+
+
class TestCalc2 < Test::Unit::TestCase
def setup
@server = CalcServer2.new('CalcServer', 'http://tempuri.org/calcService', '0.0.0.0', 7000)
@@ -41,3 +46,7 @@ class TestCalc2 < Test::Unit::TestCase
end
end
end
+
+
+end
+end
diff --git a/test/soap/calc/test_calc_cgi.rb b/test/soap/calc/test_calc_cgi.rb
index 682356e52..6c89d46c1 100644
--- a/test/soap/calc/test_calc_cgi.rb
+++ b/test/soap/calc/test_calc_cgi.rb
@@ -2,6 +2,11 @@ require 'test/unit'
require 'soap/rpc/driver'
require 'webrick'
+
+module SOAP
+module Calc
+
+
class TestCalcCGI < Test::Unit::TestCase
def setup
@server = WEBrick::HTTPServer.new(
@@ -40,3 +45,7 @@ class TestCalcCGI < Test::Unit::TestCase
end
end
end
+
+
+end
+end
diff --git a/test/soap/helloworld/test_helloworld.rb b/test/soap/helloworld/test_helloworld.rb
index ccf77f9c1..0aa552e4a 100644
--- a/test/soap/helloworld/test_helloworld.rb
+++ b/test/soap/helloworld/test_helloworld.rb
@@ -6,6 +6,11 @@ $:.push(dir)
require 'hw_s.rb'
$:.delete(dir)
+
+module SOAP
+module HelloWorld
+
+
class TestHelloWorld < Test::Unit::TestCase
def setup
@server = HelloWorldServer.new('hws', 'urn:hws', '0.0.0.0', 2000)
@@ -29,3 +34,7 @@ class TestHelloWorld < Test::Unit::TestCase
assert_equal("Hello World, from <&>", @client.hello_world("<&>"))
end
end
+
+
+end
+end
diff --git a/test/soap/marshal/test_digraph.rb b/test/soap/marshal/test_digraph.rb
index 93f555ffc..2e79589dc 100644
--- a/test/soap/marshal/test_digraph.rb
+++ b/test/soap/marshal/test_digraph.rb
@@ -1,6 +1,11 @@
require 'test/unit'
require 'soap/marshal'
+
+module SOAP
+module Marshal
+
+
class Node; include SOAP::Marshallable
attr_reader :first, :second, :str
@@ -43,3 +48,7 @@ class TestDigraph < Test::Unit::TestCase
end
end
end
+
+
+end
+end
diff --git a/test/soap/marshal/test_marshal.rb b/test/soap/marshal/test_marshal.rb
index 8a1b82946..87e364e2a 100644
--- a/test/soap/marshal/test_marshal.rb
+++ b/test/soap/marshal/test_marshal.rb
@@ -1,22 +1,18 @@
require 'test/unit'
+require 'soap/marshal'
-dir = File.dirname(__FILE__)
-$:.push(dir)
-require 'cmarshal'
-$:.delete(dir)
-CMarshal.soap4r
+module SOAP
+module Marshal
module MarshalTestLib
def encode(o)
- #self.class::MarshalClass.dump(o)
- CMarshal.dump(o)
+ SOAPMarshal.dump(o)
end
def decode(s)
- #self.class::MarshalClass.load(s)
- CMarshal.load(s)
+ SOAPMarshal.load(s)
end
def marshaltest(o1)
@@ -299,3 +295,7 @@ end
class TestMarshal < Test::Unit::TestCase
include MarshalTestLib
end
+
+
+end
+end
diff --git a/test/soap/marshal/test_struct.rb b/test/soap/marshal/test_struct.rb
index 6596fb7a3..d3c0a4e5e 100644
--- a/test/soap/marshal/test_struct.rb
+++ b/test/soap/marshal/test_struct.rb
@@ -1,6 +1,11 @@
require 'test/unit'
require 'soap/marshal'
+
+module SOAP
+module Marshal
+
+
Foo1 = Struct.new("Foo1", :m)
Foo2 = Struct.new(:m)
class Foo3
@@ -36,3 +41,7 @@ class TestStruct < Test::Unit::TestCase
SOAP::Marshal.unmarshal(SOAP::Marshal.marshal(obj))
end
end
+
+
+end
+end
diff --git a/test/soap/test_basetype.rb b/test/soap/test_basetype.rb
index 80903633b..16f211c71 100644
--- a/test/soap/test_basetype.rb
+++ b/test/soap/test_basetype.rb
@@ -1,6 +1,10 @@
require 'test/unit'
require 'soap/baseData'
+
+module SOAP
+
+
class TestSOAP < Test::Unit::TestCase
def setup
# Nothing to do.
@@ -949,3 +953,6 @@ class TestSOAP < Test::Unit::TestCase
end
end
end
+
+
+end
diff --git a/test/soap/test_soapelement.rb b/test/soap/test_soapelement.rb
index df402c119..99c1f29b9 100644
--- a/test/soap/test_soapelement.rb
+++ b/test/soap/test_soapelement.rb
@@ -1,6 +1,10 @@
require 'test/unit'
require 'soap/baseData'
+
+module SOAP
+
+
class TestSOAPElement < Test::Unit::TestCase
include SOAP
@@ -112,3 +116,6 @@ class TestSOAPElement < Test::Unit::TestCase
assert_equal(nil, SOAPElement.from_obj(source).to_obj)
end
end
+
+
+end
diff --git a/test/wsdl/test_emptycomplextype.rb b/test/wsdl/test_emptycomplextype.rb
index f44c72f84..fffc8c85e 100644
--- a/test/wsdl/test_emptycomplextype.rb
+++ b/test/wsdl/test_emptycomplextype.rb
@@ -1,6 +1,10 @@
require 'test/unit'
require 'wsdl/parser'
+
+module WSDL
+
+
class TestWSDL < Test::Unit::TestCase
def self.setup(filename)
@@filename = filename
@@ -12,3 +16,6 @@ class TestWSDL < Test::Unit::TestCase
end
TestWSDL.setup(File.join(File.dirname(__FILE__), 'emptycomplextype.wsdl'))
+
+
+end
diff --git a/test/xsd/test_xmlschemaparser.rb b/test/xsd/test_xmlschemaparser.rb
index 6e3839a0d..b36212054 100644
--- a/test/xsd/test_xmlschemaparser.rb
+++ b/test/xsd/test_xmlschemaparser.rb
@@ -1,6 +1,10 @@
require 'test/unit'
require 'wsdl/xmlSchema/parser'
+
+module XSD
+
+
class TestXMLSchemaParser < Test::Unit::TestCase
def self.setup(filename)
@@filename = filename
@@ -12,3 +16,6 @@ class TestXMLSchemaParser < Test::Unit::TestCase
end
TestXMLSchemaParser.setup(File.join(File.dirname(__FILE__), 'xmlschema.xml'))
+
+
+end
diff --git a/test/xsd/test_xsd.rb b/test/xsd/test_xsd.rb
index 7fb5052f4..bbcbc9c77 100644
--- a/test/xsd/test_xsd.rb
+++ b/test/xsd/test_xsd.rb
@@ -1,6 +1,10 @@
require 'test/unit'
require 'xsd/datatypes'
+
+module XSD
+
+
class TestXSD < Test::Unit::TestCase
def setup
# Nothing to do.
@@ -974,3 +978,6 @@ class TestXSD2 < Test::Unit::TestCase
end
end
end
+
+
+end