axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chinth...@apache.org
Subject svn commit: r153902 [7/8] - in webservices/axis/trunk/java/dev/scratch/prototype2/src: java/org/apache/axis/addressing/ java/org/apache/axis/addressing/miheaders/ java/org/apache/axis/addressing/om/ java/org/apache/axis/clientapi/ java/org/apache/axis/context/ java/org/apache/axis/deployment/ java/org/apache/axis/deployment/listener/ java/org/apache/axis/deployment/repository/utill/ java/org/apache/axis/description/ java/org/apache/axis/engine/ java/org/apache/axis/handlers/ java/org/apache/axis/om/ java/org/apache/axis/om/impl/llom/ java/org/apache/axis/om/impl/llom/builder/ java/org/apache/axis/om/impl/llom/factory/ java/org/apache/axis/om/impl/llom/serialize/ java/org/apache/axis/om/impl/llom/traverse/ java/org/apache/axis/phaseresolver/ java/org/apache/axis/providers/ java/org/apache/axis/receivers/ java/org/apache/axis/transport/ java/org/apache/axis/transport/http/ java/org/apache/axis/wsdl/wsdltowom/ java/org/apache/wsdl/ java/org/apache/wsdl/impl/ java/org/apache/wsdl/util/ test/org/apache/axis/ test/org/apache/axis/addressing/ test/org/apache/axis/addressing/miheaders/ test/org/apache/axis/clientapi/ test/org/apache/axis/deployment/ test/org/apache/axis/description/ test/org/apache/axis/encoding/ test/org/apache/axis/engine/ test/org/apache/axis/integration/ test/org/apache/axis/misc/ test/org/apache/axis/om/ test/org/apache/axis/om/builder/ test/org/apache/axis/om/builder/dummy/ test/org/apache/axis/om/factory/ test/org/apache/axis/om/impl/builder/ test/org/apache/axis/om/impl/seriliazer/ test/org/apache/axis/om/impl/streamwrapper/ test/org/apache/axis/om/impl/traverse/ test/org/apache/axis/testUtils/ test/org/apache/axis/transport/ test/org/apache/wsdl/
Date Tue, 15 Feb 2005 06:23:27 GMT
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/EchoRawXMLTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/EchoRawXMLTest.java?view=diff&r1=153901&r2=153902
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/EchoRawXMLTest.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/EchoRawXMLTest.java Mon Feb 14 22:22:34 2005
@@ -16,9 +16,6 @@
 package org.apache.axis.engine;
 
 //todo
-import javax.xml.namespace.QName;
-import javax.xml.stream.XMLOutputFactory;
-import javax.xml.stream.XMLStreamException;
 
 import org.apache.axis.AbstractTestCase;
 import org.apache.axis.addressing.AddressingConstants;
@@ -30,31 +27,30 @@
 import org.apache.axis.description.AxisService;
 import org.apache.axis.description.SimpleAxisOperationImpl;
 import org.apache.axis.integration.UtilServer;
-import org.apache.axis.om.OMElement;
-import org.apache.axis.om.OMFactory;
-import org.apache.axis.om.OMNamespace;
-import org.apache.axis.om.OMNode;
-import org.apache.axis.om.SOAPEnvelope;
+import org.apache.axis.om.*;
 import org.apache.axis.providers.RawXMLProvider;
 import org.apache.axis.transport.http.SimpleHTTPServer;
