You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by de...@apache.org on 2005/10/27 07:04:34 UTC

svn commit: r328790 - in /webservices/axis2/trunk/java/modules: core/test/org/apache/axis2/ core/test/org/apache/axis2/deployment/ core/test/org/apache/axis2/handlers/ core/test/org/apache/axis2/registry/ core/test/org/apache/axis2/sample/ core/test/or...

Author: deepal
Date: Wed Oct 26 22:04:00 2005
New Revision: 328790

URL: http://svn.apache.org/viewcvs?rev=328790&view=rev
Log:
modified code to support Clover report generation (there was java files inside test-resources directory , so I moved them to test/class).
I removed <report> entry from xml/project.xml to support clover .

Added:
    webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/Echo2.java
    webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/InavalidModuleImpl.java
    webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/ModuleHandler1.java
    webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/handlers/Handler2.java
    webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/registry/
    webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/registry/Handler3.java
    webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/sample/
    webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/sample/handlers/
    webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/sample/handlers/LoggingHandler.java
Modified:
    webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/BuildERWithDeploymentTest.java
    webservices/axis2/trunk/java/modules/xml/project.xml

Added: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/Echo2.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/Echo2.java?rev=328790&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/Echo2.java (added)
+++ webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/Echo2.java Wed Oct 26 22:04:00 2005
@@ -0,0 +1,27 @@
+package org.apache.axis2;
+
+import org.apache.axis2.soap.SOAPEnvelope;
+/*
+* 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 (deepal@apache.org)
+*
+*/
+
+public class Echo2 {
+    public SOAPEnvelope echo(SOAPEnvelope in){
+        return in;
+    }
+}

Added: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/InavalidModuleImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/InavalidModuleImpl.java?rev=328790&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/InavalidModuleImpl.java (added)
+++ webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/InavalidModuleImpl.java Wed Oct 26 22:04:00 2005
@@ -0,0 +1,32 @@
+package org.apache.axis2;
+
+import org.apache.axis2.engine.AxisConfiguration;
+import org.apache.axis2.modules.Module;
+/*
+* 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 (deepal@apache.org)
+*
+*/
+
+public class InavalidModuleImpl implements Module {
+    // initialize the module
+    public void init(AxisConfiguration axisSystem) throws AxisFault {
+    }
+
+    // shutdown the module
+    public void shutdown(AxisConfiguration axisSystem) throws AxisFault {
+    }
+}

Added: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/ModuleHandler1.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/ModuleHandler1.java?rev=328790&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/ModuleHandler1.java (added)
+++ webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/ModuleHandler1.java Wed Oct 26 22:04:00 2005
@@ -0,0 +1,53 @@
+package org.apache.axis2;
+
+import org.apache.axis2.handlers.AbstractHandler;
+import org.apache.axis2.engine.Handler;
+import org.apache.axis2.context.MessageContext;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+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 (deepal@apache.org)
+*
+*/
+
+public class ModuleHandler1  extends AbstractHandler implements Handler {
+    private Log log = LogFactory.getLog(getClass());
+    private String message;
+    private QName name;
+    public ModuleHandler1() {
+       this.message = "inside invalid module";
+    }
+    public QName getName() {
+        return name;
+    }
+
+    public void invoke(MessageContext msgContext) throws AxisFault {
+        log.info("I am " + message + " Handler Running :)");
+    }
+
+    public void revoke(MessageContext msgContext) {
+        log.info("I am " + message + " Handler Running :)");
+    }
+
+    public void setName(QName name) {
+        this.name = name;
+    }
+
+}
+

Modified: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/BuildERWithDeploymentTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/BuildERWithDeploymentTest.java?rev=328790&r1=328789&r2=328790&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/BuildERWithDeploymentTest.java (original)
+++ webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/BuildERWithDeploymentTest.java Wed Oct 26 22:04:00 2005
@@ -48,7 +48,7 @@
         assertTrue(provider instanceof RawXMLINOutMessageReceiver);*/
         ClassLoader cl = service.getClassLoader();
         assertNotNull(cl);
