You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2005/09/15 21:07:03 UTC

svn commit: r289289 [33/134] - in /webservices/axis2/trunk/java: ./ etc/ modules/addressing/ modules/addressing/src/META-INF/ modules/addressing/src/org/apache/axis2/handlers/addressing/ modules/addressing/test-resources/ modules/addressing/test/org/ap...

Modified: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/phaserule/PhaseLastTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/phaserule/PhaseLastTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/phaserule/PhaseLastTest.java (original)
+++ webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/phaserule/PhaseLastTest.java Thu Sep 15 11:52:11 2005
@@ -1,91 +1,91 @@
-package org.apache.axis2.phaserule;
-
-import junit.framework.TestCase;
-import org.apache.axis2.AxisFault;
-import org.apache.axis2.context.ConfigurationContext;
-import org.apache.axis2.context.MessageContext;
-import org.apache.axis2.description.HandlerDescription;
-import org.apache.axis2.description.PhaseRule;
-import org.apache.axis2.engine.AxisConfigurationImpl;
-import org.apache.axis2.engine.Handler;
-import org.apache.axis2.engine.Phase;
-import org.apache.axis2.phaseresolver.PhaseHolder;
-
-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 20, 2005
- * Time: 2:50:44 PM
- */
-public class PhaseLastTest extends TestCase {
-
-    public void testPhaseLast() throws AxisFault {
-        ArrayList phases = new ArrayList();
-        Phase p1 = new Phase("PhaseA");
-        phases.add(p1);
-        Phase p2 = new Phase("PhaseB");
-        phases.add(p2);
-
-        MessageContext msg = new MessageContext(
-                new ConfigurationContext(new AxisConfigurationImpl()));
-
-        PhaseHolder ph = new PhaseHolder(phases);
-        HandlerDescription hm = new HandlerDescription();
-        hm.setClassName("org.apache.axis2.phaserule.PhaseRuleHandlers");
-        Handler h1 = new PhaseRuleHandlers();
-        h1.init(hm);
-        ((PhaseRuleHandlers) h1).setName(new QName("PhaseLast"));
-        hm.setHandler(h1);
-        hm.setName(new QName("H1"));
-        PhaseRule rule = new PhaseRule();
-        rule.setPhaseName("PhaseA");
-        rule.setPhaseLast(true);
-        hm.setRules(rule);
-        ph.addHandler(hm);
-
-        HandlerDescription hm1 = new HandlerDescription();
-        hm1.setClassName("org.apache.axis2.phaserule.PhaseRuleHandlers");
-        Handler h2 = new PhaseRuleHandlers();
-        ((PhaseRuleHandlers) h2).setName(new QName("Second Handler"));
-        h2.init(hm1);
-        hm1.setHandler(h2);
-        hm1.setName(new QName("H2"));
-        PhaseRule rule1 = new PhaseRule();
-        rule1.setPhaseName("PhaseA");
-        rule1.setAfter("H1");
-        hm1.setRules(rule1);
-        ph.addHandler(hm1);
-
-        ArrayList handlers = p1.getHandlers();
-        Handler handler = (Handler) handlers.get(0);
-        if (!handler.getName().equals(new QName("Second Handler"))) {
-            fail("Computed Hnadler order is wrong ");
-        }
-        handler = (Handler) handlers.get(1);
-        if (!handler.getName().equals(new QName("PhaseLast"))) {
-            fail("Computed Hnadler order is wrong ");
-        }
-
-        p1.invoke(msg);
-    }
-}
+package org.apache.axis2.phaserule;
+
+import junit.framework.TestCase;
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.context.ConfigurationContext;
+import org.apache.axis2.context.MessageContext;
+import org.apache.axis2.description.HandlerDescription;
+import org.apache.axis2.description.PhaseRule;
+import org.apache.axis2.engine.AxisConfigurationImpl;
+import org.apache.axis2.engine.Handler;
+import org.apache.axis2.engine.Phase;
+import org.apache.axis2.phaseresolver.PhaseHolder;
+
+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 20, 2005
+ * Time: 2:50:44 PM
+ */
+public class PhaseLastTest extends TestCase {
+
+    public void testPhaseLast() throws AxisFault {
+        ArrayList phases = new ArrayList();
+        Phase p1 = new Phase("PhaseA");
+        phases.add(p1);
+        Phase p2 = new Phase("PhaseB");
+        phases.add(p2);
+
+        MessageContext msg = new MessageContext(
+                new ConfigurationContext(new AxisConfigurationImpl()));
+
+        PhaseHolder ph = new PhaseHolder(phases);
+        HandlerDescription hm = new HandlerDescription();
+        hm.setClassName("org.apache.axis2.phaserule.PhaseRuleHandlers");
+        Handler h1 = new PhaseRuleHandlers();
+        h1.init(hm);
+        ((PhaseRuleHandlers) h1).setName(new QName("PhaseLast"));
+        hm.setHandler(h1);
+        hm.setName(new QName("H1"));
+        PhaseRule rule = new PhaseRule();
+        rule.setPhaseName("PhaseA");
+        rule.setPhaseLast(true);
+        hm.setRules(rule);
+        ph.addHandler(hm);
+
+        HandlerDescription hm1 = new HandlerDescription();
+        hm1.setClassName("org.apache.axis2.phaserule.PhaseRuleHandlers");
+        Handler h2 = new PhaseRuleHandlers();
+        ((PhaseRuleHandlers) h2).setName(new QName("Second Handler"));
+        h2.init(hm1);
+        hm1.setHandler(h2);
+        hm1.setName(new QName("H2"));
+        PhaseRule rule1 = new PhaseRule();
+        rule1.setPhaseName("PhaseA");
+        rule1.setAfter("H1");
+        hm1.setRules(rule1);
+        ph.addHandler(hm1);
+
+        ArrayList handlers = p1.getHandlers();
+        Handler handler = (Handler) handlers.get(0);
+        if (!handler.getName().equals(new QName("Second Handler"))) {
+            fail("Computed Hnadler order is wrong ");
+        }
+        handler = (Handler) handlers.get(1);
+        if (!handler.getName().equals(new QName("PhaseLast"))) {
+            fail("Computed Hnadler order is wrong ");
+        }
+
+        p1.invoke(msg);
+    }
+}

Propchange: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/phaserule/PhaseLastTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/phaserule/PhaseRuleHandlers.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/phaserule/PhaseRuleHandlers.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/phaserule/PhaseRuleHandlers.java (original)
+++ webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/phaserule/PhaseRuleHandlers.java Thu Sep 15 11:52:11 2005
@@ -1,60 +1,60 @@
-package org.apache.axis2.phaserule;
-
-import org.apache.axis2.AxisFault;
-import org.apache.axis2.context.MessageContext;
-import org.apache.axis2.engine.Handler;
-import org.apache.axis2.handlers.AbstractHandler;
-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
- * Date: May 20, 2005
- * Time: 11:46:55 AM
- */
-public class PhaseRuleHandlers extends AbstractHandler implements Handler {
-
-    private Log log = LogFactory.getLog(getClass());
-    private String message;
-    private QName name;
-
-    public PhaseRuleHandlers() {
-        this.message = "inside service 2";
-    }
-
-    public QName getName() {
-        return name;
-    }
-
-    public void invoke(MessageContext msgContext) throws AxisFault {
-        log.info("I am " + name + " Handler Running :)");
-    }
-
-    public void revoke(MessageContext msgContext) {
-        log.info("I am " + name + " Handler Running :)");
-    }
-
-    public void setName(QName name) {
-        this.name = name;
-    }
-}
+package org.apache.axis2.phaserule;
+
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.context.MessageContext;
+import org.apache.axis2.engine.Handler;
+import org.apache.axis2.handlers.AbstractHandler;
+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
+ * Date: May 20, 2005
+ * Time: 11:46:55 AM
+ */
+public class PhaseRuleHandlers extends AbstractHandler implements Handler {
+
+    private Log log = LogFactory.getLog(getClass());
+    private String message;
+    private QName name;
+
+    public PhaseRuleHandlers() {
+        this.message = "inside service 2";
+    }
+
+    public QName getName() {
+        return name;
+    }
+
+    public void invoke(MessageContext msgContext) throws AxisFault {
+        log.info("I am " + name + " Handler Running :)");
+    }
+
+    public void revoke(MessageContext msgContext) {
+        log.info("I am " + name + " Handler Running :)");
+    }
+
+    public void setName(QName name) {
+        this.name = name;
+    }
+}

