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 [30/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/context/ContextHierarchyTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/context/ContextHierarchyTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/context/ContextHierarchyTest.java (original)
+++ webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/context/ContextHierarchyTest.java Thu Sep 15 11:52:11 2005
@@ -1,112 +1,112 @@
-/*
- * 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.context;
-
-import junit.framework.TestCase;
-import org.apache.axis2.AxisFault;
-import org.apache.axis2.description.OperationDescription;
-import org.apache.axis2.description.ParameterImpl;
-import org.apache.axis2.description.ServiceDescription;
-import org.apache.axis2.engine.AxisConfiguration;
-import org.apache.axis2.engine.AxisConfigurationImpl;
-
-import javax.xml.namespace.QName;
-
-/**
- * @author srinath
- *         <p/>
- *         To change the template for this generated type comment go to
- *         Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
- */
-public class ContextHierarchyTest extends TestCase {
-    private OperationDescription operationDescription;
-    private ServiceDescription serviceDescription;
-    private AxisConfiguration axisConfiguration;
-
-    public ContextHierarchyTest(String arg0) {
-        super(arg0);
-    }
-
-    protected void setUp() throws Exception {
-        operationDescription = new OperationDescription(new QName("Temp"));
-        serviceDescription = new ServiceDescription(new QName("Temp"));
-        axisConfiguration = new AxisConfigurationImpl();
-        serviceDescription.addOperation(operationDescription);
-        axisConfiguration.addService(serviceDescription);
-    }
-
-    public void testCompleteHiracy() throws AxisFault {
-        ConfigurationContext configurationContext =
-                new ConfigurationContext(axisConfiguration);
-        ServiceGroupContext serviceGroupContext = serviceDescription.getParent().getServiceGroupContext(configurationContext);
-        ServiceContext serviceCOntext =
-                serviceGroupContext.getServiceContext(serviceDescription.getName().getLocalPart());
-        MessageContext msgctx =
-                new MessageContext(configurationContext);
-        OperationContext opContext =
-                operationDescription.findOperationContext(msgctx,
-                        serviceCOntext);
-        msgctx.setServiceContext(serviceCOntext);
-
-        //test the complte Hisracy built
-        assertEquals(msgctx.getParent(), opContext);
-        assertEquals(opContext.getParent(), serviceCOntext);
-        assertEquals(serviceCOntext.getParent(), serviceGroupContext);
-
-        String key1 = "key1";
-        String value1 = "Val1";
-        String value2 = "value2";
-        String key2 = "key2";
-        String value3 = "value";
-
-        configurationContext.setProperty(key1, value1);
-        assertEquals(value1, msgctx.getProperty(key1));
-
-        axisConfiguration.addParameter(new ParameterImpl(key2, value2));
-//        assertEquals(value2, msgctx.getParameter(key2).getValue());
-
-        opContext.setProperty(key1, value3);
-        assertEquals(value3, msgctx.getProperty(key1));
-
-    }
-
-    public void testDisconntectedHiracy() throws AxisFault {
-        ConfigurationContext configurationContext =
-                new ConfigurationContext(axisConfiguration);
-
-        MessageContext msgctx =
-                new MessageContext(configurationContext);
-  
-        //test the complte Hisracy built
-        assertEquals(msgctx.getParent(), null);
-
-        String key1 = "key1";
-        String value1 = "Val1";
-        String value2 = "value2";
-        String key2 = "key2";
-        String value3 = "value";
-
-        configurationContext.setProperty(key1, value1);
-        assertEquals(value1, msgctx.getProperty(key1));
-
-        axisConfiguration.addParameter(new ParameterImpl(key2, value2));
-//        assertEquals(value2, msgctx.getParameter(key2).getValue());
-    }
-
-    protected void tearDown() 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.context;
+
+import junit.framework.TestCase;
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.description.OperationDescription;
+import org.apache.axis2.description.ParameterImpl;
+import org.apache.axis2.description.ServiceDescription;
+import org.apache.axis2.engine.AxisConfiguration;
+import org.apache.axis2.engine.AxisConfigurationImpl;
+
+import javax.xml.namespace.QName;
+
+/**
+ * @author srinath
+ *         <p/>
+ *         To change the template for this generated type comment go to
+ *         Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
+ */
+public class ContextHierarchyTest extends TestCase {
+    private OperationDescription operationDescription;
+    private ServiceDescription serviceDescription;
+    private AxisConfiguration axisConfiguration;
+
+    public ContextHierarchyTest(String arg0) {
+        super(arg0);
+    }
+
+    protected void setUp() throws Exception {
+        operationDescription = new OperationDescription(new QName("Temp"));
+        serviceDescription = new ServiceDescription(new QName("Temp"));
+        axisConfiguration = new AxisConfigurationImpl();
+        serviceDescription.addOperation(operationDescription);
+        axisConfiguration.addService(serviceDescription);
+    }
+
+    public void testCompleteHiracy() throws AxisFault {
+        ConfigurationContext configurationContext =
+                new ConfigurationContext(axisConfiguration);
+        ServiceGroupContext serviceGroupContext = serviceDescription.getParent().getServiceGroupContext(configurationContext);
+        ServiceContext serviceCOntext =
+                serviceGroupContext.getServiceContext(serviceDescription.getName().getLocalPart());
+        MessageContext msgctx =
+                new MessageContext(configurationContext);
+        OperationContext opContext =
+                operationDescription.findOperationContext(msgctx,
+                        serviceCOntext);
+        msgctx.setServiceContext(serviceCOntext);
+
+        //test the complte Hisracy built
+        assertEquals(msgctx.getParent(), opContext);
+        assertEquals(opContext.getParent(), serviceCOntext);
+        assertEquals(serviceCOntext.getParent(), serviceGroupContext);
+
+        String key1 = "key1";
+        String value1 = "Val1";
+        String value2 = "value2";
+        String key2 = "key2";
+        String value3 = "value";
+
+        configurationContext.setProperty(key1, value1);
+        assertEquals(value1, msgctx.getProperty(key1));
+
+        axisConfiguration.addParameter(new ParameterImpl(key2, value2));
+//        assertEquals(value2, msgctx.getParameter(key2).getValue());
+
+        opContext.setProperty(key1, value3);
+        assertEquals(value3, msgctx.getProperty(key1));
+
+    }
+
+    public void testDisconntectedHiracy() throws AxisFault {
+        ConfigurationContext configurationContext =
+                new ConfigurationContext(axisConfiguration);
+
+        MessageContext msgctx =
+                new MessageContext(configurationContext);
+  
+        //test the complte Hisracy built
+        assertEquals(msgctx.getParent(), null);
+
+        String key1 = "key1";
+        String value1 = "Val1";
+        String value2 = "value2";
+        String key2 = "key2";
+        String value3 = "value";
+
+        configurationContext.setProperty(key1, value1);
+        assertEquals(value1, msgctx.getProperty(key1));
+
+        axisConfiguration.addParameter(new ParameterImpl(key2, value2));
+//        assertEquals(value2, msgctx.getParameter(key2).getValue());
+    }
+
+    protected void tearDown() throws Exception {
+    }
+
+}

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

Modified: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/context/ContextSerializationTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/context/ContextSerializationTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/context/ContextSerializationTest.java (original)
+++ webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/context/ContextSerializationTest.java Thu Sep 15 11:52:11 2005
@@ -1,184 +1,184 @@
-/*
- * 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.context;
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.io.ObjectInputStream;
-import java.io.ObjectOutputStream;
-
-import javax.xml.namespace.QName;
-
-import org.apache.axis2.AxisFault;
-import org.apache.axis2.addressing.miheaders.RelatesTo;
-import org.apache.axis2.description.OperationDescription;
-import org.apache.axis2.description.ServiceDescription;
-import org.apache.axis2.description.ServiceGroupDescription;
-import org.apache.axis2.engine.AxisConfiguration;
-import org.apache.axis2.engine.AxisConfigurationImpl;
-import org.apache.axis2.util.Utils;
-import org.apache.axis2.wsdl.builder.WSDLComponentFactory;
-import org.apache.wsdl.WSDLConstants;
-
-import junit.framework.TestCase;
-
-/**
- * This TestCase check weather the context serialization and deserialization happens correctly.
- */
-public class ContextSerializationTest extends TestCase {
-
-	final String SERVICE_NAME = "service1";
-	final String OPERATION_NAME = "operation1";
-	final String SERVICE_GROUP_NAME = "serviceGroupName";
-	final String SERVICE_GROUP_CONTEXT_ID = "serviceGroupCtxId";
-	final String MSG1_ID = "msgid1";
-	final String MSG2_ID = "msgid2";
-	
-	File file = new File ("target/tempfile.tmp");
-	
-	AxisConfiguration axisConfiguration;
-	ServiceGroupDescription serviceGroupDescription;
-	ServiceDescription serviceDescription;
-	OperationDescription operationDescription;
-	
-	QName serviceDescQName = new QName (SERVICE_NAME);
-	QName operationDescName = new QName (OPERATION_NAME);
-	
-	
-	protected void setUp() throws Exception {
-		//Initializing descriptions
-		axisConfiguration = new AxisConfigurationImpl ();
-		serviceGroupDescription = new ServiceGroupDescription (axisConfiguration);
-		serviceGroupDescription.setServiceGroupName(SERVICE_GROUP_NAME);
-		serviceDescription = new ServiceDescription (serviceDescQName);
-		operationDescription = new OperationDescription (operationDescName);
-		
-		//Creating links
-		axisConfiguration.addServiceGroup(serviceGroupDescription);
-		axisConfiguration.addService(serviceDescription);
-		serviceGroupDescription.addService(serviceDescription);
-		serviceDescription.addOperation(operationDescription);
-		
-		if (file.exists()) {
-			file.delete();
-		}
-		
-		//creating a temp file to serialize
-		File dir = new File ("target");
-		if (!dir.isDirectory())
-			throw new AxisFault ("Target diractory is not found");
-		
-		file.createNewFile();
-	}
-	
-	public void testSerialization ()throws AxisFault,IOException, ClassNotFoundException{
-		
-		//Setting contexts.
-		ConfigurationContext configurationContext = new ConfigurationContext(axisConfiguration);
-        ServiceGroupContext serviceGroupContext = serviceDescription.getParent().getServiceGroupContext(configurationContext);
-        serviceGroupContext.setId(SERVICE_GROUP_CONTEXT_ID);
-        configurationContext.registerServiceGroupContext(serviceGroupContext);
-        ServiceContext serviceContext = serviceGroupContext.getServiceContext(serviceDescription.getName().getLocalPart());
-        
-        //setting message contexts
-        MessageContext inMessage = new MessageContext(configurationContext);
-        MessageContext outMessage = new MessageContext(configurationContext);
-        inMessage.setMessageID(MSG1_ID);
-        outMessage.setMessageID(MSG2_ID);
-        outMessage.setRelatesTo(new RelatesTo (MSG1_ID));
-        inMessage.setServiceGroupContextId(SERVICE_GROUP_CONTEXT_ID);
-        outMessage.setServiceGroupContextId(SERVICE_GROUP_CONTEXT_ID);
-        inMessage.setServiceGroupContext(serviceGroupContext);
-        outMessage.setServiceGroupContext(serviceGroupContext);
-        inMessage.setServiceContext(serviceContext);
-        outMessage.setServiceContext(serviceContext);
-        inMessage.setOperationDescription(operationDescription);
-        outMessage.setOperationDescription(operationDescription);
-       
-        OperationContext operationContext = operationDescription.findOperationContext(inMessage,serviceContext);
-        operationContext.addMessageContext(outMessage);
-        outMessage.setOperationContext(operationContext);
-    
-        configurationContext.registerOperationContext(inMessage.getMessageID(),operationContext);
-        configurationContext.registerOperationContext(outMessage.getMessageID(),operationContext);
-      
-        
-        //serializing
-		ObjectOutputStream out = new ObjectOutputStream (
-				new FileOutputStream (file));
-		
-		if (configurationContext==null) 
-			throw new AxisFault ("Configuration Context is null");
-		
-		out.writeObject(configurationContext);
-		out.close();
-		
-		
-		
-		//deserializing
-		ObjectInputStream in = new ObjectInputStream (
-				new FileInputStream (file));
-		
-		Object obj = in.readObject();
-		if (!(obj instanceof ConfigurationContext))
-			throw new AxisFault ("Invalid read");
-		
-		configurationContext = null;
-		configurationContext = (ConfigurationContext) obj;
-		
-		//calling 'init' to set descriptions
-		configurationContext.init(axisConfiguration);
-		
-		
-		//Assertions to check weather context hierarchy is set correctly.
-		assertFalse(configurationContext.getOperationContextMap().isEmpty());
-		
-		ServiceGroupContext serviceGroupcontext1 = configurationContext.fillServiceContextAndServiceGroupContext(inMessage);
-		assertNotNull (serviceGroupcontext1);
-		
-		serviceGroupcontext1 = configurationContext.fillServiceContextAndServiceGroupContext(outMessage);
-		assertNotNull (serviceGroupcontext1);
-		
-		ServiceContext serviceContext1 = serviceGroupContext.getServiceContext(SERVICE_NAME);
-		assertNotNull(serviceContext1);
-		
-		OperationContext operationContext1 = configurationContext.getOperationContext(MSG1_ID);
-		assertNotNull(operationContext1);
-		
-		assertNotNull(operationContext1.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN));
-		assertNotNull(operationContext1.getMessageContext(WSDLConstants.MESSAGE_LABEL_OUT));
-		
-		
-		//Assertions to check weather description hierarchy is set correctly.
-		AxisConfiguration axisConfiguration1 = configurationContext.getAxisConfiguration();
-		assertNotNull(axisConfiguration1);
-		
-		assertNotNull(operationContext1.getAxisOperation());
-		assertNotNull(serviceGroupcontext1.getDescription());
-		assertNotNull(serviceContext1.getServiceConfig());
-			
-	}
-	
-	
-	protected void tearDown() throws Exception {
-		if (file.exists()) 
-			file.delete();
-	}
-	
-	
-}
+/*
+ * 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.context;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.ObjectInputStream;
+import java.io.ObjectOutputStream;
+
+import javax.xml.namespace.QName;
+
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.addressing.miheaders.RelatesTo;
+import org.apache.axis2.description.OperationDescription;
+import org.apache.axis2.description.ServiceDescription;
+import org.apache.axis2.description.ServiceGroupDescription;
+import org.apache.axis2.engine.AxisConfiguration;
+import org.apache.axis2.engine.AxisConfigurationImpl;
+import org.apache.axis2.util.Utils;
+import org.apache.axis2.wsdl.builder.WSDLComponentFactory;
+import org.apache.wsdl.WSDLConstants;
+
+import junit.framework.TestCase;
+
+/**
+ * This TestCase check weather the context serialization and deserialization happens correctly.
+ */
+public class ContextSerializationTest extends TestCase {
+
+	final String SERVICE_NAME = "service1";
+	final String OPERATION_NAME = "operation1";
+	final String SERVICE_GROUP_NAME = "serviceGroupName";
+	final String SERVICE_GROUP_CONTEXT_ID = "serviceGroupCtxId";
+	final String MSG1_ID = "msgid1";
+	final String MSG2_ID = "msgid2";
+	
+	File file = new File ("target/tempfile.tmp");
+	
+	AxisConfiguration axisConfiguration;
+	ServiceGroupDescription serviceGroupDescription;
+	ServiceDescription serviceDescription;
+	OperationDescription operationDescription;
+	
+	QName serviceDescQName = new QName (SERVICE_NAME);
+	QName operationDescName = new QName (OPERATION_NAME);
+	
+	
+	protected void setUp() throws Exception {
+		//Initializing descriptions
+		axisConfiguration = new AxisConfigurationImpl ();
+		serviceGroupDescription = new ServiceGroupDescription (axisConfiguration);
+		serviceGroupDescription.setServiceGroupName(SERVICE_GROUP_NAME);
+		serviceDescription = new ServiceDescription (serviceDescQName);
+		operationDescription = new OperationDescription (operationDescName);
+		
+		//Creating links
+		axisConfiguration.addServiceGroup(serviceGroupDescription);
+		axisConfiguration.addService(serviceDescription);
+		serviceGroupDescription.addService(serviceDescription);
+		serviceDescription.addOperation(operationDescription);
+		
+		if (file.exists()) {
+			file.delete();
+		}
+		
+		//creating a temp file to serialize
+		File dir = new File ("target");
+		if (!dir.isDirectory())
+			throw new AxisFault ("Target diractory is not found");
+		
+		file.createNewFile();
+	}
+	
+	public void testSerialization ()throws AxisFault,IOException, ClassNotFoundException{
+		
+		//Setting contexts.
+		ConfigurationContext configurationContext = new ConfigurationContext(axisConfiguration);
+        ServiceGroupContext serviceGroupContext = serviceDescription.getParent().getServiceGroupContext(configurationContext);
+        serviceGroupContext.setId(SERVICE_GROUP_CONTEXT_ID);
+        configurationContext.registerServiceGroupContext(serviceGroupContext);
+        ServiceContext serviceContext = serviceGroupContext.getServiceContext(serviceDescription.getName().getLocalPart());
+        
+        //setting message contexts
+        MessageContext inMessage = new MessageContext(configurationContext);
+        MessageContext outMessage = new MessageContext(configurationContext);
+        inMessage.setMessageID(MSG1_ID);
+        outMessage.setMessageID(MSG2_ID);
+        outMessage.setRelatesTo(new RelatesTo (MSG1_ID));
+        inMessage.setServiceGroupContextId(SERVICE_GROUP_CONTEXT_ID);
+        outMessage.setServiceGroupContextId(SERVICE_GROUP_CONTEXT_ID);
+        inMessage.setServiceGroupContext(serviceGroupContext);
+        outMessage.setServiceGroupContext(serviceGroupContext);
+        inMessage.setServiceContext(serviceContext);
+        outMessage.setServiceContext(serviceContext);
+        inMessage.setOperationDescription(operationDescription);
+        outMessage.setOperationDescription(operationDescription);
+       
+        OperationContext operationContext = operationDescription.findOperationContext(inMessage,serviceContext);
+        operationContext.addMessageContext(outMessage);
+        outMessage.setOperationContext(operationContext);
+    
+        configurationContext.registerOperationContext(inMessage.getMessageID(),operationContext);
+        configurationContext.registerOperationContext(outMessage.getMessageID(),operationContext);
+      
+        
+        //serializing
+		ObjectOutputStream out = new ObjectOutputStream (
+				new FileOutputStream (file));
+		
+		if (configurationContext==null) 
+			throw new AxisFault ("Configuration Context is null");
+		
+		out.writeObject(configurationContext);
+		out.close();
+		
+		
+		
+		//deserializing
+		ObjectInputStream in = new ObjectInputStream (
+				new FileInputStream (file));
+		
+		Object obj = in.readObject();
+		if (!(obj instanceof ConfigurationContext))
+			throw new AxisFault ("Invalid read");
+		
+		configurationContext = null;
+		configurationContext = (ConfigurationContext) obj;
+		
+		//calling 'init' to set descriptions
+		configurationContext.init(axisConfiguration);
+		
+		
+		//Assertions to check weather context hierarchy is set correctly.
+		assertFalse(configurationContext.getOperationContextMap().isEmpty());
+		
+		ServiceGroupContext serviceGroupcontext1 = configurationContext.fillServiceContextAndServiceGroupContext(inMessage);
+		assertNotNull (serviceGroupcontext1);
+		
+		serviceGroupcontext1 = configurationContext.fillServiceContextAndServiceGroupContext(outMessage);
+		assertNotNull (serviceGroupcontext1);
+		
+		ServiceContext serviceContext1 = serviceGroupContext.getServiceContext(SERVICE_NAME);
+		assertNotNull(serviceContext1);
+		
+		OperationContext operationContext1 = configurationContext.getOperationContext(MSG1_ID);
+		assertNotNull(operationContext1);
+		
+		assertNotNull(operationContext1.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN));
+		assertNotNull(operationContext1.getMessageContext(WSDLConstants.MESSAGE_LABEL_OUT));
+		
+		
+		//Assertions to check weather description hierarchy is set correctly.
+		AxisConfiguration axisConfiguration1 = configurationContext.getAxisConfiguration();
+		assertNotNull(axisConfiguration1);
+		
+		assertNotNull(operationContext1.getAxisOperation());
+		assertNotNull(serviceGroupcontext1.getDescription());
+		assertNotNull(serviceContext1.getServiceConfig());
+			
+	}
+	
+	
+	protected void tearDown() throws Exception {
+		if (file.exists()) 
+			file.delete();
+	}
+	
+	
+}

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

