axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dee...@apache.org
Subject svn commit: r280849 - in /webservices/axis2/trunk/java/modules/core: test-resources/deployment/serviceGroupRepo/ test-resources/deployment/serviceGroupRepo/services/ test-resources/deployment/serviceGroupRepo/services/serviceGroup/ test-resources/deplo...
Date Wed, 14 Sep 2005 13:30:14 GMT
Author: deepal
Date: Wed Sep 14 06:30:03 2005
New Revision: 280849

URL: http://svn.apache.org/viewcvs?rev=280849&view=rev
Log:
adding serviceGroup test case

Added:
    webservices/axis2/trunk/java/modules/core/test-resources/deployment/serviceGroupRepo/
    webservices/axis2/trunk/java/modules/core/test-resources/deployment/serviceGroupRepo/axis2.xml
    webservices/axis2/trunk/java/modules/core/test-resources/deployment/serviceGroupRepo/services/
    webservices/axis2/trunk/java/modules/core/test-resources/deployment/serviceGroupRepo/services/serviceGroup/
    webservices/axis2/trunk/java/modules/core/test-resources/deployment/serviceGroupRepo/services/serviceGroup/META-INF/
    webservices/axis2/trunk/java/modules/core/test-resources/deployment/serviceGroupRepo/services/serviceGroup/META-INF/service.xml
    webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/ServiceGroupTest.java

Added: webservices/axis2/trunk/java/modules/core/test-resources/deployment/serviceGroupRepo/axis2.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/test-resources/deployment/serviceGroupRepo/axis2.xml?rev=280849&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/core/test-resources/deployment/serviceGroupRepo/axis2.xml
(added)
+++ webservices/axis2/trunk/java/modules/core/test-resources/deployment/serviceGroupRepo/axis2.xml
Wed Sep 14 06:30:03 2005
@@ -0,0 +1,84 @@
+<axisconfig name="AxisJava2.0">
+    <!-- ================================================= -->
+    <!-- Parameters -->
+    <!-- ================================================= -->
+    <parameter name="hotdeployment" locked="false">true</parameter>
+    <parameter name="hotupdate" locked="false">false</parameter>
+    <parameter name="enableMTOM" locked="false">true</parameter>
+    <!-- Uncomment this to enable REST support -->
+    <!--    <parameter name="enableREST" locked="false">true</parameter>-->
+
+
+    <parameter name="userName" locked="false">admin</parameter>
+    <parameter name="password" locked="false">axis2</parameter>
+
+
+
+
+
+    <!-- ================================================= -->
+    <!-- Message Receivers -->
+    <!-- ================================================= -->
+    <!-- This is the Deafult Message Receiver for the Request Response style Operations
-->
+    <messageReceiver mep="INOUT" class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
+
+    <!-- ================================================= -->
+    <!-- Transport Ins -->
+    <!-- ================================================= -->
+    <transportReceiver name="http" class="org.apache.axis2.transport.http.SimpleHTTPServer">
+        <parameter name="port" locked="false">6060</parameter>
+    </transportReceiver>
+
+    <parameter name="extractServiceArchive" locked="false">true</parameter>
+
+    <!-- Uncomment this one with the appropriate papameters to enable the SMTP transport
Receiver
+ <transportReceiver name="mail" class="org.apache.axis2.transport.mail.SimpleMailListener">
+       <parameter name="transport.mail.pop3.host" locked="false">127.0.0.1</parameter>
+       <parameter name="transport.mail.pop3.user" locked="false">axis2</parameter>
+       <parameter name="transport.mail.pop3.password" locked="false">axis2</parameter>
+       <parameter name="transport.mail.pop3.port" locked="false">110</parameter>
+       <parameter name="transport.mail.replyToAddress" locked="false">axis2@127.0.0.1</parameter>
+   </transportReceiver> -->
+
+    <transportReceiver name="tcp" class="org.apache.axis2.transport.tcp.TCPServer">
+        <parameter name="port" locked="false">6060</parameter>
+    </transportReceiver>
+
+    <!-- ================================================= -->
+    <!-- Transport Outs -->
+    <!-- ================================================= -->
+
+    <transportSender name="tcp" class="org.apache.axis2.transport.tcp.TCPTransportSender"/>
+    <transportSender name="local" class="org.apache.axis2.transport.local.LocalTransportSender"/>
+    <transportSender name="http" class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
+        <parameter name="PROTOCOL" locked="false">HTTP/1.0</parameter>
+    </transportSender>
+    <transportSender name="https" class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
+        <parameter name="PROTOCOL" locked="false">HTTP/1.1</parameter>
+    </transportSender>
+
+
+    <phaseOrder type="inflow">
+        <!--  System pre defined phases       -->
+        <phase name="TransportIn"/>
+        <phase name="PreDispatch"/>
+        <phase name="Dispatch"/>
+        <phase name="PostDispatch"/>
+        <!--  System pre defined phases       -->
+        <!--   After Postdispatch phase module author or or service author can add any
phase he want      -->
+        <phase name="userphase1"/>
+    </phaseOrder>
+    <phaseOrder type="outflow">
+        <!--      user can add his own phases to this area  -->
+        <phase name="userphase1"/>
+    </phaseOrder>
+    <phaseOrder type="INfaultflow">
+        <!--      user can add his own phases to this area  -->
+        <phase name="userphase1"/>
+    </phaseOrder>
+    <phaseOrder type="Outfaultflow">
+        <!--      user can add his own phases to this area  -->
+        <phase name="userphase1"/>
+    </phaseOrder>
+</axisconfig>
+