Propchange: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/phaserule/PhaseRuleHandlers.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/phaserule/PhaseRuleTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/phaserule/PhaseRuleTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/phaserule/PhaseRuleTest.java (original)
+++ webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/phaserule/PhaseRuleTest.java Thu Sep 15 11:52:11 2005
@@ -1,95 +1,95 @@
-package org.apache.axis2.phaserule;
-
-import org.apache.axis2.AbstractTestCase;
-import org.apache.axis2.description.HandlerDescription;
-import org.apache.axis2.description.PhaseRule;
-import org.apache.axis2.engine.AxisConfiguration;
-import org.apache.axis2.engine.AxisConfigurationImpl;
-import org.apache.axis2.engine.Handler;
-import org.apache.axis2.phaseresolver.PhaseHolder;
-
-import javax.xml.namespace.QName;
-import java.util.ArrayList;
-
-/**
- * Created by IntelliJ IDEA.
- * Author : Deepal Jayasinghe
- * Date: Apr 26, 2005
- * Time: 4:31:18 PM
- */
-public class PhaseRuleTest extends AbstractTestCase {
-
-    PhaseRuleTest phaserul;
-    AxisConfiguration axisSytem;
-
-    public PhaseRuleTest(String testName) {
-        super(testName);
-    }
-
-    public void testPhaseRules() throws Exception {
-        super.setUp();
-        //TODO fix me
-        phaserul = new PhaseRuleTest("");
-        axisSytem = new AxisConfigurationImpl();
-        ((AxisConfigurationImpl)axisSytem).setDefaultDispatchers();
-        ArrayList inPhase = axisSytem.getInPhasesUptoAndIncludingPostDispatch();
-
-        Handler han = null;//(Handler)Class.forName("org.apache.axis2.handlers.AbstractHandler",true, Thread.currentThread().getContextClassLoader()).newInstance();
-        PhaseHolder ph = new PhaseHolder(inPhase);
-
-        HandlerDescription hm = new HandlerDescription();
-        hm.setClassName("org.apache.axis2.handlers.AbstractHandler");
-        Handler h1 = new PhaseRuleHandlers();
-        h1.init(hm);
-        hm.setHandler(h1);
-        hm.setName(new QName("H1"));
-        PhaseRule rule = new PhaseRule();
-        rule.setPhaseName("PreDispatch");
-        rule.setPhaseFirst(true);
-        hm.setRules(rule);
-        ph.addHandler(hm);
-
-        HandlerDescription hm1 = new HandlerDescription();
-        hm1.setClassName("org.apache.axis2.handlers.AbstractHandler");
-        Handler h2 = new PhaseRuleHandlers();
-        h2.init(hm1);
-        hm1.setHandler(h2);
-        hm1.setName(new QName("H2"));
-        PhaseRule rule1 = new PhaseRule();
-        rule1.setPhaseName("PreDispatch");
-        rule1.setAfter("H1");
-        hm1.setRules(rule1);
-        ph.addHandler(hm1);
-
-        HandlerDescription hm2 = new HandlerDescription();
-        hm2.setClassName("org.apache.axis2.handlers.AbstractHandler");
-        Handler h3 = new PhaseRuleHandlers();
-        h3.init(hm2);
-        hm2.setHandler(h3);
-        hm2.setName(new QName("H3"));
-        PhaseRule rule2 = new PhaseRule();
-        rule2.setPhaseName("PreDispatch");
-        rule2.setAfter("H1");
-        rule2.setBefore("H2");
-        hm2.setRules(rule2);
-        ph.addHandler(hm2);
-
-        HandlerDescription hm3 = new HandlerDescription();
-        hm3.setClassName("org.apache.axis2.handlers.AbstractHandler");
-        Handler h4 = new PhaseRuleHandlers();
-        h4.init(hm3);
-        hm3.setHandler(h4);
-        hm3.setName(new QName("H4"));
-        PhaseRule rule3 = new PhaseRule();
-        rule3.setPhaseName("Dispatch");
-        hm3.setRules(rule3);
-        ph.addHandler(hm3);
-
-
-        /*ArrayList oh = ph.getOrderHandler();
-        for (int i = 0; i < oh.size(); i++) {
-            HandlerDescription metadata = (HandlerDescription) oh.get(i);
-            System.out.println("Name:" + metadata.getName().getLocalPart());
-        }*/
-    }
-}
+package org.apache.axis2.phaserule;
+
+import org.apache.axis2.AbstractTestCase;
+import org.apache.axis2.description.HandlerDescription;
+import org.apache.axis2.description.PhaseRule;
+import org.apache.axis2.engine.AxisConfiguration;
+import org.apache.axis2.engine.AxisConfigurationImpl;
+import org.apache.axis2.engine.Handler;
+import org.apache.axis2.phaseresolver.PhaseHolder;
+
+import javax.xml.namespace.QName;
+import java.util.ArrayList;
+
+/**
+ * Created by IntelliJ IDEA.
+ * Author : Deepal Jayasinghe
+ * Date: Apr 26, 2005
+ * Time: 4:31:18 PM
+ */
+public class PhaseRuleTest extends AbstractTestCase {
+
+    PhaseRuleTest phaserul;
+    AxisConfiguration axisSytem;
+
+    public PhaseRuleTest(String testName) {
+        super(testName);
+    }
+
+    public void testPhaseRules() throws Exception {
+        super.setUp();
+        //TODO fix me
+        phaserul = new PhaseRuleTest("");
+        axisSytem = new AxisConfigurationImpl();
+        ((AxisConfigurationImpl)axisSytem).setDefaultDispatchers();
+        ArrayList inPhase = axisSytem.getInPhasesUptoAndIncludingPostDispatch();
+
+        Handler han = null;//(Handler)Class.forName("org.apache.axis2.handlers.AbstractHandler",true, Thread.currentThread().getContextClassLoader()).newInstance();
+        PhaseHolder ph = new PhaseHolder(inPhase);
+
+        HandlerDescription hm = new HandlerDescription();
+        hm.setClassName("org.apache.axis2.handlers.AbstractHandler");
+        Handler h1 = new PhaseRuleHandlers();
+        h1.init(hm);
+        hm.setHandler(h1);
+        hm.setName(new QName("H1"));
+        PhaseRule rule = new PhaseRule();
+        rule.setPhaseName("PreDispatch");
+        rule.setPhaseFirst(true);
+        hm.setRules(rule);
+        ph.addHandler(hm);
+
+        HandlerDescription hm1 = new HandlerDescription();
+        hm1.setClassName("org.apache.axis2.handlers.AbstractHandler");
+        Handler h2 = new PhaseRuleHandlers();
+        h2.init(hm1);
+        hm1.setHandler(h2);
+        hm1.setName(new QName("H2"));
+        PhaseRule rule1 = new PhaseRule();
+        rule1.setPhaseName("PreDispatch");
+        rule1.setAfter("H1");
+        hm1.setRules(rule1);
+        ph.addHandler(hm1);
+
+        HandlerDescription hm2 = new HandlerDescription();
+        hm2.setClassName("org.apache.axis2.handlers.AbstractHandler");
+        Handler h3 = new PhaseRuleHandlers();
+        h3.init(hm2);
+        hm2.setHandler(h3);
+        hm2.setName(new QName("H3"));
+        PhaseRule rule2 = new PhaseRule();
+        rule2.setPhaseName("PreDispatch");
+        rule2.setAfter("H1");
+        rule2.setBefore("H2");
+        hm2.setRules(rule2);
+        ph.addHandler(hm2);
+
+        HandlerDescription hm3 = new HandlerDescription();
+        hm3.setClassName("org.apache.axis2.handlers.AbstractHandler");
+        Handler h4 = new PhaseRuleHandlers();
+        h4.init(hm3);
+        hm3.setHandler(h4);
+        hm3.setName(new QName("H4"));
+        PhaseRule rule3 = new PhaseRule();
+        rule3.setPhaseName("Dispatch");
+        hm3.setRules(rule3);
+        ph.addHandler(hm3);
+
+
+        /*ArrayList oh = ph.getOrderHandler();
+        for (int i = 0; i < oh.size(); i++) {
+            HandlerDescription metadata = (HandlerDescription) oh.get(i);
+            System.out.println("Name:" + metadata.getName().getLocalPart());
+        }*/
+    }
+}