Modified: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/context/OperationContextTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/context/OperationContextTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/context/OperationContextTest.java (original)
+++ webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/context/OperationContextTest.java Thu Sep 15 11:52:11 2005
@@ -1,76 +1,76 @@
-/*
- * 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.
- */
-
-package org.apache.axis2.context;
-
-import org.apache.axis2.AbstractTestCase;
-import org.apache.axis2.AxisFault;
-import org.apache.axis2.engine.AxisConfigurationImpl;
-import org.apache.axis2.addressing.miheaders.RelatesTo;
-import org.apache.axis2.description.OperationDescription;
-import org.apache.axis2.description.TransportInDescription;
-import org.apache.axis2.description.TransportOutDescription;
-import org.apache.axis2.description.ServiceDescription;
-
-import javax.xml.namespace.QName;
-
-/**
- * @author chathura@opensource.lk
- */
-public class OperationContextTest extends AbstractTestCase {
-
-    private ConfigurationContext engineCtx = new ConfigurationContext(new AxisConfigurationImpl());
-
-    public OperationContextTest(String arg0) {
-        super(arg0);
-    }
-
-    public void testMEPfindingOnRelatesTO() throws Exception {
-
-        ServiceDescription serviceConfig = new ServiceDescription(new QName("TempSC"));
-        engineCtx.getAxisConfiguration().addService(serviceConfig);
-       ServiceGroupContext sgc =  serviceConfig.getParent().getServiceGroupContext(engineCtx);
-
-        ServiceContext sessionContext = sgc.getServiceContext("TempSC");
-//        ServiceContext sessionContext = new ServiceContext(serviceConfig,new ServiceGroupContext(new ConfigurationContext(null),serviceConfig));
-        MessageContext messageContext1 = this.getBasicMessageContext();
-
-        messageContext1.setMessageID(
-                new Long(System.currentTimeMillis()).toString());
-        OperationDescription axisOperation = new OperationDescription(
-                new QName("test"));
-        OperationContext operationContext1 = axisOperation.findOperationContext(
-                messageContext1, sessionContext);
-
-        MessageContext messageContext2 = this.getBasicMessageContext();
-        messageContext2.setMessageID(
-                new Long(System.currentTimeMillis()).toString());
-        messageContext2.getMessageInformationHeaders().setRelatesTo(
-                new RelatesTo(messageContext1.getMessageID()));
-        OperationContext operationContext2 = axisOperation.findOperationContext(
-                messageContext2, sessionContext);
-        assertEquals(operationContext1, operationContext2);
-    }
-
-    public MessageContext getBasicMessageContext() throws AxisFault {
-
-        return new MessageContext(engineCtx,
-                new TransportInDescription(new QName("axis")),
-                new TransportOutDescription(new QName("axis")));
-
-    }
-
-}
+/*
+ * 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.
+ */
+
+package org.apache.axis2.context;
+
+import org.apache.axis2.AbstractTestCase;
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.engine.AxisConfigurationImpl;
+import org.apache.axis2.addressing.miheaders.RelatesTo;
+import org.apache.axis2.description.OperationDescription;
+import org.apache.axis2.description.TransportInDescription;
+import org.apache.axis2.description.TransportOutDescription;
+import org.apache.axis2.description.ServiceDescription;
+
+import javax.xml.namespace.QName;
+
+/**
+ * @author chathura@opensource.lk
+ */
+public class OperationContextTest extends AbstractTestCase {
+
+    private ConfigurationContext engineCtx = new ConfigurationContext(new AxisConfigurationImpl());
+
+    public OperationContextTest(String arg0) {
+        super(arg0);
+    }
+
+    public void testMEPfindingOnRelatesTO() throws Exception {
+
+        ServiceDescription serviceConfig = new ServiceDescription(new QName("TempSC"));
+        engineCtx.getAxisConfiguration().addService(serviceConfig);
+       ServiceGroupContext sgc =  serviceConfig.getParent().getServiceGroupContext(engineCtx);
+
+        ServiceContext sessionContext = sgc.getServiceContext("TempSC");
+//        ServiceContext sessionContext = new ServiceContext(serviceConfig,new ServiceGroupContext(new ConfigurationContext(null),serviceConfig));
+        MessageContext messageContext1 = this.getBasicMessageContext();
+
+        messageContext1.setMessageID(
+                new Long(System.currentTimeMillis()).toString());
+        OperationDescription axisOperation = new OperationDescription(
+                new QName("test"));
+        OperationContext operationContext1 = axisOperation.findOperationContext(
+                messageContext1, sessionContext);
+
+        MessageContext messageContext2 = this.getBasicMessageContext();
+        messageContext2.setMessageID(
+                new Long(System.currentTimeMillis()).toString());
+        messageContext2.getMessageInformationHeaders().setRelatesTo(
+                new RelatesTo(messageContext1.getMessageID()));
+        OperationContext operationContext2 = axisOperation.findOperationContext(
+                messageContext2, sessionContext);
+        assertEquals(operationContext1, operationContext2);
+    }
+
+    public MessageContext getBasicMessageContext() throws AxisFault {
+
+        return new MessageContext(engineCtx,
+                new TransportInDescription(new QName("axis")),
+                new TransportOutDescription(new QName("axis")));
+
+    }
+
+}

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