Added: webservices/axis2/trunk/java/modules/core/test-resources/deployment/serviceGroupRepo/services/serviceGroup/META-INF/service.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/test-resources/deployment/serviceGroupRepo/services/serviceGroup/META-INF/service.xml?rev=280849&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/core/test-resources/deployment/serviceGroupRepo/services/serviceGroup/META-INF/service.xml
(added)
+++ webservices/axis2/trunk/java/modules/core/test-resources/deployment/serviceGroupRepo/services/serviceGroup/META-INF/service.xml
Wed Sep 14 06:30:03 2005
@@ -0,0 +1,14 @@
+<serviceGroup>
+    <service name="service1">
+        <operation name="op1">
+        </operation>
+        <operation name="op2">
+        </operation>
+    </service>
+    <service name="service2">
+        <operation name="op1">
+        </operation>
+        <operation name="op2">
+        </operation>
+    </service>
+</serviceGroup>
\ No newline at end of file

Added: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/ServiceGroupTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/ServiceGroupTest.java?rev=280849&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/ServiceGroupTest.java
(added)
+++ webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/ServiceGroupTest.java
Wed Sep 14 06:30:03 2005
@@ -0,0 +1,54 @@
+package org.apache.axis2.deployment;
+
+import junit.framework.TestCase;
+import org.apache.axis2.context.ConfigurationContextFactory;
+import org.apache.axis2.engine.AxisConfiguration;
+import org.apache.axis2.description.ServiceGroupDescription;
+import org.apache.axis2.description.ServiceDescription;
+import org.apache.axis2.AxisFault;
+
+import javax.xml.namespace.QName;
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+ * Author: Deepal Jayasinghe
+ * Date: Sep 14, 2005
+ * Time: 7:14:11 PM
+ */
+public class ServiceGroupTest extends TestCase {
+    AxisConfiguration ar;
+    String repo ="./test-resources/deployment/serviceGroupRepo";
+
+
+
+    protected void setUp() throws Exception {
+        ConfigurationContextFactory builder = new ConfigurationContextFactory();
+        ar = builder.buildConfigurationContext(repo).getAxisConfiguration();
+    }
+
+    public void testServiceGroup() throws AxisFault {
+        ServiceGroupDescription sgd = ar.getServiceGroup("serviceGroup");
+        assertNotNull(sgd);
+        ServiceDescription service1 = ar.getService("serviceGroup:service1");
+        assertNotNull(service1);
+        ServiceDescription service2 = ar.getService("serviceGroup:service2");
+        assertNotNull(service2);
+    }
+
+}



Mime
View raw message