Propchange: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/phaserule/PhaseRuleTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/phaserule/PreDispatchPhaseRuleTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/phaserule/PreDispatchPhaseRuleTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/phaserule/PreDispatchPhaseRuleTest.java (original)
+++ webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/phaserule/PreDispatchPhaseRuleTest.java Thu Sep 15 11:52:11 2005
@@ -1,135 +1,135 @@
-package org.apache.axis2.phaserule;
-
-import org.apache.axis2.AbstractTestCase;
-import org.apache.axis2.description.HandlerDescription;
-import org.apache.axis2.description.PhaseRule;
-import org.apache.axis2.engine.AxisConfiguration;
-import org.apache.axis2.engine.AxisConfigurationImpl;
-import org.apache.axis2.engine.Handler;
-import org.apache.axis2.phaseresolver.PhaseHolder;
-
-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: 4:28:27 PM
- */
-public class PreDispatchPhaseRuleTest extends AbstractTestCase {
-
-    PreDispatchPhaseRuleTest phaserul;
-    AxisConfiguration axisSytem;
-
-    public PreDispatchPhaseRuleTest(String testName) {
-        super(testName);
-    }
-
-    public void testPhaseRule() throws Exception {
-        //TODO Fix me
-        phaserul = new PreDispatchPhaseRuleTest("");
-        axisSytem = new AxisConfigurationImpl();
-       ((AxisConfigurationImpl)axisSytem).setDefaultDispatchers();
-        ArrayList inPhase = axisSytem.getInPhasesUptoAndIncludingPostDispatch();
-
-        Handler han = null;
-        PhaseHolder ph = new PhaseHolder(inPhase);
-
-
-        HandlerDescription pre = new HandlerDescription();
-        pre.setClassName("org.apache.axis2.handlers.AbstractHandler");
-        Handler h1 = new PhaseRuleHandlers();
-        h1.init(pre);
-        pre.setHandler(h1);
-        pre.setName(new QName("pre-H1"));
-        PhaseRule pre_rule1 = new PhaseRule();
-        pre_rule1.setPhaseName("PreDispatch");
-        pre.setRules(pre_rule1);
-        ph.addHandler(pre);
-
-        HandlerDescription pre2 = new HandlerDescription();
-        pre2.setClassName("org.apache.axis2.handlers.AbstractHandler");
-        Handler h2 = new PhaseRuleHandlers();
-        h2.init(pre2);
-        pre2.setHandler(h2);
-        pre2.setName(new QName("dispatch"));
-        PhaseRule prerule2 = new PhaseRule();
-        prerule2.setPhaseName("Dispatch");
-        pre2.setRules(prerule2);
-        ph.addHandler(pre2);
-
-
-        HandlerDescription hm = new HandlerDescription();
-        hm.setClassName("org.apache.axis2.handlers.AbstractHandler");
-        Handler h3 = new PhaseRuleHandlers();
-        h3.init(hm);
-        hm.setHandler(h3);
-        hm.setName(new QName("pre-H2"));
-        PhaseRule rule = new PhaseRule();
-        rule.setPhaseName("PreDispatch");
-        rule.setPhaseFirst(true);
-        hm.setRules(rule);
-        ph.addHandler(hm);
-
-        HandlerDescription hm1 = new HandlerDescription();
-        hm1.setClassName("org.apache.axis2.handlers.AbstractHandler");
-        Handler h4 = new PhaseRuleHandlers();
-        h4.init(hm1);
-        hm1.setHandler(h4);
-        hm1.setName(new QName("pre-H3"));
-        PhaseRule rule1 = new PhaseRule();
-        rule1.setPhaseName("PreDispatch");
-        rule1.setAfter("pre-H2");
-        hm1.setRules(rule1);
-        ph.addHandler(hm1);
-
-        HandlerDescription hm2 = new HandlerDescription();
-        hm2.setClassName("org.apache.axis2.handlers.AbstractHandler");
-        Handler h5 = new PhaseRuleHandlers();
-        h5.init(hm2);
-        hm2.setHandler(h5);
-        hm2.setName(new QName("H3"));
-        PhaseRule rule2 = new PhaseRule();
-        rule2.setPhaseName("PreDispatch");
-        rule2.setAfter("pre-H2");
-        rule2.setBefore("pre-H3");
-        hm2.setRules(rule2);
-        ph.addHandler(hm2);
-
-        HandlerDescription hm3 = new HandlerDescription();
-        hm3.setClassName("org.apache.axis2.handlers.AbstractHandler");
-        Handler h6 = new PhaseRuleHandlers();
-        h6.init(hm3);
-        hm3.setHandler(h6);
-        hm3.setName(new QName("H4"));
-        PhaseRule rule3 = new PhaseRule();
-        rule3.setPhaseName("PostDispatch");
-        hm3.setRules(rule3);
-        ph.addHandler(hm3);
-
-
-        /*ArrayList oh = ph.getOrderHandler();
-        for (int i = 0; i < oh.size(); i++) {
-            HandlerDescription metadata = (HandlerDescription) oh.get(i);
-            System.out.println("Name:" + metadata.getName().getLocalPart());
-        }*/
-    }
-}
+package org.apache.axis2.phaserule;
+
+import org.apache.axis2.AbstractTestCase;
+import org.apache.axis2.description.HandlerDescription;
+import org.apache.axis2.description.PhaseRule;
+import org.apache.axis2.engine.AxisConfiguration;
+import org.apache.axis2.engine.AxisConfigurationImpl;
+import org.apache.axis2.engine.Handler;
+import org.apache.axis2.phaseresolver.PhaseHolder;
+
+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: 4:28:27 PM
+ */
+public class PreDispatchPhaseRuleTest extends AbstractTestCase {
+
+    PreDispatchPhaseRuleTest phaserul;
+    AxisConfiguration axisSytem;
+
+    public PreDispatchPhaseRuleTest(String testName) {
+        super(testName);
+    }
+
+    public void testPhaseRule() throws Exception {
+        //TODO Fix me
+        phaserul = new PreDispatchPhaseRuleTest("");
+        axisSytem = new AxisConfigurationImpl();
+       ((AxisConfigurationImpl)axisSytem).setDefaultDispatchers();
+        ArrayList inPhase = axisSytem.getInPhasesUptoAndIncludingPostDispatch();
+
+        Handler han = null;
+        PhaseHolder ph = new PhaseHolder(inPhase);
+
+
+        HandlerDescription pre = new HandlerDescription();
+        pre.setClassName("org.apache.axis2.handlers.AbstractHandler");
+        Handler h1 = new PhaseRuleHandlers();
+        h1.init(pre);
+        pre.setHandler(h1);
+        pre.setName(new QName("pre-H1"));
+        PhaseRule pre_rule1 = new PhaseRule();
+        pre_rule1.setPhaseName("PreDispatch");
+        pre.setRules(pre_rule1);
+        ph.addHandler(pre);
+
+        HandlerDescription pre2 = new HandlerDescription();
+        pre2.setClassName("org.apache.axis2.handlers.AbstractHandler");
+        Handler h2 = new PhaseRuleHandlers();
+        h2.init(pre2);
+        pre2.setHandler(h2);
+        pre2.setName(new QName("dispatch"));
+        PhaseRule prerule2 = new PhaseRule();
+        prerule2.setPhaseName("Dispatch");
+        pre2.setRules(prerule2);
+        ph.addHandler(pre2);
+
+
+        HandlerDescription hm = new HandlerDescription();
+        hm.setClassName("org.apache.axis2.handlers.AbstractHandler");
+        Handler h3 = new PhaseRuleHandlers();
+        h3.init(hm);
+        hm.setHandler(h3);
+        hm.setName(new QName("pre-H2"));
+        PhaseRule rule = new PhaseRule();
+        rule.setPhaseName("PreDispatch");
+        rule.setPhaseFirst(true);
+        hm.setRules(rule);
+        ph.addHandler(hm);
+
+        HandlerDescription hm1 = new HandlerDescription();
+        hm1.setClassName("org.apache.axis2.handlers.AbstractHandler");
+        Handler h4 = new PhaseRuleHandlers();
+        h4.init(hm1);
+        hm1.setHandler(h4);
+        hm1.setName(new QName("pre-H3"));
+        PhaseRule rule1 = new PhaseRule();
+        rule1.setPhaseName("PreDispatch");
+        rule1.setAfter("pre-H2");
+        hm1.setRules(rule1);
+        ph.addHandler(hm1);
+
+        HandlerDescription hm2 = new HandlerDescription();
+        hm2.setClassName("org.apache.axis2.handlers.AbstractHandler");
+        Handler h5 = new PhaseRuleHandlers();
+        h5.init(hm2);
+        hm2.setHandler(h5);
+        hm2.setName(new QName("H3"));
+        PhaseRule rule2 = new PhaseRule();
+        rule2.setPhaseName("PreDispatch");
+        rule2.setAfter("pre-H2");
+        rule2.setBefore("pre-H3");
+        hm2.setRules(rule2);
+        ph.addHandler(hm2);
+
+        HandlerDescription hm3 = new HandlerDescription();
+        hm3.setClassName("org.apache.axis2.handlers.AbstractHandler");
+        Handler h6 = new PhaseRuleHandlers();
+        h6.init(hm3);
+        hm3.setHandler(h6);
+        hm3.setName(new QName("H4"));
+        PhaseRule rule3 = new PhaseRule();
+        rule3.setPhaseName("PostDispatch");
+        hm3.setRules(rule3);
+        ph.addHandler(hm3);
+
+
+        /*ArrayList oh = ph.getOrderHandler();
+        for (int i = 0; i < oh.size(); i++) {
+            HandlerDescription metadata = (HandlerDescription) oh.get(i);
+            System.out.println("Name:" + metadata.getName().getLocalPart());
+        }*/
+    }
+}