Modified: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/AddingObserverTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/AddingObserverTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/AddingObserverTest.java (original)
+++ webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/AddingObserverTest.java Thu Sep 15 11:52:11 2005
@@ -1,44 +1,44 @@
-package org.apache.axis2.deployment;
-
-import junit.framework.TestCase;
-import org.apache.axis2.context.ConfigurationContextFactory;
-import org.apache.axis2.engine.AxisConfiguration;
-
-/*
- * 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: Jul 19, 2005
- * Time: 10:24:15 AM
- */
-public class AddingObserverTest extends TestCase{
-
-     AxisConfiguration er;
-
-    public void testAddingObservs() throws Exception{
-        try {
-            String filename = "./test-resources/deployment/ConfigWithObservers";
-            ConfigurationContextFactory builder = new ConfigurationContextFactory();
-            er =  builder.buildConfigurationContext(filename).getAxisConfiguration();
-            assertNotNull(er);
-        } catch (DeploymentException e) {
-            throw new DeploymentException(e);
-        }
-    }
-}
+package org.apache.axis2.deployment;
+
+import junit.framework.TestCase;
+import org.apache.axis2.context.ConfigurationContextFactory;
+import org.apache.axis2.engine.AxisConfiguration;
+
+/*
+ * 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: Jul 19, 2005
+ * Time: 10:24:15 AM
+ */
+public class AddingObserverTest extends TestCase{
+
+     AxisConfiguration er;
+
+    public void testAddingObservs() throws Exception{
+        try {
+            String filename = "./test-resources/deployment/ConfigWithObservers";
+            ConfigurationContextFactory builder = new ConfigurationContextFactory();
+            er =  builder.buildConfigurationContext(filename).getAxisConfiguration();
+            assertNotNull(er);
+        } catch (DeploymentException e) {
+            throw new DeploymentException(e);
+        }
+    }
+}

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

