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/05/10 13:56:06 UTC

svn commit: r169452 - /webservices/axis/trunk/java/modules/core/test/org/apache/axis/deployment/BuildWithAddressingTest.java

Author: deepal
Date: Tue May 10 04:56:05 2005
New Revision: 169452

URL: http://svn.apache.org/viewcvs?rev=169452&view=rev
Log:
Addressing module test

Added:
    webservices/axis/trunk/java/modules/core/test/org/apache/axis/deployment/BuildWithAddressingTest.java

Added: webservices/axis/trunk/java/modules/core/test/org/apache/axis/deployment/BuildWithAddressingTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/test/org/apache/axis/deployment/BuildWithAddressingTest.java?rev=169452&view=auto
==============================================================================
--- webservices/axis/trunk/java/modules/core/test/org/apache/axis/deployment/BuildWithAddressingTest.java (added)
+++ webservices/axis/trunk/java/modules/core/test/org/apache/axis/deployment/BuildWithAddressingTest.java Tue May 10 04:56:05 2005
@@ -0,0 +1,56 @@
+package org.apache.axis.deployment;
+
+import org.apache.axis.AbstractTestCase;
+import org.apache.axis.description.AxisService;
+import org.apache.axis.description.Flow;
+import org.apache.axis.description.AxisOperation;
+import org.apache.axis.description.AxisModule;
+import org.apache.axis.engine.AxisSystem;
+import org.apache.axis.context.EngineContextFactory;
+import org.apache.axis.context.SystemContext;
+
+import javax.xml.namespace.QName;
+import java.util.ArrayList;
+
+/*
+* 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: May 10, 2005
+ * Time: 5:44:58 PM
+ */
+public class BuildWithAddressingTest extends AbstractTestCase{
+
+    public BuildWithAddressingTest(String testName) {
+        super(testName);
+    }
+
+    public void testDeployment() throws Exception {
+        String filename = "./target/test-resources/deployment";
+        EngineContextFactory builder = new EngineContextFactory();
+        SystemContext er = builder.buildEngineContext(filename);
+        ArrayList phases =  er.getPhases(AxisSystem.INFLOW);
+        AxisModule modeule = er.getEngineConfig().getModule(new QName("addressing"));
+        assertNotNull(modeule);
+        if(phases.size() <= 0 ){
+            fail("this must failed Since there are addressing handlers ");
+        }
+
+    }
+}