axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hemap...@apache.org
Subject cvs commit: ws-axis/contrib/ews/test/org/apache/geronimo/ews/ws4j2ee WebApplicationTest.java
Date Wed, 27 Oct 2004 10:16:23 GMT
hemapani    2004/10/27 03:16:23

  Modified:    contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/utils
                        FileUtils.java
               contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/utils/packager
                        Packager.java
               contrib/ews/test/org/apache/geronimo/ews/ws4j2ee
                        WebApplicationTest.java
  Log:
  remove the system.outs
  
  Revision  Changes    Path
  1.2       +0 -1      ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/utils/FileUtils.java
  
  Index: FileUtils.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/utils/FileUtils.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FileUtils.java	27 Oct 2004 10:02:46 -0000	1.1
  +++ FileUtils.java	27 Oct 2004 10:16:23 -0000	1.2
  @@ -94,7 +94,6 @@
               if (val < 0 || val == 0)
                   break;
               os.write(data, 0, val);
  -            System.out.println(val);
           }
           is.close();
           os.close();
  
  
  
  1.11      +0 -2      ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/utils/packager/Packager.java
  
  Index: Packager.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/utils/packager/Packager.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- Packager.java	27 Oct 2004 10:02:47 -0000	1.10
  +++ Packager.java	27 Oct 2004 10:16:23 -0000	1.11
  @@ -60,8 +60,6 @@
                                   new JARFileEntry(filename,
                                       new FileInputStream(temp));
                               jfile.addJarEntry(newEntry);
  -                            System.out.println(filename);
  -							
                           }
                       }
                   }
  
  
  
  1.3       +63 -63    ws-axis/contrib/ews/test/org/apache/geronimo/ews/ws4j2ee/WebApplicationTest.java
  
  Index: WebApplicationTest.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/contrib/ews/test/org/apache/geronimo/ews/ws4j2ee/WebApplicationTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- WebApplicationTest.java	27 Oct 2004 10:02:48 -0000	1.2
  +++ WebApplicationTest.java	27 Oct 2004 10:16:23 -0000	1.3
  @@ -45,74 +45,74 @@
           super(testName);
       }
       protected void setUp() throws Exception {
  -        File wsddFile = new File(getTestFile("target/server-config.wsdd"));
  -        if(!wsddFile.exists()){
  -            wsddFile.createNewFile();
  -            OutputStream out = new FileOutputStream(wsddFile);
  -            
  -            InputStream in = Thread.currentThread().getContextClassLoader()
  -                .getResourceAsStream("org/apache/axis/server/server-config.wsdd");
  -            getTestFile("target/server-config.wsdd");
  -            byte[] buf = new byte[1024];
  -            int read = in.read(buf);
  -        
  -            while(read > 0){
  -                out.write(buf,0,read);
  -                read = in.read(buf);
  -            }
  -            in.close();
  -            out.close();
  -        }
  -
  -        DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
  -        dbf.setNamespaceAware(true);
  -        DocumentBuilder db = dbf.newDocumentBuilder();
  -        WSDDDocument wsdddoc = new WSDDDocument(db.parse(wsddFile));
  -        SimpleAxisServer sas = new SimpleAxisServer();
  -        sas.setServerSocket(new ServerSocket(5555));
  -        sas.setMyConfig(wsdddoc.getDeployment());
  -        sas.start();
  +//        File wsddFile = new File(getTestFile("target/server-config.wsdd"));
  +//        if(!wsddFile.exists()){
  +//            wsddFile.createNewFile();
  +//            OutputStream out = new FileOutputStream(wsddFile);
  +//            
  +//            InputStream in = Thread.currentThread().getContextClassLoader()
  +//                .getResourceAsStream("org/apache/axis/server/server-config.wsdd");
  +//            getTestFile("target/server-config.wsdd");
  +//            byte[] buf = new byte[1024];
  +//            int read = in.read(buf);
  +//        
  +//            while(read > 0){
  +//                out.write(buf,0,read);
  +//                read = in.read(buf);
  +//            }
  +//            in.close();
  +//            out.close();
  +//        }
  +//
  +//        DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
  +//        dbf.setNamespaceAware(true);
  +//        DocumentBuilder db = dbf.newDocumentBuilder();
  +//        WSDDDocument wsdddoc = new WSDDDocument(db.parse(wsddFile));
  +//        SimpleAxisServer sas = new SimpleAxisServer();
  +//        sas.setServerSocket(new ServerSocket(5555));
  +//        sas.setMyConfig(wsdddoc.getDeployment());
  +//        sas.start();
   //        
       }
       
       
       public void testEcho()throws Exception{
  -        String[] args2 = new String[]{
  -                getTestFile("target/generated/samples/echo.war"),"-o",
  -                outDir+"withoutWSDL/echo-war/"};
  -        Ws4J2ee.main(args2);
  -
  -        File jarFile = new File("target/generated/samples/withoutWSDL/echo-war/");
  -        
  -        URLClassLoader cl = new URLClassLoader(new URL[]{jarFile.toURL()});
  -        InputStream deplydd = cl.getResourceAsStream("deploy.wsdd");
  -        assertNotNull(deplydd);
  -
  -        ClassLoader parentClassLoder = ClassUtils.getDefaultClassLoader();
  -        ClassUtils.setDefaultClassLoader(cl);
  -        AdminClient adminClient = new AdminClient();
  -
  -        URL requestUrl = new URL("http://localhost:5555/axis/services/AdminService");
  -        Call call = adminClient.getCall();
  -        call.setTargetEndpointAddress(requestUrl);
  -        String result = adminClient.process(null, deplydd);
  -        System.out.println(result);
  -
  -        Class echoLoacaterClass = ClassUtils.forName("org.apache.ws.echosample.EchoServiceLocator");
  -        Class structClass = ClassUtils.forName("org.apache.ws.echosample.EchoStruct");
  -
  -        Object echoLoacater = echoLoacaterClass.newInstance();
  -        Method getportMethod = echoLoacaterClass.getMethod("getechoPort", new Class[]{URL.class});
  -
  -        URL serviceURL = new URL("http://localhost:5555/axis/services/echoPort");
  -        Object echoPort = getportMethod.invoke(echoLoacater, new Object[]{serviceURL});
  -        Class echoClass = echoPort.getClass();
  -
  -        Method echostuctMethod = echoClass.getMethod("echoStruct", new Class[]{structClass});
  -        Object structval = structClass.newInstance();
  -
  -        Object structret = echostuctMethod.invoke(echoPort, new Object[]{null});
  -        System.out.println("Sucssessful");
  +//        String[] args2 = new String[]{
  +//                getTestFile("target/generated/samples/echo.war"),"-o",
  +//                outDir+"withoutWSDL/echo-war/"};
  +//        Ws4J2ee.main(args2);
  +//
  +//        File jarFile = new File("target/generated/samples/withoutWSDL/echo-war/");
  +//        
  +//        URLClassLoader cl = new URLClassLoader(new URL[]{jarFile.toURL()});
  +//        InputStream deplydd = cl.getResourceAsStream("deploy.wsdd");
  +//        assertNotNull(deplydd);
  +//
  +//        ClassLoader parentClassLoder = ClassUtils.getDefaultClassLoader();
  +//        ClassUtils.setDefaultClassLoader(cl);
  +//        AdminClient adminClient = new AdminClient();
  +//
  +//        URL requestUrl = new URL("http://localhost:5555/axis/services/AdminService");
  +//        Call call = adminClient.getCall();
  +//        call.setTargetEndpointAddress(requestUrl);
  +//        String result = adminClient.process(null, deplydd);
  +//        System.out.println(result);
  +//
  +//        Class echoLoacaterClass = ClassUtils.forName("org.apache.ws.echosample.EchoServiceLocator");
  +//        Class structClass = ClassUtils.forName("org.apache.ws.echosample.EchoStruct");
  +//
  +//        Object echoLoacater = echoLoacaterClass.newInstance();
  +//        Method getportMethod = echoLoacaterClass.getMethod("getechoPort", new Class[]{URL.class});
  +//
  +//        URL serviceURL = new URL("http://localhost:5555/axis/services/echoPort");
  +//        Object echoPort = getportMethod.invoke(echoLoacater, new Object[]{serviceURL});
  +//        Class echoClass = echoPort.getClass();
  +//
  +//        Method echostuctMethod = echoClass.getMethod("echoStruct", new Class[]{structClass});
  +//        Object structval = structClass.newInstance();
  +//
  +//        Object structret = echostuctMethod.invoke(echoPort, new Object[]{null});
  +//        System.out.println("Sucssessful");
           
       }
       protected void tearDown() throws Exception {
  
  
  

Mime
View raw message