Propchange: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/phaserule/PreDispatchPhaseRuleTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/phaserule/SingleHandlerPhaseTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/phaserule/SingleHandlerPhaseTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/phaserule/SingleHandlerPhaseTest.java (original)
+++ webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/phaserule/SingleHandlerPhaseTest.java Thu Sep 15 11:52:11 2005
@@ -1,87 +1,87 @@
-package org.apache.axis2.phaserule;
-
-import junit.framework.TestCase;
-import org.apache.axis2.AxisFault;
-import org.apache.axis2.context.ConfigurationContext;
-import org.apache.axis2.context.MessageContext;
-import org.apache.axis2.description.HandlerDescription;
-import org.apache.axis2.description.PhaseRule;
-import org.apache.axis2.engine.AxisConfigurationImpl;
-import org.apache.axis2.engine.Handler;
-import org.apache.axis2.engine.Phase;
-import org.apache.axis2.phaseresolver.PhaseHolder;
-
-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 20, 2005
- * Time: 2:57:21 PM
- */
-public class SingleHandlerPhaseTest extends TestCase {
-
-    public void testSingleHandler() {
-        try {
-            ArrayList phases = new ArrayList();
-            Phase p1 = new Phase("PhaseA");
-            phases.add(p1);
-            Phase p2 = new Phase("PhaseB");
-            phases.add(p2);
-
-            MessageContext msg = new MessageContext(
-                    new ConfigurationContext(new AxisConfigurationImpl()));
-
-            PhaseHolder ph = new PhaseHolder(phases);
-            HandlerDescription hm = new HandlerDescription();
-            hm.setClassName("org.apache.axis2.phaserule.PhaseRuleHandlers");
-            Handler h1 = new PhaseRuleHandlers();
-            h1.init(hm);
-            ((PhaseRuleHandlers) h1).setName(new QName("PhaseFirstHnadler"));
-            hm.setHandler(h1);
-            hm.setName(new QName("H1"));
-            PhaseRule rule = new PhaseRule();
-            rule.setPhaseName("PhaseA");
-            rule.setPhaseFirst(true);
-            rule.setPhaseLast(true);
-            hm.setRules(rule);
-            ph.addHandler(hm);
-
-            HandlerDescription hm1 = new HandlerDescription();
-            hm1.setClassName("org.apache.axis2.phaserule.PhaseRuleHandlers");
-            Handler h2 = new PhaseRuleHandlers();
-            ((PhaseRuleHandlers) h2).setName(new QName("Second Handler"));
-            h2.init(hm1);
-            hm1.setHandler(h2);
-            hm1.setName(new QName("H2"));
-            PhaseRule rule1 = new PhaseRule();
-            rule1.setPhaseName("PhaseA");
-            rule1.setAfter("H1");
-            hm1.setRules(rule1);
-            ph.addHandler(hm1);
-            p1.invoke(msg);
-            fail("This should fail with : can only have one handler, since there is a " +
-                    "handler with both phaseFirst and PhaseLast true ");
-        } catch (AxisFault axisFault) {
-            return;
-        }
-    }
-}
+package org.apache.axis2.phaserule;
+
+import junit.framework.TestCase;
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.context.ConfigurationContext;
+import org.apache.axis2.context.MessageContext;
+import org.apache.axis2.description.HandlerDescription;
+import org.apache.axis2.description.PhaseRule;
+import org.apache.axis2.engine.AxisConfigurationImpl;
+import org.apache.axis2.engine.Handler;
+import org.apache.axis2.engine.Phase;
+import org.apache.axis2.phaseresolver.PhaseHolder;
+
+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 20, 2005
+ * Time: 2:57:21 PM
+ */
+public class SingleHandlerPhaseTest extends TestCase {
+
+    public void testSingleHandler() {
+        try {
+            ArrayList phases = new ArrayList();
+            Phase p1 = new Phase("PhaseA");
+            phases.add(p1);
+            Phase p2 = new Phase("PhaseB");
+            phases.add(p2);
+
+            MessageContext msg = new MessageContext(
+                    new ConfigurationContext(new AxisConfigurationImpl()));
+
+            PhaseHolder ph = new PhaseHolder(phases);
+            HandlerDescription hm = new HandlerDescription();
+            hm.setClassName("org.apache.axis2.phaserule.PhaseRuleHandlers");
+            Handler h1 = new PhaseRuleHandlers();
+            h1.init(hm);
+            ((PhaseRuleHandlers) h1).setName(new QName("PhaseFirstHnadler"));
+            hm.setHandler(h1);
+            hm.setName(new QName("H1"));
+            PhaseRule rule = new PhaseRule();
+            rule.setPhaseName("PhaseA");
+            rule.setPhaseFirst(true);
+            rule.setPhaseLast(true);
+            hm.setRules(rule);
+            ph.addHandler(hm);
+
+            HandlerDescription hm1 = new HandlerDescription();
+            hm1.setClassName("org.apache.axis2.phaserule.PhaseRuleHandlers");
+            Handler h2 = new PhaseRuleHandlers();
+            ((PhaseRuleHandlers) h2).setName(new QName("Second Handler"));
+            h2.init(hm1);
+            hm1.setHandler(h2);
+            hm1.setName(new QName("H2"));
+            PhaseRule rule1 = new PhaseRule();
+            rule1.setPhaseName("PhaseA");
+            rule1.setAfter("H1");
+            hm1.setRules(rule1);
+            ph.addHandler(hm1);
+            p1.invoke(msg);
+            fail("This should fail with : can only have one handler, since there is a " +
+                    "handler with both phaseFirst and PhaseLast true ");
+        } catch (AxisFault axisFault) {
+            return;
+        }
+    }
+}

Propchange: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/phaserule/SingleHandlerPhaseTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/storage/impl/AbstractStorageTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/storage/impl/AbstractStorageTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/storage/impl/AbstractStorageTest.java (original)
+++ webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/storage/impl/AbstractStorageTest.java Thu Sep 15 11:52:11 2005
@@ -1,44 +1,44 @@
-package org.apache.axis2.storage.impl;
-
-import junit.framework.TestCase;
-import org.apache.axis2.storage.AxisStorage;
-
-/*
- * 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.
- *
- * 
- */
-
-public abstract class AbstractStorageTest extends TestCase {
-    protected AxisStorage storage;
-    protected Object testValueObject;
-
-    public void testPutAndGet() {
-        try {
-            Object key = storage.put(testValueObject);
-            assertEquals(testValueObject, storage.get(key));
-            assertEquals(testValueObject, storage.remove(key));
-            assertNull(storage.get(key));
-        } catch (Exception e) {
-            fail(e.getMessage());
-        }
-    }
-
-    protected void tearDown() throws Exception {
-        storage.clean();
-        storage = null;
-
-    }
-}
+package org.apache.axis2.storage.impl;
+
+import junit.framework.TestCase;
+import org.apache.axis2.storage.AxisStorage;
+
+/*
+ * 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.
+ *
+ * 
+ */
+
+public abstract class AbstractStorageTest extends TestCase {
+    protected AxisStorage storage;
+    protected Object testValueObject;
+
+    public void testPutAndGet() {
+        try {
+            Object key = storage.put(testValueObject);
+            assertEquals(testValueObject, storage.get(key));
+            assertEquals(testValueObject, storage.remove(key));
+            assertNull(storage.get(key));
+        } catch (Exception e) {
+            fail(e.getMessage());
+        }
+    }
+
+    protected void tearDown() throws Exception {
+        storage.clean();
+        storage = null;
+
+    }
+}