-        Class.forName("Echo2", true, cl);
+        Class.forName("org.apache.axis2.Echo2", true, cl);
         assertNotNull(service.getName());
         //no style for the service
         //   assertEquals(service.getStyle(),"rpc");

Added: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/handlers/Handler2.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/handlers/Handler2.java?rev=328790&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/handlers/Handler2.java (added)
+++ webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/handlers/Handler2.java Wed Oct 26 22:04:00 2005
@@ -0,0 +1,54 @@
+package org.apache.axis2.handlers;
+
+import org.apache.axis2.engine.Handler;
+import org.apache.axis2.context.MessageContext;
+import org.apache.axis2.AxisFault;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+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 (deepal@apache.org)
+*
+*/
+
+public class Handler2 extends AbstractHandler implements Handler {
+    private Log log = LogFactory.getLog(getClass());
+    private String message;
+    private QName name;
+    public Handler2() {
+        this.message = "inside service 2";
+    }
+    public QName getName() {
+        return name;
+    }
+
+    public void invoke(MessageContext msgContext) throws AxisFault {
+        log.info("I am " + message + " Handler Running :)");
+    }
+
+    public void revoke(MessageContext msgContext) {
+        log.info("I am " + message + " Handler Running :)");
+    }
+
+    public void setName(QName name) {
+        this.name = name;
+    }
+
+}
+
+

Added: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/registry/Handler3.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/registry/Handler3.java?rev=328790&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/registry/Handler3.java (added)
+++ webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/registry/Handler3.java Wed Oct 26 22:04:00 2005
@@ -0,0 +1,54 @@
+package org.apache.axis2.registry;
+
+import org.apache.commons.logging.LogFactory;
+import org.apache.commons.logging.Log;
+import org.apache.axis2.context.MessageContext;
+import org.apache.axis2.handlers.AbstractHandler;
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.engine.Handler;
+
+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 (deepal@apache.org)
+*
+*/
+
+public class Handler3  extends AbstractHandler implements Handler {
+    private Log log = LogFactory.getLog(getClass());
+    private String message;
+    private QName name;
+    public Handler3() {
+       this.message = "inside Module 1";
+    }
+    public QName getName() {
+        return name;
+    }
+
+    public void invoke(MessageContext msgContext) throws AxisFault {
+        log.info("I am " + message + " Handler Running :)");
+    }
+
+    public void revoke(MessageContext msgContext) {
+        log.info("I am " + message + " Handler Running :)");
+    }
+
+    public void setName(QName name) {
+        this.name = name;
+    }
+
+}
+

Added: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/sample/handlers/LoggingHandler.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/sample/handlers/LoggingHandler.java?rev=328790&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/sample/handlers/LoggingHandler.java (added)
+++ webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/sample/handlers/LoggingHandler.java Wed Oct 26 22:04:00 2005
@@ -0,0 +1,45 @@
+package org.apache.axis2.sample.handlers;
+
+import org.apache.axis2.handlers.AbstractHandler;
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.context.MessageContext;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+/*
+* 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 (deepal@apache.org)
+*
+*/
+
+public class LoggingHandler extends AbstractHandler {
+
+	private Log log = LogFactory.getLog(getClass());
+	/* (non-Javadoc)
+	 * @see org.apache.axis2.engine.Handler#invoke(org.apache.axis2.context.MessageContext)
+	 */
+
+
+
+	public void invoke(MessageContext msgContext) throws AxisFault {
+		log.info("Incomming message Frrom "+msgContext.getTo().getAddress());
+	}
+
+	public void revoke(MessageContext msgContext){
+		log.info("Incomming message Revovked at the server "+msgContext.getTo().getAddress() );
+	}
+
+}
+

Modified: webservices/axis2/trunk/java/modules/xml/project.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/xml/project.xml?rev=328790&r1=328789&r2=328790&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/xml/project.xml (original)
+++ webservices/axis2/trunk/java/modules/xml/project.xml Wed Oct 26 22:04:00 2005
@@ -160,7 +160,4 @@
         </dependency>
     </dependencies>
 
-    <reports>
-        <report>maven-junit-report-plugin</report>
-    </reports>
 </project>