avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hamm...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/altrmi/src/test/org/apache/excalibur/altrmi/test/socket JSXObjectStreamTestCase.java CustomStreamJNDITestCase.java JSXObjectStreamSocketClientTest.java JSXObjectStreamSocketServerTest.java
Date Sun, 25 Aug 2002 23:44:48 GMT
hammant     2002/08/25 16:44:48

  Modified:    altrmi   build.xml
               altrmi/src/test/org/apache/excalibur/altrmi/test/socket
                        CustomStreamJNDITestCase.java
  Added:       altrmi/src/test/org/apache/excalibur/altrmi/test/socket
                        JSXObjectStreamTestCase.java
  Removed:     altrmi/src/test/org/apache/excalibur/altrmi/test/socket
                        JSXObjectStreamSocketClientTest.java
                        JSXObjectStreamSocketServerTest.java
  Log:
  JSX test added, but still does not work under 1.4.
  
  Revision  Changes    Path
  1.36      +2 -0      jakarta-avalon-excalibur/altrmi/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/altrmi/build.xml,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- build.xml	25 Aug 2002 22:23:31 -0000	1.35
  +++ build.xml	25 Aug 2002 23:44:48 -0000	1.36
  @@ -36,6 +36,7 @@
           <pathelement location="${build.testclasses}"/>
           <pathelement location="${junit.jar}"/>
           <pathelement location="build/genclasses"/>
  +        <pathelement location="lib/JSX1.0.3.1.jar"/>
           <path refid="project.class.path"/>
       </path>
       
  @@ -236,6 +237,7 @@
                   <fileset dir="${build.testclasses}">
                       <include name="**/test/**/*TestCase.class"/>
                       <exclude name="**/Abstract*"/>
  +                    <exclude name="**/JSXObjectStreamTestCase.class"/>
                   </fileset>
               </batchtest>
           </junit>
  
  
  
  1.2       +1 -1      jakarta-avalon-excalibur/altrmi/src/test/org/apache/excalibur/altrmi/test/socket/CustomStreamJNDITestCase.java
  
  Index: CustomStreamJNDITestCase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/altrmi/src/test/org/apache/excalibur/altrmi/test/socket/CustomStreamJNDITestCase.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CustomStreamJNDITestCase.java	25 Aug 2002 23:20:23 -0000	1.1
  +++ CustomStreamJNDITestCase.java	25 Aug 2002 23:44:48 -0000	1.2
  @@ -18,7 +18,7 @@
   
   
   /**
  - * Test Custom Stream over sockets.
  + * Test Custom Stream over sockets, using JNDI on the client side ( a small change ).
    * @author Paul Hammant
    */
   public class CustomStreamJNDITestCase extends AbstractHelloTestCase
  
  
  
  1.1                  jakarta-avalon-excalibur/altrmi/src/test/org/apache/excalibur/altrmi/test/socket/JSXObjectStreamTestCase.java
  
  Index: JSXObjectStreamTestCase.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.excalibur.altrmi.test.socket;
  
  import org.apache.excalibur.altrmi.client.impl.socket.SocketObjectStreamHostContext;
  import org.apache.excalibur.altrmi.client.impl.ClientClassAltrmiFactory;
  import org.apache.excalibur.altrmi.client.AltrmiFactory;
  
  import org.apache.excalibur.altrmi.server.impl.socket.CompleteSocketObjectStreamServer;
  import org.apache.excalibur.altrmi.test.TestInterface;
  import org.apache.excalibur.altrmi.test.AbstractHelloTestCase;
  import org.apache.excalibur.altrmi.test.SimpleHelloTestServerImpl;
  
  
  /**
   * Test Object Stream over sockets using JSX XML distribution.
   * Currently this test freezes so is excluded from test run.
   * @author Paul Hammant
   */
  public class JSXObjectStreamTestCase extends AbstractHelloTestCase
  {
  
      public JSXObjectStreamTestCase(String name)
      {
          super(name);
      }
  
      protected void setUp() throws Exception
      {
          super.setUp();
  
          // server side setup.
          server = new CompleteSocketObjectStreamServer(10009, "JSX.ObjIn", "JSX.ObjOut");
          testServer = new SimpleHelloTestServerImpl();
          server.publish(testServer, "Hello", TestInterface.class);
          server.start();
  
          // Client side setup
          AltrmiFactory af = new ClientClassAltrmiFactory(false);
          af.setHostContext(new SocketObjectStreamHostContext("127.0.0.1", 10009, "JSX.ObjIn",
"JSX.ObjOut"));
          testClient = (TestInterface) af.lookup("Hello");
  
          // just a kludge for unit testing given we are intrinsically dealing with
          // threads, AltRMI being a client/server thing
          Thread.yield();
      }
  
      protected void tearDown() throws Exception
      {
          server.stop();
          Thread.yield();
          server = null;
          testServer = null;
          super.tearDown();
      }
  
  
  }
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message