-
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
-public class EchoRawXMLTest extends AbstractTestCase{
+import javax.xml.namespace.QName;
+import javax.xml.stream.XMLOutputFactory;
+import javax.xml.stream.XMLStreamException;
+
+public class EchoRawXMLTest extends AbstractTestCase {
     private Log log = LogFactory.getLog(getClass());
-    private QName serviceName = new QName("","EchoXMLService");
-    private QName operationName = new QName("http://localhost/my","echoOMElement");
-    private QName transportName = new QName("http://localhost/my","NullTransport");
+    private QName serviceName = new QName("", "EchoXMLService");
+    private QName operationName = new QName("http://localhost/my", "echoOMElement");
+    private QName transportName = new QName("http://localhost/my", "NullTransport");
 
     private EngineRegistry engineRegistry;
     private MessageContext mc;
     private Thread thisThread;
     private SimpleHTTPServer sas;
 
-    private boolean finish=false;
+    private boolean finish = false;
 
-    public EchoRawXMLTest(){
+    public EchoRawXMLTest() {
         super(EchoRawXMLTest.class.getName());
     }
 
@@ -75,73 +71,73 @@
     }
 
 
-     protected void tearDown() throws Exception {
-         UtilServer.unDeployService(serviceName);
-         UtilServer.stop();
-     }
-
-
-    public void testEchoXMLSync() throws Exception{
-            OMFactory fac = OMFactory.newInstance();
-
-            SOAPEnvelope reqEnv=fac.getDefaultEnvelope();
-            OMNamespace omNs = fac.createOMNamespace("http://localhost/my","my");
-            OMElement method =  fac.createOMElement("echoOMElement",omNs) ;
-            OMElement value =  fac.createOMElement("myValue",omNs) ;
-            value.setValue("Isaac Assimov, the foundation Sega");
-            method.addChild(value);
-            reqEnv.getBody().addChild(method);
-
-            org.apache.axis.clientapi.Call call = new org.apache.axis.clientapi.Call();
-            EndpointReference targetEPR = new EndpointReference(
-                    AddressingConstants.WSA_TO,"http://127.0.0.1:"+EngineUtils.TESTING_PORT+"/axis/services/EchoXMLService");
-            call.setTo(targetEPR);
-            SOAPEnvelope resEnv = call.sendReceive(reqEnv);
-
-            resEnv.serialize(XMLOutputFactory.newInstance().createXMLStreamWriter(System.out),true);
-            OMNode omNode = resEnv.getBody().getFirstChild();
-            assertNotNull(omNode);
+    protected void tearDown() throws Exception {
+        UtilServer.unDeployService(serviceName);
+        UtilServer.stop();
     }
-    public void testEchoXMLASync() throws Exception{
-            OMFactory fac = OMFactory.newInstance();
 
-            SOAPEnvelope reqEnv=fac.getDefaultEnvelope();
-            OMNamespace omNs = fac.createOMNamespace("http://localhost/my","my");
-            OMElement method =  fac.createOMElement("echoOMElement",omNs) ;
-            OMElement value =  fac.createOMElement("myValue",omNs) ;
-            value.setValue("Isaac Assimov, the foundation Sega");
-            method.addChild(value);
-            reqEnv.getBody().addChild(method);
-
-            org.apache.axis.clientapi.Call call = new org.apache.axis.clientapi.Call();
-            EndpointReference targetEPR = new EndpointReference(
-                    AddressingConstants.WSA_TO,"http://127.0.0.1:"+EngineUtils.TESTING_PORT+"/axis/services/EchoXMLService");
-            call.setTo(targetEPR);
-            call.setListenerTransport("http",true);
-
-            Callback callback = new Callback(){
-                public void onComplete(AsyncResult result){
-                    try {
-                        result.getResponseEnvelope().serialize(XMLOutputFactory.newInstance()
-                                .createXMLStreamWriter(System.out),true);
-                    } catch (XMLStreamException e) {
-                        reportError(e);
-                    }finally{
-                        finish=true;
-                    }
-                }
-                public void reportError(Exception e){
-                    e.printStackTrace();
-                    finish=true;
+
+    public void testEchoXMLSync() throws Exception {
+        OMFactory fac = OMFactory.newInstance();
+
+        SOAPEnvelope reqEnv = fac.getDefaultEnvelope();
+        OMNamespace omNs = fac.createOMNamespace("http://localhost/my", "my");
+        OMElement method = fac.createOMElement("echoOMElement", omNs);
+        OMElement value = fac.createOMElement("myValue", omNs);
+        value.setValue("Isaac Assimov, the foundation Sega");
+        method.addChild(value);
+        reqEnv.getBody().addChild(method);
+
+        org.apache.axis.clientapi.Call call = new org.apache.axis.clientapi.Call();
+        EndpointReference targetEPR = new EndpointReference(AddressingConstants.WSA_TO, "http://127.0.0.1:" + EngineUtils.TESTING_PORT + "/axis/services/EchoXMLService");
+        call.setTo(targetEPR);
+        SOAPEnvelope resEnv = call.sendReceive(reqEnv);
+
+        resEnv.serialize(XMLOutputFactory.newInstance().createXMLStreamWriter(System.out), true);
+        OMNode omNode = resEnv.getBody().getFirstChild();
+        assertNotNull(omNode);
+    }
+
+    public void testEchoXMLASync() throws Exception {
+        OMFactory fac = OMFactory.newInstance();
+
+        SOAPEnvelope reqEnv = fac.getDefaultEnvelope();
+        OMNamespace omNs = fac.createOMNamespace("http://localhost/my", "my");
+        OMElement method = fac.createOMElement("echoOMElement", omNs);
+        OMElement value = fac.createOMElement("myValue", omNs);
+        value.setValue("Isaac Assimov, the foundation Sega");
+        method.addChild(value);
+        reqEnv.getBody().addChild(method);
+
+        org.apache.axis.clientapi.Call call = new org.apache.axis.clientapi.Call();
+        EndpointReference targetEPR = new EndpointReference(AddressingConstants.WSA_TO, "http://127.0.0.1:" + EngineUtils.TESTING_PORT + "/axis/services/EchoXMLService");
+        call.setTo(targetEPR);
+        call.setListenerTransport("http", true);
+
+        Callback callback = new Callback() {
+            public void onComplete(AsyncResult result) {
+                try {
+                    result.getResponseEnvelope().serialize(XMLOutputFactory.newInstance()
+                            .createXMLStreamWriter(System.out), true);
+                } catch (XMLStreamException e) {
+                    reportError(e);
+                } finally {
+                    finish = true;
                 }
-            };
+            }
 
-            call.sendReceiveAsync(reqEnv,callback);
-            while(!finish){
-                Thread.sleep(1000);
+            public void reportError(Exception e) {
+                e.printStackTrace();
+                finish = true;
             }
-            
-            log.info("send the reqest");
+        };
+
+        call.sendReceiveAsync(reqEnv, callback);
+        while (!finish) {
+            Thread.sleep(1000);
+        }
+
+        log.info("send the reqest");
     }
 
 }

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/EchoTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/EchoTest.java?view=diff&r1=153901&r2=153902
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/EchoTest.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/EchoTest.java Mon Feb 14 22:22:34 2005
@@ -16,7 +16,6 @@
 package org.apache.axis.engine;
 
 //todo
-import javax.xml.namespace.QName;
 
 import org.apache.axis.AbstractTestCase;
 import org.apache.axis.context.MessageContext;
@@ -26,23 +25,24 @@
 import org.apache.axis.description.SimpleAxisOperationImpl;
 import org.apache.axis.testUtils.SimpleJavaProvider;
 import org.apache.axis.transport.http.SimpleHTTPServer;
-
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
-public class EchoTest extends AbstractTestCase{
+import javax.xml.namespace.QName;
+
+public class EchoTest extends AbstractTestCase {
     private Log log = LogFactory.getLog(getClass());
-    private QName serviceName = new QName("","EchoXMLService");
-    private QName operationName1 = new QName("http://localhost/my","echoInt");
-    private QName operationName2 = new QName("http://localhost/my","echoString");
-    private QName transportName = new QName("http://localhost/my","NullTransport");
+    private QName serviceName = new QName("", "EchoXMLService");
+    private QName operationName1 = new QName("http://localhost/my", "echoInt");
+    private QName operationName2 = new QName("http://localhost/my", "echoString");
+    private QName transportName = new QName("http://localhost/my", "NullTransport");
 
     private EngineRegistry engineRegistry;
     private MessageContext mc;
     private Thread thisThread;
     private SimpleHTTPServer sas;
-    
-    public EchoTest(){
+
+    public EchoTest() {
         super(EchoTest.class.getName());
     }
 
@@ -53,7 +53,7 @@
     protected void setUp() throws Exception {
         AxisGlobal global = new AxisGlobal();
         engineRegistry = new org.apache.axis.engine.EngineRegistryImpl(global);
-        
+
         AxisService service = new AxisService(serviceName);
         service.setClassLoader(Thread.currentThread().getContextClassLoader());
         service.setServiceClass(Echo.class);
@@ -61,23 +61,23 @@
 
         AxisOperation operation1 = new SimpleAxisOperationImpl(operationName1);
         service.addOperation(operation1);
-        
+
         AxisOperation operation2 = new SimpleAxisOperationImpl(operationName2);
         service.addOperation(operation2);
 
         EngineUtils.createExecutionChains(service);
         engineRegistry.addService(service);
-        
+
         sas = EngineUtils.startServer(engineRegistry);
     }
 
     protected void tearDown() throws Exception {
-            EngineUtils.stopServer();    
-            Thread.sleep(1000);
+        EngineUtils.stopServer();
+        Thread.sleep(1000);
     }
 
 
-    public void testInt() throws Exception{
+    public void testInt() throws Exception {
 //        try{
 //            OMFactory fac = OMFactory.newInstance();
 //
@@ -97,7 +97,8 @@
 //            throw e;
 //        }    
     }
-    public void testString() throws Exception{
+
+    public void testString() throws Exception {
 //        try{
 //            OMFactory fac = OMFactory.newInstance();
 //

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/EngineTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/EngineTest.java?view=diff&r1=153901&r2=153902
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/EngineTest.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/EngineTest.java Mon Feb 14 22:22:34 2005
@@ -16,28 +16,21 @@
 
 package org.apache.axis.engine;
 
-import java.io.OutputStream;
-
-import javax.xml.namespace.QName;
-
 import junit.framework.TestCase;
-
-import org.apache.axis.addressing.AddressingConstants;
-import org.apache.axis.addressing.EndpointReference;
 import org.apache.axis.context.MessageContext;
-import org.apache.axis.description.AxisService;
-import org.apache.axis.transport.TransportSenderLocator;
 
-public class EngineTest extends TestCase{
-    private QName serviceName = new QName("","EchoService");
-    private QName operationName = new QName("","echoVoid");
-    private QName transportName = new QName("","NullTransport");
+import javax.xml.namespace.QName;
+
+public class EngineTest extends TestCase {
+    private QName serviceName = new QName("", "EchoService");
+    private QName operationName = new QName("", "echoVoid");
+    private QName transportName = new QName("", "NullTransport");
     private EngineRegistry engineRegistry;
     private MessageContext mc;
-    
+
     public EngineTest() {
     }
-    
+
     public EngineTest(String arg0) {
         super(arg0);
     }
@@ -55,7 +48,7 @@
 //        out.flush();
 //    }
 
-    public void testSend()throws Exception{
+    public void testSend() throws Exception {
 //        AxisEngine engine = new AxisEngine(engineRegistry);
 //        engine.send(mc);
     }

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/EngineUtils.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/EngineUtils.java?view=diff&r1=153901&r2=153902
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/EngineUtils.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/EngineUtils.java Mon Feb 14 22:22:34 2005
@@ -15,43 +15,35 @@
  */
 package org.apache.axis.engine;
 
+import org.apache.axis.description.*;
+import org.apache.axis.testUtils.SimpleJavaProvider;
+import org.apache.axis.transport.http.SimpleHTTPServer;
+
+import javax.xml.namespace.QName;
 import java.io.IOException;
 import java.net.ServerSocket;
 import java.util.ArrayList;
 
-import javax.xml.namespace.QName;
-
-import org.apache.axis.description.AxisGlobal;
-import org.apache.axis.description.AxisModule;
-import org.apache.axis.description.AxisOperation;
-import org.apache.axis.description.AxisService;
-import org.apache.axis.description.Flow;
-import org.apache.axis.description.HandlerMetaData;
-import org.apache.axis.description.MockFlow;
-import org.apache.axis.description.SimpleAxisOperationImpl;
-import org.apache.axis.testUtils.SimpleJavaProvider;
-import org.apache.axis.transport.http.SimpleHTTPServer;
-
 
 public class EngineUtils {
     public static final int TESTING_PORT = 5555;
     public static final String FAILURE_MESSAGE = "Intentional Faliure";
-    private static int index = 0; 
+    private static int index = 0;
     private static SimpleHTTPServer sas;
-    
-    public static void addHandlers(Flow flow,Phase phase) throws AxisFault{
-        if(flow != null){
+
+    public static void addHandlers(Flow flow, Phase phase) throws AxisFault {
+        if (flow != null) {
             int handlerCount = flow.getHandlerCount();
-            for(int i = 0;i<handlerCount;i++){
+            for (int i = 0; i < handlerCount; i++) {
                 phase.addHandler(flow.getHandler(i).getHandler());
             }
         }
     }
-    
-    public static synchronized SimpleHTTPServer startServer(EngineRegistry engineRegistry) throws IOException{
+
+    public static synchronized SimpleHTTPServer startServer(EngineRegistry engineRegistry) throws IOException {
         ServerSocket serverSoc = null;
-        if(sas == null){
-        }else{
+        if (sas == null) {
+        } else {
             sas.stop();
             try {
                 Thread.sleep(1000);
@@ -69,66 +61,66 @@
         thisThread.start();
         return sas;
     }
-    
-    public static synchronized void stopServer() throws IOException{
-        if(sas != null){
+
+    public static synchronized void stopServer() throws IOException {
+        if (sas != null) {
             sas.stop();
             sas = null;
         }
     }
-    
-    
-    public static void addHandler(Flow flow, Handler handler){
+
+
+    public static void addHandler(Flow flow, Handler handler) {
         HandlerMetaData hmd = new HandlerMetaData();
-        hmd.setName(new QName("",String.valueOf(index)));
+        hmd.setName(new QName("", String.valueOf(index)));
         index++;
         hmd.setHandler(handler);
         flow.addHandler(hmd);
     }
-    
-    public static void createExecutionChains(AxisService service) throws AxisFault{
-        addPhasesToServiceFromFlow(service,Constants.PHASE_SERVICE,service.getInFlow(),EngineRegistry.INFLOW);
-        addPhasesToServiceFromFlow(service,Constants.PHASE_SERVICE,service.getOutFlow(),EngineRegistry.OUTFLOW);
-        addPhasesToServiceFromFlow(service,Constants.PHASE_SERVICE,service.getFaultFlow(),EngineRegistry.FAULTFLOW);
+
+    public static void createExecutionChains(AxisService service) throws AxisFault {
+        addPhasesToServiceFromFlow(service, Constants.PHASE_SERVICE, service.getInFlow(), EngineRegistry.INFLOW);
+        addPhasesToServiceFromFlow(service, Constants.PHASE_SERVICE, service.getOutFlow(), EngineRegistry.OUTFLOW);
+        addPhasesToServiceFromFlow(service, Constants.PHASE_SERVICE, service.getFaultFlow(), EngineRegistry.FAULTFLOW);
     }
-    public static EngineRegistry createMockRegistry(QName serviceName,QName operationName,QName transportName) throws AxisFault{
+
+    public static EngineRegistry createMockRegistry(QName serviceName, QName operationName, QName transportName) throws AxisFault {
         EngineRegistry engineRegistry = null;
         AxisGlobal global = new AxisGlobal();
         engineRegistry = new org.apache.axis.engine.EngineRegistryImpl(global);
-        
 
-        
+
         AxisService service = new AxisService(serviceName);
-        service.setInFlow(new MockFlow("service inflow",4));
-        service.setOutFlow(new MockFlow("service outflow",5));
-        service.setFaultFlow(new MockFlow("service faultflow",1));
+        service.setInFlow(new MockFlow("service inflow", 4));
+        service.setOutFlow(new MockFlow("service outflow", 5));
+        service.setFaultFlow(new MockFlow("service faultflow", 1));
         service.setClassLoader(Thread.currentThread().getContextClassLoader());
         service.setServiceClass(Echo.class);
-        
+
         service.setProvider(new SimpleJavaProvider());
-        
-        AxisModule m1 = new AxisModule(new QName("","A Mdoule 1"));
-        m1.setInFlow(new MockFlow("service module inflow",4));
-        m1.setFaultFlow(new MockFlow("service module faultflow",1));
+
+        AxisModule m1 = new AxisModule(new QName("", "A Mdoule 1"));
+        m1.setInFlow(new MockFlow("service module inflow", 4));
+        m1.setFaultFlow(new MockFlow("service module faultflow", 1));
         service.addModule(m1.getName());
-        
+
         AxisOperation operation = new SimpleAxisOperationImpl(operationName);
         service.addOperation(operation);
-        
+
         engineRegistry.addService(service);
         //create Execution Chains
-        addPhasesToServiceFromFlow(service,Constants.PHASE_SERVICE,service.getInFlow(),EngineRegistry.INFLOW);
-        addPhasesToServiceFromFlow(service,Constants.PHASE_SERVICE,service.getOutFlow(),EngineRegistry.OUTFLOW);
-        addPhasesToServiceFromFlow(service,Constants.PHASE_SERVICE,service.getFaultFlow(),EngineRegistry.FAULTFLOW);
+        addPhasesToServiceFromFlow(service, Constants.PHASE_SERVICE, service.getInFlow(), EngineRegistry.INFLOW);
+        addPhasesToServiceFromFlow(service, Constants.PHASE_SERVICE, service.getOutFlow(), EngineRegistry.OUTFLOW);
+        addPhasesToServiceFromFlow(service, Constants.PHASE_SERVICE, service.getFaultFlow(), EngineRegistry.FAULTFLOW);
         return engineRegistry;
     }
-    
-    public static void addPhasesToServiceFromFlow(AxisService service, String phaseName, Flow flow,int flowtype) throws AxisFault{
+
+    public static void addPhasesToServiceFromFlow(AxisService service, String phaseName, Flow flow, int flowtype) throws AxisFault {
         ArrayList faultchain = new ArrayList();
         Phase p = new Phase(Constants.PHASE_SERVICE);
         faultchain.add(p);
-        EngineUtils.addHandlers(flow,p);
-        service.setPhases(faultchain,flowtype);
+        EngineUtils.addHandlers(flow, p);
+        service.setPhases(faultchain, flowtype);
     }
 
 }

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/HandlerFaliureTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/HandlerFaliureTest.java?view=diff&r1=153901&r2=153902
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/HandlerFaliureTest.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/HandlerFaliureTest.java Mon Feb 14 22:22:34 2005
@@ -17,44 +17,32 @@
 
 //todo
 
-import javax.xml.namespace.QName;
-
 import org.apache.axis.AbstractTestCase;
 import org.apache.axis.addressing.AddressingConstants;
 import org.apache.axis.addressing.EndpointReference;
 import org.apache.axis.context.MessageContext;
-import org.apache.axis.description.AxisOperation;
-import org.apache.axis.description.AxisService;
-import org.apache.axis.description.Flow;
-import org.apache.axis.description.FlowImpl;
-import org.apache.axis.description.Parameter;
-import org.apache.axis.description.ParameterImpl;
-import org.apache.axis.description.SimpleAxisOperationImpl;
-import org.apache.axis.description.SpeakingHandler;
+import org.apache.axis.description.*;
 import org.apache.axis.handlers.AbstractHandler;
 import org.apache.axis.integration.UtilServer;
-import org.apache.axis.om.OMElement;
-import org.apache.axis.om.OMFactory;
-import org.apache.axis.om.OMNamespace;
-import org.apache.axis.om.SOAPBody;
-import org.apache.axis.om.SOAPEnvelope;
+import org.apache.axis.om.*;
 import org.apache.axis.providers.RawXMLProvider;
 import org.apache.axis.transport.http.SimpleHTTPServer;
-
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
+import javax.xml.namespace.QName;
+
 
 public class HandlerFaliureTest extends AbstractTestCase {
     private Log log = LogFactory.getLog(getClass());
     private QName serviceName = new QName("", "EchoXMLService");
     private QName operationName = new QName("http://localhost/my", "echoOMElement");
-    
+
 
     private MessageContext mc;
     private Thread thisThread;
     private SimpleHTTPServer sas;
-    
+
     public HandlerFaliureTest() {
         super(HandlerFaliureTest.class.getName());
     }
@@ -91,9 +79,9 @@
 
         UtilServer.start();
         UtilServer.deployService(service);
-        try{
-	        callTheService();
-        }finally{
+        try {
+            callTheService();
+        } finally {
             UtilServer.unDeployService(serviceName);
             UtilServer.stop();
         }
@@ -131,12 +119,12 @@
         EngineUtils.createExecutionChains(service);
         UtilServer.start();
         UtilServer.deployService(service);
-		try{
-			callTheService();
-		}finally{
+        try {
+            callTheService();
+        } finally {
             UtilServer.unDeployService(serviceName);
             UtilServer.stop();
-		}
+        }
     }
 
 
@@ -159,7 +147,7 @@
 
             org.apache.axis.clientapi.Call call = new org.apache.axis.clientapi.Call();
             //EndpointReference targetEPR = new EndpointReference(AddressingConstants.WSA_TO, "http://127.0.0.1:" + EngineUtils.TESTING_PORT + "/axis/services/EchoXMLService");
-			EndpointReference targetEPR = new EndpointReference(AddressingConstants.WSA_TO, "http://127.0.0.1:" + (EngineUtils.TESTING_PORT )+ "/axis/services/EchoXMLService");
+            EndpointReference targetEPR = new EndpointReference(AddressingConstants.WSA_TO, "http://127.0.0.1:" + (EngineUtils.TESTING_PORT) + "/axis/services/EchoXMLService");
             call.setTo(targetEPR);
             SOAPEnvelope resEnv = call.sendReceive(reqEnv);
 
@@ -174,7 +162,7 @@
             assertTrue((e.getMessage().indexOf(EngineUtils.FAILURE_MESSAGE)) > 0);
             return;
         }
-       
+
     }
 
     private Handler culprit = new AbstractHandler() {

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/MessageContextTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/MessageContextTest.java?view=diff&r1=153901&r2=153902
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/MessageContextTest.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/MessageContextTest.java Mon Feb 14 22:22:34 2005
@@ -20,20 +20,21 @@
 import org.apache.axis.description.AxisGlobal;
 import org.apache.axis.om.OMFactory;
 
-public class MessageContextTest extends AbstractTestCase{
+public class MessageContextTest extends AbstractTestCase {
     public MessageContextTest(String testName) {
         super(testName);
     }
-    public void testMesssageContext() throws AxisFault{
+
+    public void testMesssageContext() throws AxisFault {
         EngineRegistry er = new EngineRegistryImpl(new AxisGlobal());
-        MessageContext msgctx = new MessageContext(er,null);
-        
+        MessageContext msgctx = new MessageContext(er, null);
+
         msgctx.setEnvelope(OMFactory.newInstance().getDefaultEnvelope());
         assertNotNull(msgctx.getEnvelope());
-        
+
         msgctx.setFaultTo(null);
         assertNull(msgctx.getFaultTo());
-        
+
         msgctx.setFrom(null);
         assertNull(msgctx.getFrom());
 
@@ -42,7 +43,7 @@
 
         msgctx.setReplyTo(null);
         assertNull(msgctx.getReplyTo());
-        
+
         msgctx.setMessageID(null);
         assertNull(msgctx.getMessageID());
     }

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/MessageWithServerTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/MessageWithServerTest.java?view=diff&r1=153901&r2=153902
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/MessageWithServerTest.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/MessageWithServerTest.java Mon Feb 14 22:22:34 2005
@@ -16,35 +16,25 @@
 package org.apache.axis.engine;
 
 //todo
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.io.OutputStream;
-import java.io.Reader;
-import java.net.Socket;
-
-import javax.xml.namespace.QName;
 
 import org.apache.axis.AbstractTestCase;
 import org.apache.axis.context.MessageContext;
-import org.apache.axis.description.AxisModule;
-import org.apache.axis.description.AxisOperation;
-import org.apache.axis.description.AxisService;
-import org.apache.axis.description.MockFlow;
-import org.apache.axis.description.SimpleAxisOperationImpl;
+import org.apache.axis.description.*;
 import org.apache.axis.integration.UtilServer;
 import org.apache.axis.testUtils.SimpleJavaProvider;
 import org.apache.axis.transport.http.SimpleHTTPServer;
-
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
-public class MessageWithServerTest extends AbstractTestCase{
+import javax.xml.namespace.QName;
+import java.io.*;
+import java.net.Socket;
+
+public class MessageWithServerTest extends AbstractTestCase {
     private Log log = LogFactory.getLog(getClass());
-    private QName serviceName = new QName("","EchoService");
-    private QName operationName = new QName("http://ws.apache.org/axis2","echoVoid");
-    private QName transportName = new QName("","NullTransport");
+    private QName serviceName = new QName("", "EchoService");
+    private QName operationName = new QName("http://ws.apache.org/axis2", "echoVoid");
+    private QName transportName = new QName("", "NullTransport");
 
     private EngineRegistry engineRegistry;
     private MessageContext mc;
@@ -58,19 +48,19 @@
     protected void setUp() throws Exception {
         UtilServer.start();
         AxisService service = new AxisService(serviceName);
-        service.setInFlow(new MockFlow("service inflow",4));
-        service.setOutFlow(new MockFlow("service outflow",5));
-        service.setFaultFlow(new MockFlow("service faultflow",1));
+        service.setInFlow(new MockFlow("service inflow", 4));
+        service.setOutFlow(new MockFlow("service outflow", 5));
+        service.setFaultFlow(new MockFlow("service faultflow", 1));
         service.setClassLoader(Thread.currentThread().getContextClassLoader());
         service.setServiceClass(Echo.class);
-        
+
         service.setProvider(new SimpleJavaProvider());
-        
-        AxisModule m1 = new AxisModule(new QName("","A Mdoule 1"));
-        m1.setInFlow(new MockFlow("service module inflow",4));
-        m1.setFaultFlow(new MockFlow("service module faultflow",1));
+
+        AxisModule m1 = new AxisModule(new QName("", "A Mdoule 1"));
+        m1.setInFlow(new MockFlow("service module inflow", 4));
+        m1.setFaultFlow(new MockFlow("service module faultflow", 1));
         service.addModule(m1.getName());
-        
+
         AxisOperation operation = new SimpleAxisOperationImpl(operationName);
         service.addOperation(operation);
 
@@ -83,30 +73,30 @@
     }
 
 
-    public void testEchoStringServer() throws Exception{
-    	File file = getTestResourceFile("soap/soapmessage.txt");
-    	FileInputStream in = new FileInputStream(file);
-    	
-    	Socket socket = new Socket("127.0.0.1",EngineUtils.TESTING_PORT);
-    	OutputStream out = socket.getOutputStream();
-    	byte[]  buf = new byte[1024];
-    	int index = -1;
-    	while((index = in.read(buf)) > 0){
-    		out.write(buf,0,index);
-    	}
-
-    	
-    	InputStream respose = socket.getInputStream();
-    	Reader rReader = new InputStreamReader(respose);
-    	char[] charBuf = new char[1024];
-    	while((index = rReader.read(charBuf)) > 0){
-    	        log.info(new String(charBuf));
-    	}
-    	
-    	in.close();
-    	out.close();
+    public void testEchoStringServer() throws Exception {
+        File file = getTestResourceFile("soap/soapmessage.txt");
+        FileInputStream in = new FileInputStream(file);
+
+        Socket socket = new Socket("127.0.0.1", EngineUtils.TESTING_PORT);
+        OutputStream out = socket.getOutputStream();
+        byte[] buf = new byte[1024];
+        int index = -1;
+        while ((index = in.read(buf)) > 0) {
+            out.write(buf, 0, index);
+        }
+
+
+        InputStream respose = socket.getInputStream();
+        Reader rReader = new InputStreamReader(respose);
+        char[] charBuf = new char[1024];
+        while ((index = rReader.read(charBuf)) > 0) {
+            log.info(new String(charBuf));
+        }
+
+        in.close();
+        out.close();
 
         rReader.close();
-    	socket.close();
+        socket.close();
     }
 }

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/SimpleAxisServerTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/SimpleAxisServerTest.java?view=diff&r1=153901&r2=153902
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/SimpleAxisServerTest.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/SimpleAxisServerTest.java Mon Feb 14 22:22:34 2005
@@ -16,7 +16,6 @@
 package org.apache.axis.engine;
 
 //todo
-import javax.xml.namespace.QName;
 
 import org.apache.axis.AbstractTestCase;
 import org.apache.axis.description.AxisOperation;
@@ -24,15 +23,17 @@
 import org.apache.axis.description.SimpleAxisOperationImpl;
 import org.apache.axis.providers.RawXMLProvider;
 
-public class SimpleAxisServerTest extends AbstractTestCase{
-    private QName serviceName = new QName("","EchoXMLService");
-    private QName operationName = new QName("http://localhost/my","echoOMElement");
-    private QName transportName = new QName("http://localhost/my","NullTransport");
+import javax.xml.namespace.QName;
+
+public class SimpleAxisServerTest extends AbstractTestCase {
+    private QName serviceName = new QName("", "EchoXMLService");
+    private QName operationName = new QName("http://localhost/my", "echoOMElement");
+    private QName transportName = new QName("http://localhost/my", "NullTransport");
 
     private EngineRegistry engineRegistry;
     private AxisEngine engine;
 
-    public SimpleAxisServerTest(){
+    public SimpleAxisServerTest() {
         super(SimpleAxisServerTest.class.getName());
     }
 
@@ -41,18 +42,18 @@
     }
 
     protected void setUp() throws Exception {
-        engineRegistry = EngineUtils.createMockRegistry(serviceName,operationName,transportName);
+        engineRegistry = EngineUtils.createMockRegistry(serviceName, operationName, transportName);
         AxisService service = new AxisService(serviceName);
         service.setClassLoader(Thread.currentThread().getContextClassLoader());
         service.setServiceClass(Echo.class);
         service.setProvider(new RawXMLProvider());
         AxisOperation operation = new SimpleAxisOperationImpl(operationName);
-        
+
         service.addOperation(operation);
-        
+
         EngineUtils.createExecutionChains(service);
         engineRegistry.addService(service);
-        
+
         engine = new AxisEngine(engineRegistry);
     }
 
@@ -60,14 +61,14 @@
     }
 
 
-    public void testEchoXMLSync() throws Exception{
+    public void testEchoXMLSync() throws Exception {
         EngineUtils.startServer(engineRegistry);
-        EngineUtils.stopServer();  
+        EngineUtils.stopServer();
         Thread.sleep(1000);
         EngineUtils.startServer(engineRegistry);
-        EngineUtils.stopServer();  
+        EngineUtils.stopServer();
         Thread.sleep(1000);
         EngineUtils.startServer(engineRegistry);
-        EngineUtils.stopServer();  
+        EngineUtils.stopServer();
     }
 }

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/integration/EchoTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/integration/EchoTest.java?view=diff&r1=153901&r2=153902
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/integration/EchoTest.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/integration/EchoTest.java Mon Feb 14 22:22:34 2005
@@ -16,6 +16,16 @@
 
 package org.apache.axis.integration;
 
+import junit.framework.TestCase;
+import org.apache.axis.addressing.AddressingConstants;
+import org.apache.axis.addressing.EndpointReference;
+import org.apache.axis.clientapi.Call;
+import org.apache.axis.engine.EngineUtils;
+import org.apache.axis.om.*;
+import org.apache.axis.testUtils.*;
+
+import javax.xml.stream.XMLStreamConstants;
+import javax.xml.stream.XMLStreamReader;
 import java.io.File;
 import java.lang.reflect.Constructor;
 import java.lang.reflect.Method;
@@ -23,59 +33,34 @@
 import java.net.URL;
 import java.net.URLClassLoader;
 
-import javax.xml.stream.XMLStreamConstants;
-import javax.xml.stream.XMLStreamReader;
-
-import junit.framework.TestCase;
-
-import org.apache.axis.addressing.AddressingConstants;
-import org.apache.axis.addressing.EndpointReference;
-import org.apache.axis.clientapi.Call;
-import org.apache.axis.engine.EngineUtils;
-import org.apache.axis.om.OMConstants;
-import org.apache.axis.om.OMElement;
-import org.apache.axis.om.OMFactory;
-import org.apache.axis.om.OMNamespace;
-import org.apache.axis.om.SOAPBody;
-import org.apache.axis.om.SOAPEnvelope;
-import org.apache.axis.testUtils.ArrayTypeEncoder;
-import org.apache.axis.testUtils.Encoder;
-import org.apache.axis.testUtils.ObjectToOMBuilder;
-import org.apache.axis.testUtils.SimpleTypeEncoder;
-import org.apache.axis.testUtils.SimpleTypeEncodingUtils;
-
 
 public class EchoTest extends TestCase {
     private final OMFactory fac = OMFactory.newInstance();
     private final OMNamespace ns =
-        fac.createOMNamespace("http://apache.ws.apache.org/samples", "samples");
+            fac.createOMNamespace("http://apache.ws.apache.org/samples", "samples");
     private final OMNamespace arrayNs =
-        fac.createOMNamespace(
-            OMConstants.ARRAY_ITEM_NSURI,
-            OMConstants.ARRAY_ITEM_NS_PREFIX);
+            fac.createOMNamespace(OMConstants.ARRAY_ITEM_NSURI,
+                    OMConstants.ARRAY_ITEM_NS_PREFIX);
     private final OMNamespace targetNs =
-        fac.createOMNamespace("http://axis.apache.org", "s");
+            fac.createOMNamespace("http://axis.apache.org", "s");
     private final URLClassLoader cl;
 
     public EchoTest() throws MalformedURLException {
-        cl =  new URLClassLoader(
-                new URL[] {
-                    new File("target/test-resources/samples/services/echo.jar")
-                        .toURL()},EchoTest.class.getClassLoader());
+        cl = new URLClassLoader(new URL[]{
+            new File("target/test-resources/samples/services/echo.jar")
+                .toURL()}, EchoTest.class.getClassLoader());
     }
 
     public EchoTest(String arg0) throws MalformedURLException {
         super(arg0);
-        cl =  new URLClassLoader(
-                new URL[] {
-                    new File("target/test-resources/samples/services/echo.jar")
-                        .toURL()},EchoTest.class.getClassLoader());
+        cl = new URLClassLoader(new URL[]{
+            new File("target/test-resources/samples/services/echo.jar")
+                .toURL()}, EchoTest.class.getClassLoader());
 
     }
 
-    private SOAPEnvelope createRawMessage(
-        String method,
-        OMElement parameters) {
+    private SOAPEnvelope createRawMessage(String method,
+                                          OMElement parameters) {
         SOAPEnvelope envelope = fac.getDefaultEnvelope();
 
         OMElement responseMethodName = fac.createOMElement(method, ns);
@@ -86,19 +71,18 @@
     }
 
     private XMLStreamReader invokeTheService(SOAPEnvelope envelope)
-        throws Exception {
+            throws Exception {
         EndpointReference targetEPR =
-            new EndpointReference(
-                AddressingConstants.WSA_TO,
-                "http://127.0.0.1:"
-                    + (EngineUtils.TESTING_PORT)
-                    + "/axis/services/echo");
+                new EndpointReference(AddressingConstants.WSA_TO,
+                        "http://127.0.0.1:"
+                + (EngineUtils.TESTING_PORT)
+                + "/axis/services/echo");
         Call call = new Call();
         call.setTo(targetEPR);
         SOAPEnvelope responseEnv = call.sendReceive(envelope);
-        
+
         SOAPBody body = responseEnv.getBody();
-        if(body.hasFault()){
+        if (body.hasFault()) {
             throw body.getFault().getException();
         }
         XMLStreamReader xpp = body.getPullParser(true);
@@ -122,9 +106,7 @@
         String message = "Hello testing";
 
         OMElement returnelement = fac.createOMElement("param1", ns);
-        returnelement.setBuilder(
-            new ObjectToOMBuilder(
-                returnelement,
+        returnelement.setBuilder(new ObjectToOMBuilder(returnelement,
                 new SimpleTypeEncoder(message)));
         returnelement.declareNamespace(arrayNs);
         SOAPEnvelope envelope = createRawMessage("echoString", returnelement);
@@ -135,18 +117,17 @@
 
     public void testEchoStringArray() throws Exception {
         String[] messages =
-            new String[] {
-                "Hello testing1",
-                "Hello testing2",
-                "Hello testing3",
-                "Hello testing4",
-                "Hello testing5" };
+                new String[]{
+                    "Hello testing1",
+                    "Hello testing2",
+                    "Hello testing3",
+                    "Hello testing4",
+                    "Hello testing5"};
         OMElement returnelement = fac.createOMElement("param1", ns);
 
         ObjectToOMBuilder builder =
-            new ObjectToOMBuilder(
-                returnelement,
-                new ArrayTypeEncoder(messages, new SimpleTypeEncoder(null)));
+                new ObjectToOMBuilder(returnelement,
+                        new ArrayTypeEncoder(messages, new SimpleTypeEncoder(null)));
 
         returnelement.setBuilder(builder);
         returnelement.declareNamespace(arrayNs);
@@ -161,179 +142,172 @@
 
     public void testEchoStruct() throws Exception {
         String[] messages =
-            new String[] {
-                "Hello testing1",
-                "Hello testing2",
-                "Hello testing3",
-                "Hello testing4",
-                "Hello testing5" };
+                new String[]{
+                    "Hello testing1",
+                    "Hello testing2",
+                    "Hello testing3",
+                    "Hello testing4",
+                    "Hello testing5"};
         Class clasname =
-            Class.forName("EchoStruct", true, cl);
+                Class.forName("EchoStruct", true, cl);
         Object obj = clasname.newInstance();
 
         Method method1 =
-            clasname.getMethod("setValue1", new Class[] { String.class });
-        method1.invoke(obj, new Object[] { "Ruy Lopez" });
+                clasname.getMethod("setValue1", new Class[]{String.class});
+        method1.invoke(obj, new Object[]{"Ruy Lopez"});
         Method method2 =
-            clasname.getMethod("setValue2", new Class[] { String.class });
-        method2.invoke(obj, new Object[] { "Kings Gambit" });
+                clasname.getMethod("setValue2", new Class[]{String.class});
+        method2.invoke(obj, new Object[]{"Kings Gambit"});
         Method method3 =
-            clasname.getMethod("setValue3", new Class[] { int.class });
-        method3.invoke(obj, new Object[] { new Integer(345)});
+                clasname.getMethod("setValue3", new Class[]{int.class});
+        method3.invoke(obj, new Object[]{new Integer(345)});
         Method method4 =
-            clasname.getMethod("setValue4", new Class[] { String.class });
-        method4.invoke(obj, new Object[] { "Kings Indian Defence" });
+                clasname.getMethod("setValue4", new Class[]{String.class});
+        method4.invoke(obj, new Object[]{"Kings Indian Defence"});
         Method method5 =
-            clasname.getMethod("setValue5", new Class[] { String.class });
-        method5.invoke(obj, new Object[] { "Musio Gambit" });
+                clasname.getMethod("setValue5", new Class[]{String.class});
+        method5.invoke(obj, new Object[]{"Musio Gambit"});
         Method method6 =
-            clasname.getMethod("setValue6", new Class[] { String.class });
-        method6.invoke(obj, new Object[] { "Benko Gambit" });
+                clasname.getMethod("setValue6", new Class[]{String.class});
+        method6.invoke(obj, new Object[]{"Benko Gambit"});
         Method method7 =
-            clasname.getMethod("setValue7", new Class[] { String.class });
-        method7.invoke(obj, new Object[] { "Secillian Defance" });
+                clasname.getMethod("setValue7", new Class[]{String.class});
+        method7.invoke(obj, new Object[]{"Secillian Defance"});
         Method method8 =
-            clasname.getMethod("setValue8", new Class[] { String.class });
-        method8.invoke(obj, new Object[] { "Queens Gambit" });
+                clasname.getMethod("setValue8", new Class[]{String.class});
+        method8.invoke(obj, new Object[]{"Queens Gambit"});
         Method method9 =
-            clasname.getMethod("setValue9", new Class[] { String.class });
-        method9.invoke(obj, new Object[] { "Queens Indian Defense" });
+                clasname.getMethod("setValue9", new Class[]{String.class});
+        method9.invoke(obj, new Object[]{"Queens Indian Defense"});
         Method method10 =
-            clasname.getMethod("setValue10", new Class[] { String.class });
-        method10.invoke(obj, new Object[] { "Alekine's Defense" });
+                clasname.getMethod("setValue10", new Class[]{String.class});
+        method10.invoke(obj, new Object[]{"Alekine's Defense"});
         Method method11 =
-            clasname.getMethod("setValue11", new Class[] { String.class });
-        method11.invoke(obj, new Object[] { "Perc Defense" });
+                clasname.getMethod("setValue11", new Class[]{String.class});
+        method11.invoke(obj, new Object[]{"Perc Defense"});
         Method method12 =
-            clasname.getMethod("setValue12", new Class[] { String.class });
-        method12.invoke(obj, new Object[] { "Scotch Gambit" });
+                clasname.getMethod("setValue12", new Class[]{String.class});
+        method12.invoke(obj, new Object[]{"Scotch Gambit"});
         Method method13 =
-            clasname.getMethod("setValue13", new Class[] { String.class });
-        method13.invoke(obj, new Object[] { "English Opening" });
+                clasname.getMethod("setValue13", new Class[]{String.class});
+        method13.invoke(obj, new Object[]{"English Opening"});
 
         OMElement returnelement = fac.createOMElement("param1", ns);
 
         Class encoderClass =
-            Class.forName(
-                "EchoStructEncoder",
-                true,
-                cl);
+                Class.forName("EchoStructEncoder",
+                        true,
+                        cl);
         Constructor constCt =
-            encoderClass.getConstructor(new Class[] { clasname });
-        Object obj1 = constCt.newInstance(new Object[] { obj });
+                encoderClass.getConstructor(new Class[]{clasname});
+        Object obj1 = constCt.newInstance(new Object[]{obj});
 
         ObjectToOMBuilder builder =
-            new ObjectToOMBuilder(returnelement, (Encoder) obj1);
+                new ObjectToOMBuilder(returnelement, (Encoder) obj1);
 
         returnelement.setBuilder(builder);
-        returnelement.declareNamespace(
-            OMConstants.ARRAY_ITEM_NSURI,
-            OMConstants.ARRAY_ITEM_NS_PREFIX);
+        returnelement.declareNamespace(OMConstants.ARRAY_ITEM_NSURI,
+                OMConstants.ARRAY_ITEM_NS_PREFIX);
         returnelement.declareNamespace(targetNs);
 
         SOAPEnvelope envelope =
-            createRawMessage("echoEchoStruct", returnelement);
+                createRawMessage("echoEchoStruct", returnelement);
 
         XMLStreamReader xpp = invokeTheService(envelope);
 
         Method deserializeMethod =
-            encoderClass.getMethod(
-                "deSerialize",
-                new Class[] { XMLStreamReader.class });
-        Object result = deserializeMethod.invoke(obj1, new Object[] { xpp });
+                encoderClass.getMethod("deSerialize",
+                        new Class[]{XMLStreamReader.class});
+        Object result = deserializeMethod.invoke(obj1, new Object[]{xpp});
         assertTrue(result.equals(obj));
     }
 
     public void testEchoStructArray() throws Exception {
         Object[] objs = new Object[10];
         Class clasname =
-            Class.forName("EchoStruct", true, cl);
+                Class.forName("EchoStruct", true, cl);
 
         for (int i = 0; i < objs.length; i++) {
 
             objs[i] = clasname.newInstance();
             Method method1 =
-                clasname.getMethod("setValue1", new Class[] { String.class });
-            method1.invoke(objs[i], new Object[] { "Ruy Lopez" });
+                    clasname.getMethod("setValue1", new Class[]{String.class});
+            method1.invoke(objs[i], new Object[]{"Ruy Lopez"});
             Method method2 =
-                clasname.getMethod("setValue2", new Class[] { String.class });
-            method2.invoke(objs[i], new Object[] { "Kings Gambit" });
+                    clasname.getMethod("setValue2", new Class[]{String.class});
+            method2.invoke(objs[i], new Object[]{"Kings Gambit"});
             Method method3 =
-                clasname.getMethod("setValue3", new Class[] { int.class });
-            method3.invoke(objs[i], new Object[] { new Integer(345)});
+                    clasname.getMethod("setValue3", new Class[]{int.class});
+            method3.invoke(objs[i], new Object[]{new Integer(345)});
             Method method4 =
-                clasname.getMethod("setValue4", new Class[] { String.class });
-            method4.invoke(objs[i], new Object[] { "Kings Indian Defence" });
+                    clasname.getMethod("setValue4", new Class[]{String.class});
+            method4.invoke(objs[i], new Object[]{"Kings Indian Defence"});
             Method method5 =
-                clasname.getMethod("setValue5", new Class[] { String.class });
-            method5.invoke(objs[i], new Object[] { "Musio Gambit" });
+                    clasname.getMethod("setValue5", new Class[]{String.class});
+            method5.invoke(objs[i], new Object[]{"Musio Gambit"});
             Method method6 =
-                clasname.getMethod("setValue6", new Class[] { String.class });
-            method6.invoke(objs[i], new Object[] { "Benko Gambit" });
+                    clasname.getMethod("setValue6", new Class[]{String.class});
+            method6.invoke(objs[i], new Object[]{"Benko Gambit"});
             Method method7 =
-                clasname.getMethod("setValue7", new Class[] { String.class });
-            method7.invoke(objs[i], new Object[] { "Secillian Defance" });
+                    clasname.getMethod("setValue7", new Class[]{String.class});
+            method7.invoke(objs[i], new Object[]{"Secillian Defance"});
             Method method8 =
-                clasname.getMethod("setValue8", new Class[] { String.class });
-            method8.invoke(objs[i], new Object[] { "Queens Gambit" });
+                    clasname.getMethod("setValue8", new Class[]{String.class});
+            method8.invoke(objs[i], new Object[]{"Queens Gambit"});
             Method method9 =
-                clasname.getMethod("setValue9", new Class[] { String.class });
-            method9.invoke(objs[i], new Object[] { "Queens Indian Defense" });
+                    clasname.getMethod("setValue9", new Class[]{String.class});
+            method9.invoke(objs[i], new Object[]{"Queens Indian Defense"});
             Method method10 =
-                clasname.getMethod("setValue10", new Class[] { String.class });
-            method10.invoke(objs[i], new Object[] { "Alekine's Defense" });
+                    clasname.getMethod("setValue10", new Class[]{String.class});
+            method10.invoke(objs[i], new Object[]{"Alekine's Defense"});
             Method method11 =
-                clasname.getMethod("setValue11", new Class[] { String.class });
-            method11.invoke(objs[i], new Object[] { "Perc Defense" });
+                    clasname.getMethod("setValue11", new Class[]{String.class});
+            method11.invoke(objs[i], new Object[]{"Perc Defense"});
             Method method12 =
-                clasname.getMethod("setValue12", new Class[] { String.class });
-            method12.invoke(objs[i], new Object[] { "Scotch Gambit" });
+                    clasname.getMethod("setValue12", new Class[]{String.class});
+            method12.invoke(objs[i], new Object[]{"Scotch Gambit"});
             Method method13 =
-                clasname.getMethod("setValue13", new Class[] { String.class });
-            method13.invoke(objs[i], new Object[] { "English Opening" });
+                    clasname.getMethod("setValue13", new Class[]{String.class});
+            method13.invoke(objs[i], new Object[]{"English Opening"});
         }
 
         OMElement returnelement = fac.createOMElement("param1", ns);
 
         Class encoderClass =
-            Class.forName(
-                "EchoStructEncoder",
-                true,
-                cl);
+                Class.forName("EchoStructEncoder",
+                        true,
+                        cl);
         Constructor constCt =
-            encoderClass.getConstructor(new Class[] { clasname });
-        Object obj1 = constCt.newInstance(new Object[] { null });
+                encoderClass.getConstructor(new Class[]{clasname});
+        Object obj1 = constCt.newInstance(new Object[]{null});
 
         ObjectToOMBuilder builder =
-            new ObjectToOMBuilder(
-                returnelement,
-                new ArrayTypeEncoder(objs, (Encoder) obj1));
+                new ObjectToOMBuilder(returnelement,
+                        new ArrayTypeEncoder(objs, (Encoder) obj1));
 
         returnelement.setBuilder(builder);
         returnelement.declareNamespace(arrayNs);
         returnelement.declareNamespace(targetNs);
 
         SOAPEnvelope envelope =
-            createRawMessage("echoEchoStructArray", returnelement);
+                createRawMessage("echoEchoStructArray", returnelement);
 
         XMLStreamReader xpp = invokeTheService(envelope);
 
         Encoder enc = new ArrayTypeEncoder(objs, (Encoder) obj1);
 
         Method deserializeMethod =
-            encoderClass.getMethod(
-                "deSerialize",
-                new Class[] { XMLStreamReader.class });
+                encoderClass.getMethod("deSerialize",
+                        new Class[]{XMLStreamReader.class});
         Object obj = enc.deSerialize(xpp);
-        Object[] structs = (Object[])obj;
-        
+        Object[] structs = (Object[]) obj;
+
         for (int i = 0; i < structs.length; i++) {
             assertTrue(structs[i].equals(objs[i]));
-            
+
         }
-        
-        
-        
+
+
     }
 
     protected void setUp() throws Exception {

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/integration/UtilServer.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/integration/UtilServer.java?view=diff&r1=153901&r2=153902
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/integration/UtilServer.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/integration/UtilServer.java Mon Feb 14 22:22:34 2005
@@ -16,11 +16,6 @@
 
 package org.apache.axis.integration;
 
-import java.io.IOException;
-import java.net.ServerSocket;
-
-import javax.xml.namespace.QName;
-
 import org.apache.axis.description.AxisService;
 import org.apache.axis.engine.AxisFault;
 import org.apache.axis.engine.EngineRegistry;
@@ -28,26 +23,29 @@
 import org.apache.axis.engine.EngineUtils;
 import org.apache.axis.transport.http.SimpleHTTPServer;
 
+import javax.xml.namespace.QName;
+import java.io.IOException;
+import java.net.ServerSocket;
+
 public class UtilServer {
     private static int count = 0;
     private static SimpleHTTPServer reciver;
-    
+
 
     public static synchronized void deployService(AxisService service)
-        throws AxisFault {
+            throws AxisFault {
         reciver.getEngineReg().addService(service);
     }
 
     public static synchronized void unDeployService(QName service)
-        throws AxisFault {
+            throws AxisFault {
         reciver.getEngineReg().removeService(service);
     }
 
     public static synchronized void start() throws IOException {
         if (count == 0) {
             EngineRegistry er =
-                EngineRegistryFactory.createEngineRegistry(
-                    "target/test-resources/samples/");
+                    EngineRegistryFactory.createEngineRegistry("target/test-resources/samples/");
             try {
                 Thread.sleep(2000);
             } catch (InterruptedException e1) {
@@ -64,7 +62,7 @@
 
             try {
                 thread.start();
-                System.out.print("Server started on port "+EngineUtils.TESTING_PORT+".....");
+                System.out.print("Server started on port " + EngineUtils.TESTING_PORT + ".....");
             } finally {
 
             }

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/misc/MiscTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/misc/MiscTest.java?view=diff&r1=153901&r2=153902
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/misc/MiscTest.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/misc/MiscTest.java Mon Feb 14 22:22:34 2005
@@ -31,31 +31,31 @@
     public MiscTest(String testName) {
         super(testName);
     }
-    
-    public void testSessionContext(){
+
+    public void testSessionContext() {
         SessionContext sc = new SimpleSessionContext();
         String key = "Hello";
-        Object val  = new Object();
-        sc.put(key,val);
-        assertEquals(sc.get(key),val);
+        Object val = new Object();
+        sc.put(key, val);
+        assertEquals(sc.get(key), val);
     }
-    
-    public void testGlobalContext(){
+
+    public void testGlobalContext() {
         GlobalContext gc = new GlobalContext(null);
         String key = "Hello";
-        Object val  = new Object();
-        gc.put(key,val);
-        assertEquals(gc.get(key),val);
+        Object val = new Object();
+        gc.put(key, val);
+        assertEquals(gc.get(key), val);
         gc.setRegistry(null);
         assertNull(null);
     }
 
 
-    public void testAxisFault(){
+    public void testAxisFault() {
         Exception e = new InvocationTargetException(new Exception());
-        assertNotSame(AxisFault.makeFault(e),e);
-        
+        assertNotSame(AxisFault.makeFault(e), e);
+
         e = new AxisFault();
     }
-    
+
 }

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/BadInputTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/BadInputTest.java?view=diff&r1=153901&r2=153902
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/BadInputTest.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/BadInputTest.java Mon Feb 14 22:22:34 2005
@@ -19,10 +19,10 @@
  */
 package org.apache.axis.om;
 
-import java.io.File;
-
 import org.apache.axis.engine.AxisFault;
 
+import java.io.File;
+
 
 public class BadInputTest extends OMTestCase {
 
@@ -31,7 +31,6 @@
     public BadInputTest(String testName) {
         super(testName);
     }
-
 
 
     //done

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/CompareOMWithDOMTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/CompareOMWithDOMTest.java?view=diff&r1=153901&r2=153902
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/CompareOMWithDOMTest.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/CompareOMWithDOMTest.java Mon Feb 14 22:22:34 2005
@@ -15,43 +15,41 @@
  */
 package org.apache.axis.om;
 
-import java.io.File;
+import org.apache.axis.AbstractTestCase;
+import org.w3c.dom.Document;
 
 import javax.xml.parsers.DocumentBuilder;
 import javax.xml.parsers.DocumentBuilderFactory;
-
-import org.apache.axis.AbstractTestCase;
-import org.w3c.dom.Document;
+import java.io.File;
 
 /**
  * @version $Rev: $ $Date: $
  */
 
-public class CompareOMWithDOMTest extends AbstractTestCase{
+public class CompareOMWithDOMTest extends AbstractTestCase {
     /**
      * @param testName
      */
     public CompareOMWithDOMTest(String testName) {
         super(testName);
     }
-    
-    public void testAllMessagesInSOAP() throws OMException, Exception{
-        File dir = new File(testResourceDir,"soap");
+
+    public void testAllMessagesInSOAP() throws OMException, Exception {
+        File dir = new File(testResourceDir, "soap");
         File[] files = dir.listFiles();
-        if(files != null){
-            for(int i = 0;i<files.length;i++){
-                if(files[i].isFile() && files[i].getName().endsWith(".xml")){
+        if (files != null) {
+            for (int i = 0; i < files.length; i++) {
+                if (files[i].isFile() && files[i].getName().endsWith(".xml")) {
                     System.out.println("files = " + files[i].getAbsolutePath());
-                    SOAPEnvelope soapEnvelope = (SOAPEnvelope) OMTestUtils.getOMBuilder(
-                            files[i]).getDocumentElement();
+                    SOAPEnvelope soapEnvelope = (SOAPEnvelope) OMTestUtils.getOMBuilder(files[i]).getDocumentElement();
                     DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
                     dbf.setNamespaceAware(true);
                     DocumentBuilder builder = dbf.newDocumentBuilder();
                     Document doc = builder.parse(files[i].getAbsolutePath());
-                    OMTestUtils.compare(doc.getDocumentElement(),soapEnvelope);
+                    OMTestUtils.compare(doc.getDocumentElement(), soapEnvelope);
                 }
             }
-        
+
         }
     }
 }

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/IteratorTester.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/IteratorTester.java?view=diff&r1=153901&r2=153902
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/IteratorTester.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/IteratorTester.java Mon Feb 14 22:22:34 2005
@@ -1,13 +1,12 @@
 package org.apache.axis.om;
 
-import java.io.FileReader;
-import java.util.Iterator;
-
-import javax.xml.stream.XMLInputFactory;
-
 import org.apache.axis.AbstractTestCase;
 import org.apache.axis.om.impl.llom.builder.StAXSOAPModelBuilder;
 
+import javax.xml.stream.XMLInputFactory;
+import java.io.FileReader;
+import java.util.Iterator;
+
 /**
  * Copyright 2001-2004 The Apache Software Foundation.
  * <p/>
@@ -23,7 +22,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-public class IteratorTester extends AbstractTestCase{
+public class IteratorTester extends AbstractTestCase {
 
     private SOAPEnvelope envelope = null;
 
@@ -32,15 +31,14 @@
     }
 
     protected void setUp() throws Exception {
-        envelope = new StAXSOAPModelBuilder(XMLInputFactory.newInstance().createXMLStreamReader(
-                new FileReader(getTestResourceFile("soap/soapmessage1.xml")))).getSOAPEnvelope();
+        envelope = new StAXSOAPModelBuilder(XMLInputFactory.newInstance().createXMLStreamReader(new FileReader(getTestResourceFile("soap/soapmessage1.xml")))).getSOAPEnvelope();
     }
 
     protected void tearDown() throws Exception {
         envelope = null;
     }
 
-    public void testIterator(){
+    public void testIterator() {
         OMElement elt = envelope;
         Iterator iter = elt.getChildren();
 
@@ -52,9 +50,9 @@
 
 
     /**
-     *test the remove exception behavior
+     * test the remove exception behavior
      */
-    public void testIteratorRemove1(){
+    public void testIteratorRemove1() {
 
         OMElement elt = envelope;
         Iterator iter = elt.getChildren();
@@ -70,14 +68,14 @@
     }
 
     /**
-     *test the remove exception behavior, consecutive remove calls
+     * test the remove exception behavior, consecutive remove calls
      */
-    public void testIteratorRemove2(){
+    public void testIteratorRemove2() {
 
         OMElement elt = envelope;
         Iterator iter = elt.getChildren();
 
-        if (iter.hasNext()){
+        if (iter.hasNext()) {
             iter.next();
         }
 
@@ -96,29 +94,30 @@
     /**
      * Remove all!
      */
-    public void testIteratorRemove3(){
+    public void testIteratorRemove3() {
 
         OMElement elt = envelope;
         Iterator iter = elt.getChildren();
 
-        while (iter.hasNext()){
+        while (iter.hasNext()) {
             iter.next();
             iter.remove();
         }
 
-        iter=elt.getChildren();
+        iter = elt.getChildren();
 
-        if(iter.hasNext()){
+        if (iter.hasNext()) {
             fail("No children should remain after removing all!");
         }
 
 
     }
+
     /**
-     *test whether the children count reduces.
+     * test whether the children count reduces.
      */
 
-    public void testIteratorRemove4(){
+    public void testIteratorRemove4() {
 
         OMElement elt = envelope;
         Iterator iter = elt.getChildren();
@@ -127,7 +126,7 @@
 
 
         while (iter.hasNext()) {
-            assertNotNull( (OMNode) iter.next());
+            assertNotNull((OMNode) iter.next());
             firstChildrenCount++;
         }
 
@@ -139,24 +138,14 @@
         //reset the iterator
         iter = elt.getChildren(); //reset the iterator
         while (iter.hasNext()) {
-            assertNotNull((OMNode)iter.next());
+            assertNotNull((OMNode) iter.next());
             secondChildrenCount++;
         }
 
 
-        assertEquals("children count must reduce from 1",firstChildrenCount-1,secondChildrenCount);
+        assertEquals("children count must reduce from 1", firstChildrenCount - 1, secondChildrenCount);
 
     }
-
-
-
-
-
-
-
-
-
-
 
 
 }

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/MessagesTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/MessagesTest.java?view=diff&r1=153901&r2=153902
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/MessagesTest.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/MessagesTest.java Mon Feb 14 22:22:34 2005
@@ -1,26 +1,25 @@
 /**
-* Copyright 2001-2004 The Apache Software Foundation.
-* <p/>
-* 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
-* <p/>
-* http://www.apache.org/licenses/LICENSE-2.0
-* <p/>
-* 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.
-* <p/>
-* Author: Eran Chinthaka - Lanka Software Foundation
-* Date: Nov 2, 2004
-* Time: 2:39:39 PM
-*/
+ * Copyright 2001-2004 The Apache Software Foundation.
+ * <p/>
+ * 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
+ * <p/>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p/>
+ * 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.
+ * <p/>
+ * Author: Eran Chinthaka - Lanka Software Foundation
+ * Date: Nov 2, 2004
+ * Time: 2:39:39 PM
+ */
 package org.apache.axis.om;
 
 
-
 public class MessagesTest extends OMTestCase {
     SOAPEnvelope soapEnvelope;
 
@@ -32,22 +31,21 @@
         soapEnvelope = (SOAPEnvelope) OMTestUtils.getOMBuilder(getTestResourceFile("soap/whitespacedMessage.xml")).getDocumentElement();
         OMTestUtils.walkThrough(soapEnvelope);
     }
-    
+
     public void testMinimalMessage() throws OMException, Exception {
         soapEnvelope = (SOAPEnvelope) OMTestUtils.getOMBuilder(getTestResourceFile("soap/minimalMessage.xml")).getDocumentElement();
         OMTestUtils.walkThrough(soapEnvelope);
     }
-    
+
     public void testReallyBigMessage() throws OMException, Exception {
         soapEnvelope = (SOAPEnvelope) OMTestUtils.getOMBuilder(getTestResourceFile("soap/reallyReallyBigMessage.xml")).getDocumentElement();
         OMTestUtils.walkThrough(soapEnvelope);
     }
-    
+
     public void testEmptyBodiedMessage() throws OMException, Exception {
         soapEnvelope = (SOAPEnvelope) OMTestUtils.getOMBuilder(getTestResourceFile("soap/emtyBodymessage.xml")).getDocumentElement();
         OMTestUtils.walkThrough(soapEnvelope);
     }
 
-    
 
 }

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/OMBodyTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/OMBodyTest.java?view=diff&r1=153901&r2=153902
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/OMBodyTest.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/OMBodyTest.java Mon Feb 14 22:22:34 2005
@@ -1,33 +1,33 @@
 /**
-* Copyright 2001-2004 The Apache Software Foundation.
-* <p/>
-* 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
-* <p/>
-* http://www.apache.org/licenses/LICENSE-2.0
-* <p/>
-* 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.
-* <p/>
-* Author: Eran Chinthaka - Lanka Software Foundation
-* Date: Nov 2, 2004
-* Time: 2:36:54 PM
-*/
+ * Copyright 2001-2004 The Apache Software Foundation.
+ * <p/>
+ * 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
+ * <p/>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p/>
+ * 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.
+ * <p/>
+ * Author: Eran Chinthaka - Lanka Software Foundation
+ * Date: Nov 2, 2004
+ * Time: 2:36:54 PM
+ */
 package org.apache.axis.om;
 
 
-public class OMBodyTest extends OMTestCase implements OMConstants{
+public class OMBodyTest extends OMTestCase implements OMConstants {
 
     SOAPBody soapBody;
 
     public OMBodyTest(String testName) {
         super(testName);
     }
-    
+
     /*
      * @see TestCase#setUp()
      */
@@ -42,7 +42,7 @@
     public void testAddFault() {
         System.out.println("Adding SOAP fault to body ....");
 
-        soapBody.addChild(ombuilderFactory.createSOAPFault(soapBody,new Exception("Testing soap fault")));
+        soapBody.addChild(ombuilderFactory.createSOAPFault(soapBody, new Exception("Testing soap fault")));
 
         System.out.println("\t checking for SOAP Fault ...");
         assertTrue("SOAP body has no SOAP fault", soapBody.hasFault());
@@ -53,5 +53,5 @@
         //SimpleOMSerializer simpleOMSerializer = new SimpleOMSerializer();
         //simpleOMSerializer.serialize(soapBody, System.out);
     }
-              
+
 }

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/OMChildrenQNameIteratorTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/OMChildrenQNameIteratorTest.java?view=diff&r1=153901&r2=153902
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/OMChildrenQNameIteratorTest.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/OMChildrenQNameIteratorTest.java Mon Feb 14 22:22:34 2005
@@ -16,15 +16,14 @@
  * limitations under the License.
  */
 
-import java.io.FileReader;
-import java.util.Iterator;
-
-import javax.xml.namespace.QName;
-import javax.xml.stream.XMLInputFactory;
-
 import org.apache.axis.AbstractTestCase;
 import org.apache.axis.om.impl.llom.builder.StAXSOAPModelBuilder;
 import org.apache.axis.om.impl.llom.traverse.OMChildrenQNameIterator;
+
+import javax.xml.namespace.QName;
+import javax.xml.stream.XMLInputFactory;
+import java.io.FileReader;
+import java.util.Iterator;
 
 public class OMChildrenQNameIteratorTest extends AbstractTestCase {
 

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/OMEnvelopeTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/OMEnvelopeTest.java?view=diff&r1=153901&r2=153902
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/OMEnvelopeTest.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/OMEnvelopeTest.java Mon Feb 14 22:22:34 2005
@@ -20,8 +20,6 @@
 package org.apache.axis.om;
 
 
-
-
 public class OMEnvelopeTest extends OMTestCase {
     public OMEnvelopeTest(String testName) {
         super(testName);
@@ -30,14 +28,15 @@
     protected void setUp() throws Exception {
         super.setUp();
     }
+
     public void testGetHeader1() {
         SOAPHeader header = soapEnvelope.getHeader();
-        assertTrue("Header information retrieved not correct", ( header != null && header.getLocalName().equalsIgnoreCase("Header")) );
+        assertTrue("Header information retrieved not correct", (header != null && header.getLocalName().equalsIgnoreCase("Header")));
     }
 
     public void testGetBody1() {
         SOAPBody body = soapEnvelope.getBody();
-        assertTrue("Header information retrieved not correct", ( body != null && body.getLocalName().equalsIgnoreCase("Body")) );
+        assertTrue("Header information retrieved not correct", (body != null && body.getLocalName().equalsIgnoreCase("Body")));
     }
 
     private SOAPEnvelope getSecondEnvelope() throws Exception {
@@ -46,21 +45,21 @@
 
     public void testGetHeader2() throws Exception {
         SOAPHeader header = getSecondEnvelope().getHeader();
-        assertTrue("Header information retrieved not correct", ( header != null && header.getLocalName().equalsIgnoreCase("Header")) );
+        assertTrue("Header information retrieved not correct", (header != null && header.getLocalName().equalsIgnoreCase("Header")));
     }
 
     public void testGetBody2() throws Exception {
         SOAPBody body = getSecondEnvelope().getBody();
-        assertTrue("Header information retrieved not correct", ( body != null && body.getLocalName().equalsIgnoreCase("Body")) );
+        assertTrue("Header information retrieved not correct", (body != null && body.getLocalName().equalsIgnoreCase("Body")));
     }
 
-    public void testDefaultEnveleope(){
+    public void testDefaultEnveleope() {
 
         SOAPEnvelope env = OMFactory.newInstance().getDefaultEnvelope();
         assertNotNull(env);
 
-        assertNotNull("Header should not be null",env.getHeader());
-        assertNotNull("Body should not be null",env.getBody());
+        assertNotNull("Header should not be null", env.getHeader());
+        assertNotNull("Body should not be null", env.getBody());
 
     }
 

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/OMHeaderBlockTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/OMHeaderBlockTest.java?view=diff&r1=153901&r2=153902
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/OMHeaderBlockTest.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/OMHeaderBlockTest.java Mon Feb 14 22:22:34 2005
@@ -1,22 +1,22 @@
 /**
-* Copyright 2001-2004 The Apache Software Foundation.
-* <p/>
-* 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
-* <p/>
-* http://www.apache.org/licenses/LICENSE-2.0
-* <p/>
-* 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.
-* <p/>
-* Author: Eran Chinthaka - Lanka Software Foundation
-* Date: Nov 2, 2004
-* Time: 2:40:21 PM
-*/
+ * Copyright 2001-2004 The Apache Software Foundation.
+ * <p/>
+ * 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
+ * <p/>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p/>
+ * 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.
+ * <p/>
+ * Author: Eran Chinthaka - Lanka Software Foundation
+ * Date: Nov 2, 2004
+ * Time: 2:40:21 PM
+ */
 package org.apache.axis.om;
 
 import java.util.Iterator;
@@ -38,7 +38,7 @@
         Iterator headerElementIter = soapHeader.examineAllHeaderBlocks();
         if (headerElementIter.hasNext()) {
             soapHeaderElement = (SOAPHeaderBlock) headerElementIter.next();
-       }
+        }
     }
 
 

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/OMHeaderTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/OMHeaderTest.java?view=diff&r1=153901&r2=153902
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/OMHeaderTest.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/OMHeaderTest.java Mon Feb 14 22:22:34 2005
@@ -1,27 +1,27 @@
 /**
-* Copyright 2001-2004 The Apache Software Foundation.
-* <p/>
-* 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
-* <p/>
-* http://www.apache.org/licenses/LICENSE-2.0
-* <p/>
-* 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.
-* <p/>
-* Author: Eran Chinthaka - Lanka Software Foundation
-* Date: Nov 2, 2004
-* Time: 2:39:57 PM
-*/
+ * Copyright 2001-2004 The Apache Software Foundation.
+ * <p/>
+ * 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
+ * <p/>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p/>
+ * 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.
+ * <p/>
+ * Author: Eran Chinthaka - Lanka Software Foundation
+ * Date: Nov 2, 2004
+ * Time: 2:39:57 PM
+ */
 package org.apache.axis.om;
 
-import java.util.Iterator;
-
 import org.apache.axis.om.impl.llom.OMNamespaceImpl;
+
+import java.util.Iterator;
 
 
 public class OMHeaderTest extends OMTestCase {

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/OMNavigatorTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/OMNavigatorTest.java?view=diff&r1=153901&r2=153902
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/OMNavigatorTest.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/OMNavigatorTest.java Mon Feb 14 22:22:34 2005
@@ -1,17 +1,16 @@
 package org.apache.axis.om;
 
-import java.io.File;
-import java.io.FileOutputStream;
-import java.io.FileReader;
+import org.apache.axis.AbstractTestCase;
+import org.apache.axis.om.impl.llom.OMNavigator;
+import org.apache.axis.om.impl.llom.builder.StAXSOAPModelBuilder;
 
 import javax.xml.stream.XMLInputFactory;
 import javax.xml.stream.XMLOutputFactory;
 import javax.xml.stream.XMLStreamReader;
 import javax.xml.stream.XMLStreamWriter;
-
-import org.apache.axis.AbstractTestCase;
-import org.apache.axis.om.impl.llom.OMNavigator;
-import org.apache.axis.om.impl.llom.builder.StAXSOAPModelBuilder;
+import java.io.File;
+import java.io.FileOutputStream;
+import java.io.FileReader;
 
 /**
  * Copyright 2001-2004 The Apache Software Foundation.
@@ -44,7 +43,7 @@
                 createXMLStreamReader(new FileReader(getTestResourceFile("soap/soapmessage1.xml")));
         OMFactory factory = OMFactory.newInstance();
         builder = new StAXSOAPModelBuilder(factory, xmlStreamReader);
-        envelope = (SOAPEnvelope)builder.getDocumentElement();
+        envelope = (SOAPEnvelope) builder.getDocumentElement();
         tempFile = File.createTempFile("temp", "xml");
         writer = XMLOutputFactory.newInstance().createXMLStreamWriter(new FileOutputStream(tempFile));
 //        writer = XMLOutputFactory.newInstance().createXMLStreamWriter(System.out);
@@ -57,7 +56,7 @@
 
         assertNotNull(envelope);
         //dump the out put to a  temporary file
-        envelope.serialize(writer,true);
+        envelope.serialize(writer, true);
 
         //now the OM is fully created test the navigation
         OMNavigator navigator = new OMNavigator(envelope);



Mime
View raw message