Propchange: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/storage/impl/AbstractStorageTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/storage/impl/AxisFileStorageTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/storage/impl/AxisFileStorageTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/storage/impl/AxisFileStorageTest.java (original)
+++ webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/storage/impl/AxisFileStorageTest.java Thu Sep 15 11:52:11 2005
@@ -1,59 +1,59 @@
-package org.apache.axis2.storage.impl;
-
-import java.io.File;
-import java.io.Serializable;
-
-/*
- * 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.
- *
- * 
- */
-
-public class AxisFileStorageTest extends AbstractStorageTest {
-
-    protected void setUp() throws Exception {
-        File file = new File("temp.properties");
-        storage = new AxisFileStorage(file);
-        testValueObject = new TestBean("me", 25);
-    }
-
-
-    private class TestBean implements Serializable {
-        private String name;
-        private int age;
-
-        public TestBean(String name, int age) {
-            this.name = name;
-            this.age = age;
-        }
-
-        public String getName() {
-            return name;
-        }
-
-        public void setName(String name) {
-            this.name = name;
-        }
-
-        public int getAge() {
-            return age;
-        }
-
-        public void setAge(int age) {
-            this.age = age;
-        }
-
-    }
-}
+package org.apache.axis2.storage.impl;
+
+import java.io.File;
+import java.io.Serializable;
+
+/*
+ * 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.
+ *
+ * 
+ */
+
+public class AxisFileStorageTest extends AbstractStorageTest {
+
+    protected void setUp() throws Exception {
+        File file = new File("temp.properties");
+        storage = new AxisFileStorage(file);
+        testValueObject = new TestBean("me", 25);
+    }
+
+
+    private class TestBean implements Serializable {
+        private String name;
+        private int age;
+
+        public TestBean(String name, int age) {
+            this.name = name;
+            this.age = age;
+        }
+
+        public String getName() {
+            return name;
+        }
+
+        public void setName(String name) {
+            this.name = name;
+        }
+
+        public int getAge() {
+            return age;
+        }
+
+        public void setAge(int age) {
+            this.age = age;
+        }
+
+    }
+}

Propchange: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/storage/impl/AxisFileStorageTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/storage/impl/AxisMemoryStorageTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/storage/impl/AxisMemoryStorageTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/storage/impl/AxisMemoryStorageTest.java (original)
+++ webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/storage/impl/AxisMemoryStorageTest.java Thu Sep 15 11:52:11 2005
@@ -1,29 +1,29 @@
-package org.apache.axis2.storage.impl;
-
-
-/*
- * 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.
- *
- * 
- */
-
-public class AxisMemoryStorageTest extends AbstractStorageTest {
-
-    protected void setUp() throws Exception {
-        storage = new AxisMemoryStorage();
-        testValueObject = new Object();
-    }
-
-}
+package org.apache.axis2.storage.impl;
+
+
+/*
+ * 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.
+ *
+ * 
+ */
+
+public class AxisMemoryStorageTest extends AbstractStorageTest {
+
+    protected void setUp() throws Exception {
+        storage = new AxisMemoryStorage();
+        testValueObject = new Object();
+    }
+
+}

Propchange: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/storage/impl/AxisMemoryStorageTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/transport/HTTPTrasportHeaderParsingTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/transport/SimpleMailListnerTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/transport/http/HTTPTransportUtilTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/transport/http/HTTPTransportUtilTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/transport/http/HTTPTransportUtilTest.java (original)
+++ webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/transport/http/HTTPTransportUtilTest.java Thu Sep 15 11:52:11 2005
@@ -1,69 +1,69 @@
-package org.apache.axis2.transport.http;
-
-import junit.framework.TestCase;
-import org.apache.axis2.om.OMAbstractFactory;
-import org.apache.axis2.om.OMElement;
-import org.apache.axis2.om.OMText;
-import org.apache.axis2.soap.SOAPEnvelope;
-import org.apache.axis2.soap.SOAPFactory;
-
-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 : Eran Chinthaka (chinthaka@apache.org)
- */
-
-public class HTTPTransportUtilTest extends TestCase {
-    private HTTPTransportUtils httpTransportUtils;
-    private SOAPFactory factory;
-
-    protected void setUp() throws Exception {
-        super.setUp();
-        httpTransportUtils = new HTTPTransportUtils();
-        factory = OMAbstractFactory.getSOAP11Factory();
-    }
-
-    public void testOptimizedEnvelope() {
-        SOAPEnvelope soapEnvelope = factory.getDefaultEnvelope();
-
-        OMElement element = factory.createOMElement(
-                new QName("MyFirstBodyElement"), soapEnvelope.getBody());
-        OMElement element11 = factory.createOMElement(
-                new QName("MyFirstBodyElement"), element);
-        OMText optimizedText = factory.createText("Hi", "text/plain", true);
-        element11.addChild(optimizedText);
-        assertTrue(
-                "optmization check has not performed correctly in SOAPEnvelope",
-                HTTPTransportUtils.checkEnvelopeForOptimise(soapEnvelope));
-    }
-
-    public void testNonOptimizedEnvelope() {
-        SOAPEnvelope soapEnvelope = factory.getDefaultEnvelope();
-
-        OMElement element = factory.createOMElement(
-                new QName("MyFirstBodyElement"), soapEnvelope.getBody());
-        OMElement element11 = factory.createOMElement(
-                new QName("MyFirstBodyElement"), element);
-        OMText optimizedText = factory.createText("Hi", "text/plain", false);
-        element11.addChild(optimizedText);
-        assertFalse(
-                "optmization check has not performed correctly in SOAPEnvelope",
-                HTTPTransportUtils.checkEnvelopeForOptimise(soapEnvelope));
-    }
-
-
-}
+package org.apache.axis2.transport.http;
+
+import junit.framework.TestCase;
+import org.apache.axis2.om.OMAbstractFactory;
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.om.OMText;
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.SOAPFactory;
+
+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 : Eran Chinthaka (chinthaka@apache.org)
+ */
+
+public class HTTPTransportUtilTest extends TestCase {
+    private HTTPTransportUtils httpTransportUtils;
+    private SOAPFactory factory;
+
+    protected void setUp() throws Exception {
+        super.setUp();
+        httpTransportUtils = new HTTPTransportUtils();
+        factory = OMAbstractFactory.getSOAP11Factory();
+    }
+
+    public void testOptimizedEnvelope() {
+        SOAPEnvelope soapEnvelope = factory.getDefaultEnvelope();
+
+        OMElement element = factory.createOMElement(
+                new QName("MyFirstBodyElement"), soapEnvelope.getBody());
+        OMElement element11 = factory.createOMElement(
+                new QName("MyFirstBodyElement"), element);
+        OMText optimizedText = factory.createText("Hi", "text/plain", true);
+        element11.addChild(optimizedText);
+        assertTrue(
+                "optmization check has not performed correctly in SOAPEnvelope",
+                HTTPTransportUtils.checkEnvelopeForOptimise(soapEnvelope));
+    }
+
+    public void testNonOptimizedEnvelope() {
+        SOAPEnvelope soapEnvelope = factory.getDefaultEnvelope();
+
+        OMElement element = factory.createOMElement(
+                new QName("MyFirstBodyElement"), soapEnvelope.getBody());
+        OMElement element11 = factory.createOMElement(
+                new QName("MyFirstBodyElement"), element);
+        OMText optimizedText = factory.createText("Hi", "text/plain", false);
+        element11.addChild(optimizedText);
+        assertFalse(
+                "optmization check has not performed correctly in SOAPEnvelope",
+                HTTPTransportUtils.checkEnvelopeForOptimise(soapEnvelope));
+    }
+
+
+}