Modified: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/AxisObserverImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/AxisObserverImpl.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/AxisObserverImpl.java (original)
+++ webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/AxisObserverImpl.java Thu Sep 15 11:52:11 2005
@@ -1,63 +1,63 @@
-package org.apache.axis2.deployment;
-
-import org.apache.axis2.description.Parameter;
-import org.apache.axis2.description.ParameterIncludeImpl;
-import org.apache.axis2.engine.AxisEvent;
-import org.apache.axis2.engine.AxisObserver;
-import org.apache.axis2.AxisFault;
-
-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: Jul 19, 2005
- * Time: 10:55:51 AM
- */
-public class AxisObserverImpl implements AxisObserver{
-
-    ParameterIncludeImpl paramterimpl;
-
-    //The initilization code will go here
-    public void init() {
-        paramterimpl = new ParameterIncludeImpl();
-    }
-
-    public void update(AxisEvent event) {
-        //To change body of implemented methods use File | Settings | File Templates.
-    }
-
-    public void addParameter(Parameter param) throws AxisFault{
-//        paramterimpl.addParameter(param);
-    }
-
-    public Parameter getParameter(String name) {
-        return null;
-    }
-
-    public ArrayList getParameters() {
-       return null;
-    }
-
-    //to check whether the paramter is locked at any levle
-    public boolean isParamterLocked(String paramterName) {
-        return false;
-    }
-}
+package org.apache.axis2.deployment;
+
+import org.apache.axis2.description.Parameter;
+import org.apache.axis2.description.ParameterIncludeImpl;
+import org.apache.axis2.engine.AxisEvent;
+import org.apache.axis2.engine.AxisObserver;
+import org.apache.axis2.AxisFault;
+
+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: Jul 19, 2005
+ * Time: 10:55:51 AM
+ */
+public class AxisObserverImpl implements AxisObserver{
+
+    ParameterIncludeImpl paramterimpl;
+
+    //The initilization code will go here
+    public void init() {
+        paramterimpl = new ParameterIncludeImpl();
+    }
+
+    public void update(AxisEvent event) {
+        //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public void addParameter(Parameter param) throws AxisFault{
+//        paramterimpl.addParameter(param);
+    }
+
+    public Parameter getParameter(String name) {
+        return null;
+    }
+
+    public ArrayList getParameters() {
+       return null;
+    }
+
+    //to check whether the paramter is locked at any levle
+    public boolean isParamterLocked(String paramterName) {
+        return false;
+    }
+}

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

