aboutsummaryrefslogtreecommitdiffstats
path: root/actionwebservice/test
diff options
context:
space:
mode:
authorLeon Breedt <bitserf@gmail.com>2005-02-18 23:55:29 +0000
committerLeon Breedt <bitserf@gmail.com>2005-02-18 23:55:29 +0000
commitec03a601811587dd4265667aadd50c101c23b116 (patch)
treeb040f5f1488267b35bc0110efe029a789c3a350b /actionwebservice/test
parent5760a6cb3e3f3ce3b41c25023f3fbb875590c5bc (diff)
downloadrails-ec03a601811587dd4265667aadd50c101c23b116.tar.gz
rails-ec03a601811587dd4265667aadd50c101c23b116.tar.bz2
rails-ec03a601811587dd4265667aadd50c101c23b116.zip
rename entire package to Action Web Service
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@672 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionwebservice/test')
-rw-r--r--actionwebservice/test/abstract_client.rb4
-rw-r--r--actionwebservice/test/abstract_soap.rb2
-rw-r--r--actionwebservice/test/abstract_unit.rb2
-rw-r--r--actionwebservice/test/api_test.rb2
-rw-r--r--actionwebservice/test/base_test.rb8
-rw-r--r--actionwebservice/test/client_soap_test.rb2
-rw-r--r--actionwebservice/test/client_xmlrpc_test.rb2
-rw-r--r--actionwebservice/test/invocation_test.rb6
-rw-r--r--actionwebservice/test/protocol_registry_test.rb8
-rw-r--r--actionwebservice/test/protocol_soap_test.rb14
-rw-r--r--actionwebservice/test/protocol_xmlrpc_test.rb14
-rw-r--r--actionwebservice/test/router_action_controller_test.rb6
-rw-r--r--actionwebservice/test/router_wsdl_test.rb6
-rw-r--r--actionwebservice/test/struct_test.rb2
14 files changed, 39 insertions, 39 deletions
diff --git a/actionwebservice/test/abstract_client.rb b/actionwebservice/test/abstract_client.rb
index 70d2d21124..0197b87d63 100644
--- a/actionwebservice/test/abstract_client.rb
+++ b/actionwebservice/test/abstract_client.rb
@@ -4,7 +4,7 @@ require 'webrick/log'
require 'singleton'
module ClientTest
- class Person < ActionService::Struct
+ class Person < ActionWebService::Struct
member :firstnames, [:string]
member :lastname, :string
@@ -13,7 +13,7 @@ module ClientTest
end
end
- class API < ActionService::API::Base
+ class API < ActionWebService::API::Base
api_method :void
api_method :normal, :expects => [:int, :int], :returns => [:int]
api_method :array_return, :returns => [[Person]]
diff --git a/actionwebservice/test/abstract_soap.rb b/actionwebservice/test/abstract_soap.rb
index 7454be9bdf..351a4f8479 100644
--- a/actionwebservice/test/abstract_soap.rb
+++ b/actionwebservice/test/abstract_soap.rb
@@ -22,7 +22,7 @@ class AbstractSoapTest < Test::Unit::TestCase
param_def << ["in", "param#{i}", mapping.registry_mapping]
i += 1
end
- qname = XSD::QName.new('urn:ActionService', public_method_name)
+ qname = XSD::QName.new('urn:ActionWebService', public_method_name)
request = SOAP::RPC::SOAPMethodRequest.new(qname, param_def)
soap_args = []
i = 1
diff --git a/actionwebservice/test/abstract_unit.rb b/actionwebservice/test/abstract_unit.rb
index 54ca73b35c..e33c5c9bbe 100644
--- a/actionwebservice/test/abstract_unit.rb
+++ b/actionwebservice/test/abstract_unit.rb
@@ -1,7 +1,7 @@
$:.unshift(File.dirname(__FILE__) + '/../lib')
require 'test/unit'
-require 'action_service'
+require 'action_web_service'
require 'action_controller'
require 'action_controller/test_process'
diff --git a/actionwebservice/test/api_test.rb b/actionwebservice/test/api_test.rb
index 2ef5cc7bda..b61a4b57c5 100644
--- a/actionwebservice/test/api_test.rb
+++ b/actionwebservice/test/api_test.rb
@@ -1,7 +1,7 @@
require File.dirname(__FILE__) + '/abstract_unit'
module APITest
- class API < ActionService::API::Base
+ class API < ActionWebService::API::Base
api_method :void
api_method :expects_and_returns, :expects_and_returns => [:string]
api_method :expects, :expects => [:int, :bool]
diff --git a/actionwebservice/test/base_test.rb b/actionwebservice/test/base_test.rb
index a9fbdd1a8b..55a112a089 100644
--- a/actionwebservice/test/base_test.rb
+++ b/actionwebservice/test/base_test.rb
@@ -1,19 +1,19 @@
require File.dirname(__FILE__) + '/abstract_unit'
module BaseTest
- class API < ActionService::API::Base
+ class API < ActionWebService::API::Base
api_method :add, :expects => [:int, :int], :returns => [:int]
api_method :void
end
- class PristineAPI < ActionService::API::Base
+ class PristineAPI < ActionWebService::API::Base
inflect_names false
api_method :add
api_method :under_score
end
- class Service < ActionService::Base
+ class Service < ActionWebService::Base
web_service_api API
def add(a, b)
@@ -23,7 +23,7 @@ module BaseTest
end
end
- class PristineService < ActionService::Base
+ class PristineService < ActionWebService::Base
web_service_api PristineAPI
def add
diff --git a/actionwebservice/test/client_soap_test.rb b/actionwebservice/test/client_soap_test.rb
index 80fae90543..82ccef6f1b 100644
--- a/actionwebservice/test/client_soap_test.rb
+++ b/actionwebservice/test/client_soap_test.rb
@@ -48,7 +48,7 @@ class TC_ClientSoap < Test::Unit::TestCase
def setup
@server = SoapServer.instance
@container = @server.container
- @client = ActionService::Client::Soap.new(API, "http://localhost:#{@server.server_port}/client/api")
+ @client = ActionWebService::Client::Soap.new(API, "http://localhost:#{@server.server_port}/client/api")
end
def test_void
diff --git a/actionwebservice/test/client_xmlrpc_test.rb b/actionwebservice/test/client_xmlrpc_test.rb
index 35768adf32..f9be9bfe16 100644
--- a/actionwebservice/test/client_xmlrpc_test.rb
+++ b/actionwebservice/test/client_xmlrpc_test.rb
@@ -47,7 +47,7 @@ class TC_ClientXmlRpc < Test::Unit::TestCase
def setup
@server = XmlRpcServer.instance
@container = @server.container
- @client = ActionService::Client::XmlRpc.new(API, "http://localhost:#{@server.server_port}/client/api")
+ @client = ActionWebService::Client::XmlRpc.new(API, "http://localhost:#{@server.server_port}/client/api")
end
def test_void
diff --git a/actionwebservice/test/invocation_test.rb b/actionwebservice/test/invocation_test.rb
index e4c82a35f8..8ca80ec8f2 100644
--- a/actionwebservice/test/invocation_test.rb
+++ b/actionwebservice/test/invocation_test.rb
@@ -1,7 +1,7 @@
require File.dirname(__FILE__) + '/abstract_unit'
module InvocationTest
- class API < ActionService::API::Base
+ class API < ActionWebService::API::Base
api_method :add, :expects => [:int, :int], :returns => [:int]
api_method :transmogrify, :expects_and_returns => [:string]
api_method :fail_with_reason
@@ -12,7 +12,7 @@ module InvocationTest
api_method :only_two
end
- class Service < ActionService::Base
+ class Service < ActionWebService::Base
web_service_api API
before_invocation :intercept_before, :except => [:no_before]
@@ -81,7 +81,7 @@ module InvocationTest
end
class TC_Invocation < Test::Unit::TestCase
- include ActionService::Invocation
+ include ActionWebService::Invocation
def setup
@service = InvocationTest::Service.new
diff --git a/actionwebservice/test/protocol_registry_test.rb b/actionwebservice/test/protocol_registry_test.rb
index 8e2b9659a6..261f6f400e 100644
--- a/actionwebservice/test/protocol_registry_test.rb
+++ b/actionwebservice/test/protocol_registry_test.rb
@@ -2,7 +2,7 @@ require File.dirname(__FILE__) + '/abstract_unit'
module Foo
- include ActionService::Protocol
+ include ActionWebService::Protocol
def self.append_features(base)
super
@@ -15,14 +15,14 @@ module Foo
class FooFullProtocol < AbstractProtocol
def self.create_protocol_request(klass, request)
protocol = FooFullProtocol.new klass
- ActionService::Protocol::ProtocolRequest.new(protocol, '', '', '', '')
+ ActionWebService::Protocol::ProtocolRequest.new(protocol, '', '', '', '')
end
end
class FooMinimalProtocol < AbstractProtocol
def self.create_protocol_request(klass, request)
protocol = FooMinimalProtocol.new klass
- ActionService::Protocol::ProtocolRequest.new(protocol, '', '', '', '')
+ ActionWebService::Protocol::ProtocolRequest.new(protocol, '', '', '', '')
end
end
@@ -31,7 +31,7 @@ module Foo
end
class ProtocolRegistry
- include ActionService::Protocol::Registry
+ include ActionWebService::Protocol::Registry
include Foo
def all_protocols
diff --git a/actionwebservice/test/protocol_soap_test.rb b/actionwebservice/test/protocol_soap_test.rb
index 164d06bbd6..1130dff3a7 100644
--- a/actionwebservice/test/protocol_soap_test.rb
+++ b/actionwebservice/test/protocol_soap_test.rb
@@ -1,7 +1,7 @@
require File.dirname(__FILE__) + '/abstract_soap'
module ProtocolSoapTest
- class Person < ActionService::Struct
+ class Person < ActionWebService::Struct
member :id, Integer
member :names, [String]
member :lastname, String
@@ -12,7 +12,7 @@ module ProtocolSoapTest
end
end
- class API < ActionService::API::Base
+ class API < ActionWebService::API::Base
api_method :argument_passing, :expects => [{:int=>:int}, {:string=>:string}, {:array=>[:int]}], :returns => [:bool]
api_method :array_returner, :returns => [[:int]]
api_method :nil_returner
@@ -22,7 +22,7 @@ module ProtocolSoapTest
default_api_method :default
end
- class Service < ActionService::Base
+ class Service < ActionWebService::Base
web_service_api API
attr :int
@@ -73,10 +73,10 @@ module ProtocolSoapTest
end
class AbstractContainer
- include ActionService::API
- include ActionService::Container
- include ActionService::Protocol::Registry
- include ActionService::Protocol::Soap
+ include ActionWebService::API
+ include ActionWebService::Container
+ include ActionWebService::Protocol::Registry
+ include ActionWebService::Protocol::Soap
wsdl_service_name 'Test'
diff --git a/actionwebservice/test/protocol_xmlrpc_test.rb b/actionwebservice/test/protocol_xmlrpc_test.rb
index a8a6efc07e..7dc5cf0252 100644
--- a/actionwebservice/test/protocol_xmlrpc_test.rb
+++ b/actionwebservice/test/protocol_xmlrpc_test.rb
@@ -18,13 +18,13 @@ module XMLRPC
end
module ProtocolXmlRpcTest
- class Person < ActionService::Struct
+ class Person < ActionWebService::Struct
member :firstname, String
member :lastname, String
member :active, TrueClass
end
- class API < ActionService::API::Base
+ class API < ActionWebService::API::Base
api_method :add, :expects => [Integer, Integer], :returns => [Integer]
api_method :hash_returner, :returns => [Hash]
api_method :array_returner, :returns => [[Integer]]
@@ -34,7 +34,7 @@ module ProtocolXmlRpcTest
default_api_method :default
end
- class Service < ActionService::Base
+ class Service < ActionWebService::Base
web_service_api API
attr :result
@@ -80,10 +80,10 @@ module ProtocolXmlRpcTest
$service = Service.new
class Container
- include ActionService::Container
- include ActionService::Protocol::Registry
- include ActionService::Protocol::Soap
- include ActionService::Protocol::XmlRpc
+ include ActionWebService::Container
+ include ActionWebService::Protocol::Registry
+ include ActionWebService::Protocol::Soap
+ include ActionWebService::Protocol::XmlRpc
def protocol_request(request)
probe_request_protocol(request)
diff --git a/actionwebservice/test/router_action_controller_test.rb b/actionwebservice/test/router_action_controller_test.rb
index e26d67c194..4f6d40e738 100644
--- a/actionwebservice/test/router_action_controller_test.rb
+++ b/actionwebservice/test/router_action_controller_test.rb
@@ -2,11 +2,11 @@ require File.dirname(__FILE__) + '/abstract_soap'
require 'wsdl/parser'
module RouterActionControllerTest
- class API < ActionService::API::Base
+ class API < ActionWebService::API::Base
api_method :add, :expects => [:int, :int], :returns => [:int]
end
- class Service < ActionService::Base
+ class Service < ActionWebService::Base
web_service_api API
attr :added
@@ -22,7 +22,7 @@ module RouterActionControllerTest
web_service(:test_service) { @service ||= Service.new; @service }
end
- class DirectAPI < ActionService::API::Base
+ class DirectAPI < ActionWebService::API::Base
api_method :add, :expects => [{:a=>:int}, {:b=>:int}], :returns => [:int]
api_method :before_filtered
api_method :after_filtered, :returns => [:int]
diff --git a/actionwebservice/test/router_wsdl_test.rb b/actionwebservice/test/router_wsdl_test.rb
index 6812d25579..a441e73f37 100644
--- a/actionwebservice/test/router_wsdl_test.rb
+++ b/actionwebservice/test/router_wsdl_test.rb
@@ -2,20 +2,20 @@ require File.dirname(__FILE__) + '/abstract_unit'
require 'wsdl/parser'
module RouterWsdlTest
- class Person < ActionService::Struct
+ class Person < ActionWebService::Struct
member :id, Integer
member :names, [String]
member :lastname, String
member :deleted, TrueClass
end
- class API < ActionService::API::Base
+ class API < ActionWebService::API::Base
api_method :add, :expects => [{:a=>:int}, {:b=>:int}], :returns => [:int]
api_method :find_people, :returns => [[Person]]
api_method :nil_returner
end
- class Service < ActionService::Base
+ class Service < ActionWebService::Base
web_service_api API
def add(a, b)
diff --git a/actionwebservice/test/struct_test.rb b/actionwebservice/test/struct_test.rb
index b883c6d991..e6f1603c73 100644
--- a/actionwebservice/test/struct_test.rb
+++ b/actionwebservice/test/struct_test.rb
@@ -1,7 +1,7 @@
require File.dirname(__FILE__) + '/abstract_unit'
module StructTest
- class Struct < ActionService::Struct
+ class Struct < ActionWebService::Struct
member :id, Integer
member :name, String
member :items, [String]