Propchange: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/transport/http/HTTPTransportUtilTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/transport/sample.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/transport/sample.xml?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/transport/sample.xml (original)
+++ webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/transport/sample.xml Thu Sep 15 11:52:11 2005
@@ -1,15 +1,15 @@
-<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
-    <soapenv:Header>
-        <wsa:MessageID soapenv:mustUnderstand="0">uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5</wsa:MessageID>
-        <wsa:To soapenv:mustUnderstand="0">http://localhost:8081/axis/services/BankPort</wsa:To>
-        <wsa:From soapenv:mustUnderstand="0">
-            <wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
-        </wsa:From>
-        <wsa:Action>http://ws.apache.org/tests/action</wsa:Action>
-    </soapenv:Header>
-    <soapenv:Body>
-        <ns1:getBalance soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://localhost:8081/axis/services/BankPort">
-            <accountNo>234</accountNo>
-        </ns1:getBalance>
-    </soapenv:Body>
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
+    <soapenv:Header>
+        <wsa:MessageID soapenv:mustUnderstand="0">uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5</wsa:MessageID>
+        <wsa:To soapenv:mustUnderstand="0">http://localhost:8081/axis/services/BankPort</wsa:To>
+        <wsa:From soapenv:mustUnderstand="0">
+            <wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
+        </wsa:From>
+        <wsa:Action>http://ws.apache.org/tests/action</wsa:Action>
+    </soapenv:Header>
+    <soapenv:Body>
+        <ns1:getBalance soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://localhost:8081/axis/services/BankPort">
+            <accountNo>234</accountNo>
+        </ns1:getBalance>
+    </soapenv:Body>
 </soapenv:Envelope>

Propchange: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/transport/sample.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/transport/tcp/TCPTransportTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/transport/tcp/TCPTransportTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/transport/tcp/TCPTransportTest.java (original)
+++ webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/transport/tcp/TCPTransportTest.java Thu Sep 15 11:52:11 2005
@@ -1,81 +1,81 @@
-/*
- * 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.
- */
-package org.apache.axis2.transport.tcp;
-
-import junit.framework.TestCase;
-import org.apache.axis2.AxisFault;
-import org.apache.axis2.om.impl.llom.builder.StAXBuilder;
-import org.apache.axis2.soap.SOAPEnvelope;
-import org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder;
-
-import javax.xml.stream.XMLInputFactory;
-import javax.xml.stream.XMLStreamReader;
-import java.io.InputStream;
-
-public class TCPTransportTest extends TestCase {
-    public TCPTransportTest(String arg0) {
-        super(arg0);
-        // TODO Auto-generated constructor stub
-    }
-
-    public void testTransportSender() throws AxisFault {
-//        Thread thead = new Thread(new Runnable() {
-//            public void run() {
-//               try {
-//                     ServerSocket serverSocket = new ServerSocket(45678);
-//                        Socket s = serverSocket.accept();
-//                        assertNotNull(createSOAPEnvelope(s.getInputStream()));
-//                } catch (AxisFault e) {
-//                    // TODO Auto-generated catch block
-//                    e.printStackTrace();
-//                } catch (IOException e) {
-//                    // TODO Auto-generated catch block
-//                    e.printStackTrace();
-//                }
-//            }
-//        });
-//        thead.start();
-//
-//        TCPTransportSender ts = new TCPTransportSender();
-//        MessageContext msgctx = new MessageContext(null, null, null, null);
-//        msgctx.setTo(new EndpointReference(AddressingConstants.WSA_TO,"http://127.0.0.1:45679"));
-//        
-//        msgctx.setEnvelope(createSOAPEnvelope(Thread.currentThread().getContextClassLoader().getResourceAsStream("org/apache/axis2/transport/sample.xml")));
-//        ts.invoke(msgctx);
-
-
-    }
-    
-//    public void testTransportReceiver(){
-//        ConfigurationContext configContext = new ConfigurationContext(new AxisConfigurationImpl());
-//        ServiceDescription serviceDesc = new ServiceDescription(new QName("TempService"));
-//        OperationDescription opDesc = new OperationDescription();
-//        TCPServer tcpServer = new TCPServer();
-//    }
-    
-
-    public SOAPEnvelope createSOAPEnvelope(InputStream in) throws AxisFault {
-        try {
-            XMLStreamReader xmlreader =
-                    XMLInputFactory.newInstance().createXMLStreamReader(in);
-            StAXBuilder builder = new StAXSOAPModelBuilder(xmlreader, null);
-            return (SOAPEnvelope) builder.getDocumentElement();
-        } catch (Exception e) {
-            throw new AxisFault(e.getMessage(), e);
-        }
-    }
-
-}
+/*
+ * 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.
+ */
+package org.apache.axis2.transport.tcp;
+
+import junit.framework.TestCase;
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.om.impl.llom.builder.StAXBuilder;
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder;
+
+import javax.xml.stream.XMLInputFactory;
+import javax.xml.stream.XMLStreamReader;
+import java.io.InputStream;
+
+public class TCPTransportTest extends TestCase {
+    public TCPTransportTest(String arg0) {
+        super(arg0);
+        // TODO Auto-generated constructor stub
+    }
+
+    public void testTransportSender() throws AxisFault {
+//        Thread thead = new Thread(new Runnable() {
+//            public void run() {
+//               try {
+//                     ServerSocket serverSocket = new ServerSocket(45678);
+//                        Socket s = serverSocket.accept();
+//                        assertNotNull(createSOAPEnvelope(s.getInputStream()));
+//                } catch (AxisFault e) {
+//                    // TODO Auto-generated catch block
+//                    e.printStackTrace();
+//                } catch (IOException e) {
+//                    // TODO Auto-generated catch block
+//                    e.printStackTrace();
+//                }
+//            }
+//        });
+//        thead.start();
+//
+//        TCPTransportSender ts = new TCPTransportSender();
+//        MessageContext msgctx = new MessageContext(null, null, null, null);
+//        msgctx.setTo(new EndpointReference(AddressingConstants.WSA_TO,"http://127.0.0.1:45679"));
+//        
+//        msgctx.setEnvelope(createSOAPEnvelope(Thread.currentThread().getContextClassLoader().getResourceAsStream("org/apache/axis2/transport/sample.xml")));
+//        ts.invoke(msgctx);
+
+
+    }
+    
+//    public void testTransportReceiver(){
+//        ConfigurationContext configContext = new ConfigurationContext(new AxisConfigurationImpl());
+//        ServiceDescription serviceDesc = new ServiceDescription(new QName("TempService"));
+//        OperationDescription opDesc = new OperationDescription();
+//        TCPServer tcpServer = new TCPServer();
+//    }
+    
+
+    public SOAPEnvelope createSOAPEnvelope(InputStream in) throws AxisFault {
+        try {
+            XMLStreamReader xmlreader =
+                    XMLInputFactory.newInstance().createXMLStreamReader(in);
+            StAXBuilder builder = new StAXSOAPModelBuilder(xmlreader, null);
+            return (SOAPEnvelope) builder.getDocumentElement();
+        } catch (Exception e) {
+            throw new AxisFault(e.getMessage(), e);
+        }
+    }
+
+}