Modified: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/BadModuleTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/BadModuleTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/BadModuleTest.java (original)
+++ webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/BadModuleTest.java Thu Sep 15 11:52:11 2005
@@ -1,55 +1,55 @@
-/*
- * 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.deployment;
-
-import org.apache.axis2.AbstractTestCase;
-import org.apache.axis2.engine.AxisConfigurationImpl;
-import org.apache.axis2.engine.AxisConfiguration;
-
-import java.io.FileInputStream;
-import java.io.FileNotFoundException;
-import java.io.InputStream;
-
-public class BadModuleTest extends AbstractTestCase {
-    /**
-     * Constructor.
-     */
-    public BadModuleTest(String testName) {
-        super(testName);
-    }
-
-    public void testBadModuleXML() {
-        try {
-            InputStream in = new FileInputStream(
-                    getTestResourceFile("deployment/Badmodule.xml"));
-//            DeploymentParser parser = new DeploymentParser(in, null);
-            AxisConfiguration glabl = new AxisConfigurationImpl();
-            AxisConfigBuilder builder =new AxisConfigBuilder(in,null,glabl);
-            builder.populateConfig();
-//            parser.processGlobalConfig(glabl, DeploymentConstants.AXIS2CONFIG);
-            fail(
-                    "this must failed gracefully with DeploymentException or FileNotFoundException");
-        } catch (FileNotFoundException e) {
-            return;
-        } catch (DeploymentException e) {
-            return;
-        } catch (Exception e) {
-            return;
-        }
-
-    }
-}
+/*
+ * 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.deployment;
+
+import org.apache.axis2.AbstractTestCase;
+import org.apache.axis2.engine.AxisConfigurationImpl;
+import org.apache.axis2.engine.AxisConfiguration;
+
+import java.io.FileInputStream;
+import java.io.FileNotFoundException;
+import java.io.InputStream;
+
+public class BadModuleTest extends AbstractTestCase {
+    /**
+     * Constructor.
+     */
+    public BadModuleTest(String testName) {
+        super(testName);
+    }
+
+    public void testBadModuleXML() {
+        try {
+            InputStream in = new FileInputStream(
+                    getTestResourceFile("deployment/Badmodule.xml"));
+//            DeploymentParser parser = new DeploymentParser(in, null);
+            AxisConfiguration glabl = new AxisConfigurationImpl();
+            AxisConfigBuilder builder =new AxisConfigBuilder(in,null,glabl);
+            builder.populateConfig();
+//            parser.processGlobalConfig(glabl, DeploymentConstants.AXIS2CONFIG);
+            fail(
+                    "this must failed gracefully with DeploymentException or FileNotFoundException");
+        } catch (FileNotFoundException e) {
+            return;
+        } catch (DeploymentException e) {
+            return;
+        } catch (Exception e) {
+            return;
+        }
+
+    }
+}

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

Modified: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/BadServerXMLTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/BadServerXMLTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/BadServerXMLTest.java (original)
+++ webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/BadServerXMLTest.java Thu Sep 15 11:52:11 2005
@@ -1,54 +1,54 @@
-/*
- * 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.deployment;
-
-import org.apache.axis2.AbstractTestCase;
-import org.apache.axis2.engine.AxisConfigurationImpl;
-
-import java.io.FileInputStream;
-import java.io.FileNotFoundException;
-import java.io.InputStream;
-
-public class BadServerXMLTest extends AbstractTestCase {
-    /**
-     * Constructor.
-     */
-    public BadServerXMLTest(String testName) {
-        super(testName);
-    }
-
-    public void testBadServerXML() {
-        try {
-            InputStream in = new FileInputStream(
-                    getTestResourceFile("deployment/BadServer.xml"));
-//            DeploymentParser parser = new DeploymentParser(in, null);
-            AxisConfigurationImpl glabl = new AxisConfigurationImpl();
-            AxisConfigBuilder builder =new AxisConfigBuilder(in,null,glabl);
-            builder.populateConfig();
-//            parser.processGlobalConfig(glabl, DeploymentConstants.AXIS2CONFIG);
-            fail(
-                    "this must failed gracefully with DeploymentException or FileNotFoundException");
-        } catch (FileNotFoundException e) {
-            return;
-        } catch (DeploymentException e) {
-            return;
-        } catch (Exception e) {
-            return;
-        }
-
-    }
-}
+/*
+ * 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.deployment;
+
+import org.apache.axis2.AbstractTestCase;
+import org.apache.axis2.engine.AxisConfigurationImpl;
+
+import java.io.FileInputStream;
+import java.io.FileNotFoundException;
+import java.io.InputStream;
+
+public class BadServerXMLTest extends AbstractTestCase {
+    /**
+     * Constructor.
+     */
+    public BadServerXMLTest(String testName) {
+        super(testName);
+    }
+
+    public void testBadServerXML() {
+        try {
+            InputStream in = new FileInputStream(
+                    getTestResourceFile("deployment/BadServer.xml"));
+//            DeploymentParser parser = new DeploymentParser(in, null);
+            AxisConfigurationImpl glabl = new AxisConfigurationImpl();
+            AxisConfigBuilder builder =new AxisConfigBuilder(in,null,glabl);
+            builder.populateConfig();
+//            parser.processGlobalConfig(glabl, DeploymentConstants.AXIS2CONFIG);
+            fail(
+                    "this must failed gracefully with DeploymentException or FileNotFoundException");
+        } catch (FileNotFoundException e) {
+            return;
+        } catch (DeploymentException e) {
+            return;
+        } catch (Exception e) {
+            return;
+        }
+
+    }
+}

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

Modified: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/BadServiceXMLTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/BadServiceXMLTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/BadServiceXMLTest.java (original)
+++ webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/BadServiceXMLTest.java Thu Sep 15 11:52:11 2005
@@ -1,55 +1,55 @@
-/*
- * 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.deployment;
-
-import org.apache.axis2.AbstractTestCase;
-import org.apache.axis2.description.ServiceDescription;
-
-import java.io.FileInputStream;
-import java.io.FileNotFoundException;
-import java.io.InputStream;
-
-public class BadServiceXMLTest extends AbstractTestCase {
-    /**
-     * Constructor.
-     */
-    public BadServiceXMLTest(String testName) {
-        super(testName);
-    }
-
-    public void testBadServiceXML() {
-        try {
-            InputStream in = new FileInputStream(
-                    getTestResourceFile("deployment/BadService.xml"));
-
-//            DeploymentParser parser = new DeploymentParser(in, null);
-            ServiceDescription axisService = new ServiceDescription();
-            ServiceBuilder builder = new ServiceBuilder(in,null,axisService);
-            builder.populateService(builder.buildOM());
-           // parser.parseServiceXML(axisService);
-            fail(
-                    "this must failed gracefully with DeploymentException or FileNotFoundException");
-        } catch (FileNotFoundException e) {
-            return;
-        } catch (DeploymentException e) {
-            return;
-        } catch (Exception e) {
-            return;
-        }
-
-    }
-}
+/*
+ * 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.deployment;
+
+import org.apache.axis2.AbstractTestCase;
+import org.apache.axis2.description.ServiceDescription;
+
+import java.io.FileInputStream;
+import java.io.FileNotFoundException;
+import java.io.InputStream;
+
+public class BadServiceXMLTest extends AbstractTestCase {
+    /**
+     * Constructor.
+     */
+    public BadServiceXMLTest(String testName) {
+        super(testName);
+    }
+
+    public void testBadServiceXML() {
+        try {
+            InputStream in = new FileInputStream(
+                    getTestResourceFile("deployment/BadService.xml"));
+
+//            DeploymentParser parser = new DeploymentParser(in, null);
+            ServiceDescription axisService = new ServiceDescription();
+            ServiceBuilder builder = new ServiceBuilder(in,null,axisService);
+            builder.populateService(builder.buildOM());
+           // parser.parseServiceXML(axisService);
+            fail(
+                    "this must failed gracefully with DeploymentException or FileNotFoundException");
+        } catch (FileNotFoundException e) {
+            return;
+        } catch (DeploymentException e) {
+            return;
+        } catch (Exception e) {
+            return;
+        }
+
+    }
+}

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

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