Propchange: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/transport/tcp/TCPTransportTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/util/threadpool/TestThreadPool.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/util/threadpool/TestThreadPool.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/util/threadpool/TestThreadPool.java (original)
+++ webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/util/threadpool/TestThreadPool.java Thu Sep 15 11:52:11 2005
@@ -1,55 +1,55 @@
-package org.apache.axis2.util.threadpool;
-
-import org.apache.axis2.AbstractTestCase;
-import org.apache.axis2.AxisFault;
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * Created by IntelliJ IDEA.
- * User: Jaliya
- * Date: Jun 23, 2005
- * Time: 3:58:45 PM
- * To change this template use File | Settings | File Templates.
- */
-public class TestThreadPool extends AbstractTestCase {
-    /**
-     * @param testName
-     */
-    public TestThreadPool(String testName) {
-        super(testName);
-    }
-
-    class TestWorker implements AxisWorker {
-        private boolean workDone;
-
-        public void doWork() {
-            workDone = true;
-        }
-
-        public boolean isWorkDone() {
-            return workDone;
-        }
-    }
-
-
-    public void testPool() throws AxisFault {
-        ThreadPool tPool = new ThreadPool();
-        List workerList = new ArrayList();
-
-        for (int i = 0; i < 5; i++) {
-            TestWorker worker = new TestWorker();
-            workerList.add(worker);
-            tPool.addWorker(worker);
-        }
-
-        tPool.safeShutDown();
-
-        for (int i = 0; i < 5; i++) {
-            assertEquals(true, ((TestWorker) workerList.get(i)).isWorkDone());
-        }
-
-    }
-
-}
+package org.apache.axis2.util.threadpool;
+
+import org.apache.axis2.AbstractTestCase;
+import org.apache.axis2.AxisFault;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Jaliya
+ * Date: Jun 23, 2005
+ * Time: 3:58:45 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class TestThreadPool extends AbstractTestCase {
+    /**
+     * @param testName
+     */
+    public TestThreadPool(String testName) {
+        super(testName);
+    }
+
+    class TestWorker implements AxisWorker {
+        private boolean workDone;
+
+        public void doWork() {
+            workDone = true;
+        }
+
+        public boolean isWorkDone() {
+            return workDone;
+        }
+    }
+
+
+    public void testPool() throws AxisFault {
+        ThreadPool tPool = new ThreadPool();
+        List workerList = new ArrayList();
+
+        for (int i = 0; i < 5; i++) {
+            TestWorker worker = new TestWorker();
+            workerList.add(worker);
+            tPool.addWorker(worker);
+        }
+
+        tPool.safeShutDown();
+
+        for (int i = 0; i < 5; i++) {
+            assertEquals(true, ((TestWorker) workerList.get(i)).isWorkDone());
+        }
+
+    }
+
+}

Propchange: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/util/threadpool/TestThreadPool.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/databinding/maven.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/databinding/maven.xml?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/databinding/maven.xml (original)
+++ webservices/axis2/trunk/java/modules/databinding/maven.xml Thu Sep 15 11:52:11 2005
@@ -1,10 +1,10 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!-- $Revision: 1.21 $ $Date: 2004-10-27 20:54:09 +0600 (Wed, 27 Oct 2004) $ -->
-
-<project default="jar"
-    xmlns:j="jelly:core"
-    xmlns:maven="jelly:maven"
-    xmlns:deploy="deploy"
-    xmlns:ant="jelly:ant">
-</project>
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- $Revision: 1.21 $ $Date: 2004-10-27 20:54:09 +0600 (Wed, 27 Oct 2004) $ -->
+
+<project default="jar"
+    xmlns:j="jelly:core"
+    xmlns:maven="jelly:maven"
+    xmlns:deploy="deploy"
+    xmlns:ant="jelly:ant">
+</project>

Propchange: webservices/axis2/trunk/java/modules/databinding/maven.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/databinding/project.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/databinding/project.xml?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/databinding/project.xml (original)
+++ webservices/axis2/trunk/java/modules/databinding/project.xml Thu Sep 15 11:52:11 2005
@@ -1,96 +1,96 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/*
- * Copyright 2001-2004 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.
- */
- -->
-<project>
-    <pomVersion>3</pomVersion>
-    <extend>../../etc/project.xml</extend>
-
-    <id>axis2-databinding</id>
-    <name>databinding</name>
-    <description>Simple data binding implementation</description>
-
-    <dependencies>
-        <dependency>
-            <groupId>axis2</groupId>
-            <artifactId>axis2-xml</artifactId>
-            <version>${pom.currentVersion}</version>
-        </dependency>
-        <dependency>
-            <groupId>axis2</groupId>
-            <artifactId>axis2-common</artifactId>
-            <version>${pom.currentVersion}</version>
-        </dependency>
-        <dependency>
-            <groupId>axis2</groupId>
-            <artifactId>axis2-core</artifactId>
-            <version>${pom.currentVersion}</version>
-        </dependency>
-        <dependency>
-            <groupId>axis</groupId>
-            <artifactId>XmlSchema</artifactId>
-			<version>SNAPSHOT</version>
-        </dependency>
-        <dependency>
-            <groupId>geronimo-spec</groupId>
-            <artifactId>geronimo-spec-activation</artifactId>
-            <version>1.0.2-rc4</version>
-            <properties>
-                <module>true</module>
-            </properties>
-        </dependency>
-
-        <dependency>
-            <groupId>commons-logging</groupId>
-            <artifactId>commons-logging</artifactId>
-            <version>1.0.3</version>
-            <properties>
-                <module>true</module>
-            </properties>
-        </dependency>
-        <dependency>
-            <groupId>stax</groupId>
-            <artifactId>stax</artifactId>
-            <version>1.1.2-dev</version>
-            <properties>
-                <module>true</module>
-            </properties>
-            <url>http://dist.codehaus.org/stax/jars/</url>
-        </dependency>
-        <dependency>
-            <groupId>log4j</groupId>
-            <artifactId>log4j</artifactId>
-            <version>1.2.8</version>
-            <properties>
-                <module>true</module>
-            </properties>
-            <url>http://dist.codehaus.org/stax/jars/</url>
-        </dependency>
-
-        <dependency>
-            <groupId>stax</groupId>
-            <artifactId>stax-api</artifactId>
-            <version>1.0</version>
-            <properties>
-                <module>true</module>
-            </properties>
-            <url>http://dist.codehaus.org/stax/jars/</url>
-        </dependency>
-    </dependencies>
-
-    <reports/>
-</project>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+/*
+ * Copyright 2001-2004 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.
+ */
+ -->
+<project>
+    <pomVersion>3</pomVersion>
+    <extend>../../etc/project.xml</extend>
+
+    <id>axis2-databinding</id>
+    <name>databinding</name>
+    <description>Simple data binding implementation</description>
+
+    <dependencies>
+        <dependency>
+            <groupId>axis2</groupId>
+            <artifactId>axis2-xml</artifactId>
+            <version>${pom.currentVersion}</version>
+        </dependency>
+        <dependency>
+            <groupId>axis2</groupId>
+            <artifactId>axis2-common</artifactId>
+            <version>${pom.currentVersion}</version>
+        </dependency>
+        <dependency>
+            <groupId>axis2</groupId>
+            <artifactId>axis2-core</artifactId>
+            <version>${pom.currentVersion}</version>
+        </dependency>
+        <dependency>
+            <groupId>axis</groupId>
+            <artifactId>XmlSchema</artifactId>
+			<version>SNAPSHOT</version>
+        </dependency>
+        <dependency>
+            <groupId>geronimo-spec</groupId>
+            <artifactId>geronimo-spec-activation</artifactId>
+            <version>1.0.2-rc4</version>
+            <properties>
+                <module>true</module>
+            </properties>
+        </dependency>
+
+        <dependency>
+            <groupId>commons-logging</groupId>
+            <artifactId>commons-logging</artifactId>
+            <version>1.0.3</version>
+            <properties>
+                <module>true</module>
+            </properties>
+        </dependency>
+        <dependency>
+            <groupId>stax</groupId>
+            <artifactId>stax</artifactId>
+            <version>1.1.2-dev</version>
+            <properties>
+                <module>true</module>
+            </properties>
+            <url>http://dist.codehaus.org/stax/jars/</url>
+        </dependency>
+        <dependency>
+            <groupId>log4j</groupId>
+            <artifactId>log4j</artifactId>
+            <version>1.2.8</version>
+            <properties>
+                <module>true</module>
+            </properties>
+            <url>http://dist.codehaus.org/stax/jars/</url>
+        </dependency>
+
+        <dependency>
+            <groupId>stax</groupId>
+            <artifactId>stax-api</artifactId>
+            <version>1.0</version>
+            <properties>
+                <module>true</module>
+            </properties>
+            <url>http://dist.codehaus.org/stax/jars/</url>
+        </dependency>
+    </dependencies>
+
+    <reports/>
+</project>