Modified: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/BuildWithAddressingTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/BuildWithAddressingTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/BuildWithAddressingTest.java (original)
+++ webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/BuildWithAddressingTest.java Thu Sep 15 11:52:11 2005
@@ -1,58 +1,58 @@
-package org.apache.axis2.deployment;
-
-import org.apache.axis2.AbstractTestCase;
-
-
-/*
-* 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() {
-        //todo this test has to be complete   Deepal once addressing module finalize
-        /* String filename = "./target/test-resources/deployment";
-         ConfigurationContextFactory builder = new ConfigurationContextFactory();
-         ConfigurationContext er = builder.buildConfigurationContext(filename);
-         ArrayList phases = er.getPhases(AxisConfiguration.INFLOW);
-         ModuleDescription modeule = er.getEngineConfig().getModule(new QName("addressing"));
-         assertNotNull(modeule);
-         if (phases.size() <= 0) {
-             fail("this must failed Since there are addressing handlers ");
-         }
-         for (int i = 0; i < phases.size(); i++) {
-             Phase metadata = (Phase) phases.get(i);
-             if ("pre-dispatch".equals(metadata.getPhaseName())) {
-                 if (metadata.getHandlerCount() <= 0) {
-                     fail("this must failed Since there are addressing handlers ");
-                 } else {
-                     System.out.println("Found pre-dispatch handlers");
-                 }
-             }
-         }*/
-
-    }
-}
+package org.apache.axis2.deployment;
+
+import org.apache.axis2.AbstractTestCase;
+
+
+/*
+* 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() {
+        //todo this test has to be complete   Deepal once addressing module finalize
+        /* String filename = "./target/test-resources/deployment";
+         ConfigurationContextFactory builder = new ConfigurationContextFactory();
+         ConfigurationContext er = builder.buildConfigurationContext(filename);
+         ArrayList phases = er.getPhases(AxisConfiguration.INFLOW);
+         ModuleDescription modeule = er.getEngineConfig().getModule(new QName("addressing"));
+         assertNotNull(modeule);
+         if (phases.size() <= 0) {
+             fail("this must failed Since there are addressing handlers ");
+         }
+         for (int i = 0; i < phases.size(); i++) {
+             Phase metadata = (Phase) phases.get(i);
+             if ("pre-dispatch".equals(metadata.getPhaseName())) {
+                 if (metadata.getHandlerCount() <= 0) {
+                     fail("this must failed Since there are addressing handlers ");
+                 } else {
+                     System.out.println("Found pre-dispatch handlers");
+                 }
+             }
+         }*/
+
+    }
+}

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

Modified: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/DeploymentTotalTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/DeploymentTotalTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/DeploymentTotalTest.java (original)
+++ webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/DeploymentTotalTest.java Thu Sep 15 11:52:11 2005
@@ -1,41 +1,41 @@
-/*
-* 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.deployment;
-
-import junit.framework.TestCase;
-import org.apache.axis2.AxisFault;
-import org.apache.axis2.context.ConfigurationContextFactory;
-import org.apache.axis2.engine.AxisConfiguration;
-import org.apache.axis2.phaseresolver.PhaseException;
-
-import javax.xml.stream.XMLStreamException;
-
-public class DeploymentTotalTest extends TestCase {
-    AxisConfiguration er;
-
-    public void testparseService1() throws PhaseException,
-            DeploymentException,
-            AxisFault,
-            XMLStreamException {
-        String filename = "./target/test-resources/deployment";
-        ConfigurationContextFactory builder = new ConfigurationContextFactory();
-        er =
-                builder.buildConfigurationContext(filename)
-                .getAxisConfiguration();
-    }
-
-}
+/*
+* 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.deployment;
+
+import junit.framework.TestCase;
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.context.ConfigurationContextFactory;
+import org.apache.axis2.engine.AxisConfiguration;
+import org.apache.axis2.phaseresolver.PhaseException;
+
+import javax.xml.stream.XMLStreamException;
+
+public class DeploymentTotalTest extends TestCase {
+    AxisConfiguration er;
+
+    public void testparseService1() throws PhaseException,
+            DeploymentException,
+            AxisFault,
+            XMLStreamException {
+        String filename = "./target/test-resources/deployment";
+        ConfigurationContextFactory builder = new ConfigurationContextFactory();
+        er =
+                builder.buildConfigurationContext(filename)
+                .getAxisConfiguration();
+    }
+
+}

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

Modified: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/InvalidServiceTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/InvalidServiceTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/InvalidServiceTest.java (original)
+++ webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/InvalidServiceTest.java Thu Sep 15 11:52:11 2005
@@ -1,53 +1,53 @@
-package org.apache.axis2.deployment;
-
-import junit.framework.TestCase;
-import org.apache.axis2.context.ConfigurationContextFactory;
-import org.apache.axis2.engine.AxisConfiguration;
-
-/*
- * 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 16, 2005
- * Time: 12:13:53 PM
- */
-public class InvalidServiceTest extends TestCase {
-    /**
-     * This is used to test whether service specific module  try to add handlers to system pre defined phases
-     */
-
-    AxisConfiguration er;
-
-    public void testInvalidService() {
-        try {
-            String filename = "./target/test-resources/InvalidDeployment";
-            ConfigurationContextFactory builder = new ConfigurationContextFactory();
-            er =
-                    builder.buildConfigurationContext(filename)
-                    .getAxisConfiguration();
-            String msg = (String) er.getFaultyServices().get("invalidService");
-            if (msg == null || msg.equals("")) {
-                fail("this must failed gracefully with AxisFault ervice specifi module can not" +
-                        "refer system pre defined phases");
-            }
-        } catch (DeploymentException e) {
-            return;
-        }
-    }
-}
+package org.apache.axis2.deployment;
+
+import junit.framework.TestCase;
+import org.apache.axis2.context.ConfigurationContextFactory;
+import org.apache.axis2.engine.AxisConfiguration;
+
+/*
+ * 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 16, 2005
+ * Time: 12:13:53 PM
+ */
+public class InvalidServiceTest extends TestCase {
+    /**
+     * This is used to test whether service specific module  try to add handlers to system pre defined phases
+     */
+
+    AxisConfiguration er;
+
+    public void testInvalidService() {
+        try {
+            String filename = "./target/test-resources/InvalidDeployment";
+            ConfigurationContextFactory builder = new ConfigurationContextFactory();
+            er =
+                    builder.buildConfigurationContext(filename)
+                    .getAxisConfiguration();
+            String msg = (String) er.getFaultyServices().get("invalidService");
+            if (msg == null || msg.equals("")) {
+                fail("this must failed gracefully with AxisFault ervice specifi module can not" +
+                        "refer system pre defined phases");
+            }
+        } catch (DeploymentException e) {
+            return;
+        }
+    }
+}

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

Modified: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/ModifiedConfigFileTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/ModifiedConfigFileTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/ModifiedConfigFileTest.java (original)
+++ webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/ModifiedConfigFileTest.java Thu Sep 15 11:52:11 2005
@@ -1,47 +1,47 @@
-package org.apache.axis2.deployment;
-
-import junit.framework.TestCase;
-import org.apache.axis2.context.ConfigurationContextFactory;
-import org.apache.axis2.engine.AxisConfiguration;
-
-/*
- * 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 14, 2005
- * Time: 3:13:52 PM
- */
-public class ModifiedConfigFileTest extends TestCase {
-
-    AxisConfiguration er;
-
-    public void testPhaseOrderchage() {
-        try {
-            String filename = "./test-resources/deployment/BadConfigOrderChange";
-            ConfigurationContextFactory builder = new ConfigurationContextFactory();
-            er = builder.buildConfigurationContext(filename).getAxisConfiguration();
-            fail(
-                    "this must failed gracefully with DeploymentException \"Invalid System predefined " +
-                    "inphases , phase order dose not\" +\n support\\n recheck axis2.xml\"");
-        } catch (DeploymentException e) {
-
-        }
-    }
-
-}
+package org.apache.axis2.deployment;
+
+import junit.framework.TestCase;
+import org.apache.axis2.context.ConfigurationContextFactory;
+import org.apache.axis2.engine.AxisConfiguration;
+
+/*
+ * 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 14, 2005
+ * Time: 3:13:52 PM
+ */
+public class ModifiedConfigFileTest extends TestCase {
+
+    AxisConfiguration er;
+
+    public void testPhaseOrderchage() {
+        try {
+            String filename = "./test-resources/deployment/BadConfigOrderChange";
+            ConfigurationContextFactory builder = new ConfigurationContextFactory();
+            er = builder.buildConfigurationContext(filename).getAxisConfiguration();
+            fail(
+                    "this must failed gracefully with DeploymentException \"Invalid System predefined " +
+                    "inphases , phase order dose not\" +\n support\\n recheck axis2.xml\"");
+        } catch (DeploymentException e) {
+
+        }
+    }
+
+}

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

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

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

Modified: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/SpeakingHandler.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/SpeakingHandler.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/SpeakingHandler.java (original)
+++ webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/SpeakingHandler.java Thu Sep 15 11:52:11 2005
@@ -1,53 +1,53 @@
-/*
- * 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.deployment;
-
-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;
-
-public class SpeakingHandler extends AbstractHandler implements Handler {
-    private Log log = LogFactory.getLog(getClass());
-    private String message;
-    private QName name;
-
-    public SpeakingHandler() {
-        this.message = "Hi I amtesting ";
-    }
-
-    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;
-    }
-
-}
+/*
+ * 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.deployment;
+
+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;
+
+public class SpeakingHandler extends AbstractHandler implements Handler {
+    private Log log = LogFactory.getLog(getClass());
+    private String message;
+    private QName name;
+
+    public SpeakingHandler() {
+        this.message = "Hi I amtesting ";
+    }
+
+    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;
+    }
+
+}

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

Modified: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/SystemPhasesremovedTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/SystemPhasesremovedTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/SystemPhasesremovedTest.java (original)
+++ webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/deployment/SystemPhasesremovedTest.java Thu Sep 15 11:52:11 2005
@@ -1,52 +1,52 @@
-package org.apache.axis2.deployment;
-
-import junit.framework.TestCase;
-import org.apache.axis2.context.ConfigurationContextFactory;
-import org.apache.axis2.engine.AxisConfiguration;
-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
- * Date: May 14, 2005
- * Time: 3:30:53 PM
- */
-public class SystemPhasesremovedTest extends TestCase {
-
-    AxisConfiguration er;
-    private Log log = LogFactory.getLog(getClass());
-
-    public void testPhaseOrderchage() {
-        try {
-            String filename = "./test-resources/deployment/SystemPhaseRemove";
-            ConfigurationContextFactory builder = new ConfigurationContextFactory();
-            er =
-                    builder.buildConfigurationContext(filename)
-                    .getAxisConfiguration();
-            fail(
-                    "this must failed gracefully with DeploymentException \"Invalid System predefined " +
-                    "inphases , phase order dose not\" +\n support\\n recheck axis2.xml\"");
-        } catch (DeploymentException e) {
-            log.info(e.getCause());
-        }
-    }
-
-}
+package org.apache.axis2.deployment;
+
+import junit.framework.TestCase;
+import org.apache.axis2.context.ConfigurationContextFactory;
+import org.apache.axis2.engine.AxisConfiguration;
+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
+ * Date: May 14, 2005
+ * Time: 3:30:53 PM
+ */
+public class SystemPhasesremovedTest extends TestCase {
+
+    AxisConfiguration er;
+    private Log log = LogFactory.getLog(getClass());
+
+    public void testPhaseOrderchage() {
+        try {
+            String filename = "./test-resources/deployment/SystemPhaseRemove";
+            ConfigurationContextFactory builder = new ConfigurationContextFactory();
+            er =
+                    builder.buildConfigurationContext(filename)
+                    .getAxisConfiguration();
+            fail(
+                    "this must failed gracefully with DeploymentException \"Invalid System predefined " +
+                    "inphases , phase order dose not\" +\n support\\n recheck axis2.xml\"");
+        } catch (DeploymentException e) {
+            log.info(e.getCause());
+        }
+    }
+
+}

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