Propchange: webservices/axis2/trunk/java/modules/databinding/project.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/databinding/src/org/apache/axis2/databinding/DeserializationContext.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/databinding/src/org/apache/axis2/databinding/DeserializationContext.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/databinding/src/org/apache/axis2/databinding/DeserializationContext.java (original)
+++ webservices/axis2/trunk/java/modules/databinding/src/org/apache/axis2/databinding/DeserializationContext.java Thu Sep 15 11:52:11 2005
@@ -1,119 +1,119 @@
-/*
-* 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.
-*/
-package org.apache.axis2.databinding;
-
-import org.apache.axis2.om.OMAttribute;
-import org.apache.axis2.om.OMElement;
-import org.apache.axis2.om.OMNode;
-
-import javax.xml.namespace.QName;
-import javax.xml.stream.XMLStreamConstants;
-import javax.xml.stream.XMLStreamReader;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.Map;
-
-/**
- * DeserializationContext
- */
-public class DeserializationContext {
-    public static final String SOAP12_REF_ATTR = "ref";
-    public static final String SOAP11_REF_ATTR = "href";
-
-    private Map idToElementMap = new HashMap();
-
-    Map waitingDescs = new HashMap();
-    String refAttr = SOAP12_REF_ATTR;
-
-    public OMElement getMultiref(String id) {
-        return (OMElement)idToElementMap.get(id);
-    }
-
-    public void addMultiref(String id, OMElement element) {
-        idToElementMap.put(id, element);
-    }
-
-    public void addWaitingDesc(String id, Deserializer dser) {
-        ArrayList descs = (ArrayList)waitingDescs.get(id);
-        if (descs == null) {
-            descs = new ArrayList();
-            waitingDescs.put(id, descs);
-        }
-        descs.add(dser);
-    }
-
-    public void idFound(String id, OMElement element) throws Exception {
-        ArrayList descs = (ArrayList)waitingDescs.get(id);
-        if (descs == null)
-            return; // nobody cares
-        for (Iterator i = descs.iterator(); i.hasNext();) {
-            Deserializer dser = (Deserializer) i.next();
-            dser.deserialize(element.getXMLStreamReader(), this);
-        }
-        waitingDescs.remove(id);
-    }
-
-    public void deserialize(XMLStreamReader reader, Deserializer dser)
-            throws Exception {
-        int event = reader.getEventType();
-        if (event == XMLStreamConstants.START_DOCUMENT) {
-            event = reader.next();
-        }
-        if (event == XMLStreamConstants.START_ELEMENT) {
-            int numAttrs = reader.getAttributeCount();
-            if (numAttrs > 0) {
-                String ref = reader.getAttributeValue("", refAttr);
-                if (ref != null) {
-                    // this is a reference.
-                    if (ref.charAt(0) == '#') {
-                        // It's local
-                        ref = ref.substring(1);
-                    }
-                    OMElement refElement = getMultiref(ref);
-                    if (refElement != null) {
-                        // Deserialize this one
-                        reader = refElement.getXMLStreamReader();
-                    } else {
-                        addWaitingDesc(ref, dser);
-                        return;
-                    }
-                }
-            }
-        }
-
-        dser.deserialize(reader, this);
-    }
-
-    public boolean isIncomplete() {
-        return !waitingDescs.isEmpty();
-    }
-
-    public void processRest(OMElement rpcElement) throws Exception {
-        // The siblings of this should be SOAP 1.1 independent elements
-        OMNode nextElement = rpcElement.getNextSibling();
-        while (nextElement != null) {
-            if (nextElement instanceof OMElement) {
-                OMAttribute idAttr =
-                        ((OMElement)nextElement).getAttribute(new QName("id"));
-                if (idAttr != null) {
-                    idFound(idAttr.getValue(), (OMElement)nextElement);
-                }
-            }
-            nextElement = nextElement.getNextSibling();
-        }
-    }
-}
+/*
+* 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.
+*/
+package org.apache.axis2.databinding;
+
+import org.apache.axis2.om.OMAttribute;
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.om.OMNode;
+
+import javax.xml.namespace.QName;
+import javax.xml.stream.XMLStreamConstants;
+import javax.xml.stream.XMLStreamReader;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.Map;
+
+/**
+ * DeserializationContext
+ */
+public class DeserializationContext {
+    public static final String SOAP12_REF_ATTR = "ref";
+    public static final String SOAP11_REF_ATTR = "href";
+
+    private Map idToElementMap = new HashMap();
+
+    Map waitingDescs = new HashMap();
+    String refAttr = SOAP12_REF_ATTR;
+
+    public OMElement getMultiref(String id) {
+        return (OMElement)idToElementMap.get(id);
+    }
+
+    public void addMultiref(String id, OMElement element) {
+        idToElementMap.put(id, element);
+    }
+
+    public void addWaitingDesc(String id, Deserializer dser) {
+        ArrayList descs = (ArrayList)waitingDescs.get(id);
+        if (descs == null) {
+            descs = new ArrayList();
+            waitingDescs.put(id, descs);
+        }
+        descs.add(dser);
+    }
+
+    public void idFound(String id, OMElement element) throws Exception {
+        ArrayList descs = (ArrayList)waitingDescs.get(id);
+        if (descs == null)
+            return; // nobody cares
+        for (Iterator i = descs.iterator(); i.hasNext();) {
+            Deserializer dser = (Deserializer) i.next();
+            dser.deserialize(element.getXMLStreamReader(), this);
+        }
+        waitingDescs.remove(id);
+    }
+
+    public void deserialize(XMLStreamReader reader, Deserializer dser)
+            throws Exception {
+        int event = reader.getEventType();
+        if (event == XMLStreamConstants.START_DOCUMENT) {
+            event = reader.next();
+        }
+        if (event == XMLStreamConstants.START_ELEMENT) {
+            int numAttrs = reader.getAttributeCount();
+            if (numAttrs > 0) {
+                String ref = reader.getAttributeValue("", refAttr);
+                if (ref != null) {
+                    // this is a reference.
+                    if (ref.charAt(0) == '#') {
+                        // It's local
+                        ref = ref.substring(1);
+                    }
+                    OMElement refElement = getMultiref(ref);
+                    if (refElement != null) {
+                        // Deserialize this one
+                        reader = refElement.getXMLStreamReader();
+                    } else {
+                        addWaitingDesc(ref, dser);
+                        return;
+                    }
+                }
+            }
+        }
+
+        dser.deserialize(reader, this);
+    }
+
+    public boolean isIncomplete() {
+        return !waitingDescs.isEmpty();
+    }
+
+    public void processRest(OMElement rpcElement) throws Exception {
+        // The siblings of this should be SOAP 1.1 independent elements
+        OMNode nextElement = rpcElement.getNextSibling();
+        while (nextElement != null) {
+            if (nextElement instanceof OMElement) {
+                OMAttribute idAttr =
+                        ((OMElement)nextElement).getAttribute(new QName("id"));
+                if (idAttr != null) {
+                    idFound(idAttr.getValue(), (OMElement)nextElement);
+                }
+            }
+            nextElement = nextElement.getNextSibling();
+        }
+    }
+}

Propchange: webservices/axis2/trunk/java/modules/databinding/src/org/apache/axis2/databinding/DeserializationContext.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/databinding/src/org/apache/axis2/databinding/DeserializationTarget.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/databinding/src/org/apache/axis2/databinding/DeserializationTarget.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/databinding/src/org/apache/axis2/databinding/DeserializationTarget.java (original)
+++ webservices/axis2/trunk/java/modules/databinding/src/org/apache/axis2/databinding/DeserializationTarget.java Thu Sep 15 11:52:11 2005
@@ -1,30 +1,30 @@
-/*
-* 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.
-*/
-package org.apache.axis2.databinding;
-
-/**
- * A DeserializationTarget is anything that receives a value from a
- * Deserializer.  Typical DeserializationTargets are things like RPC parameters,
- * fields in a JavaBean, and items in an array.
- * 
- * Since the deserialization system deals with multirefs that potentially
- * point to values further forward in the data stream, we always use instances
- * of this interface to set values.  This allows the deserialization framework
- * to store the targets and fill them in later if necessary.
- */
-public interface DeserializationTarget {
-    void setValue(Object value) throws Exception;
-}
+/*
+* 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.
+*/
+package org.apache.axis2.databinding;
+
+/**
+ * A DeserializationTarget is anything that receives a value from a
+ * Deserializer.  Typical DeserializationTargets are things like RPC parameters,
+ * fields in a JavaBean, and items in an array.
+ * 
+ * Since the deserialization system deals with multirefs that potentially
+ * point to values further forward in the data stream, we always use instances
+ * of this interface to set values.  This allows the deserialization framework
+ * to store the targets and fill them in later if necessary.
+ */
+public interface DeserializationTarget {
+    void setValue(Object value) throws Exception;
+}

Propchange: webservices/axis2/trunk/java/modules/databinding/src/org/apache/axis2/databinding/DeserializationTarget.java
------------------------------------------------------------------------------
    svn:eol-style = native