incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hamm...@apache.org
Subject cvs commit: incubator-altrmi/src/test/org/apache/altrmi/test/messenger MessengerTestCase.java
Date Fri, 21 Mar 2003 08:13:00 GMT
hammant     2003/03/21 00:13:00

  Modified:    src/java/org/apache/altrmi/client/impl/messenger
                        SynchronousMessengerHostContext.java
               src/java/org/apache/altrmi/server/impl/messenger
                        SynchronousMessengerServer.java
               src/test/org/apache/altrmi/test/messenger
                        MessengerTestCase.java
  Log:
  license etc.
  
  Revision  Changes    Path
  1.2       +53 -6     incubator-altrmi/src/java/org/apache/altrmi/client/impl/messenger/SynchronousMessengerHostContext.java
  
  Index: SynchronousMessengerHostContext.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/java/org/apache/altrmi/client/impl/messenger/SynchronousMessengerHostContext.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SynchronousMessengerHostContext.java	21 Mar 2003 00:15:42 -0000	1.1
  +++ SynchronousMessengerHostContext.java	21 Mar 2003 08:12:59 -0000	1.2
  @@ -1,9 +1,56 @@
  -/**
  - * Created by IntelliJ IDEA.
  - * User: Administrator
  - * Date: Mar 20, 2003
  - * Time: 9:33:45 PM
  - * To change this template use Options | File Templates.
  +/* ====================================================================
  + * The Apache Software License, Version 1.1
  + *
  + * Copyright (c) 1997-2003 The Apache Software Foundation. All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *    "This product includes software developed by the
  + *    Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software
  + *    itself, if and wherever such third-party acknowledgments
  + *    normally appear.
  + *
  + * 4. The names "Incubator", "AltRMI", and "Apache Software Foundation"
  + *    must not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact apache@apache.org.
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation. For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
    */
   package org.apache.altrmi.client.impl.messenger;
   
  
  
  
  1.2       +56 -7     incubator-altrmi/src/java/org/apache/altrmi/server/impl/messenger/SynchronousMessengerServer.java
  
  Index: SynchronousMessengerServer.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/java/org/apache/altrmi/server/impl/messenger/SynchronousMessengerServer.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SynchronousMessengerServer.java	21 Mar 2003 00:15:42 -0000	1.1
  +++ SynchronousMessengerServer.java	21 Mar 2003 08:13:00 -0000	1.2
  @@ -1,9 +1,56 @@
  -/**
  - * Created by IntelliJ IDEA.
  - * User: Administrator
  - * Date: Mar 20, 2003
  - * Time: 9:26:16 PM
  - * To change this template use Options | File Templates.
  +/* ====================================================================
  + * The Apache Software License, Version 1.1
  + *
  + * Copyright (c) 1997-2003 The Apache Software Foundation. All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *    "This product includes software developed by the
  + *    Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software
  + *    itself, if and wherever such third-party acknowledgments
  + *    normally appear.
  + *
  + * 4. The names "Incubator", "AltRMI", and "Apache Software Foundation"
  + *    must not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact apache@apache.org.
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation. For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
    */
   package org.apache.altrmi.server.impl.messenger;
   
  @@ -13,12 +60,14 @@
   
   public class SynchronousMessengerServer extends AbstractServer {
       public SynchronousMessengerServer(Messenger messenger) {
  -        super(null);
  +        super(null); //TODO
       }
   
       public void start() throws ServerException {
  +        //TODO
       }
   
       public void stop() {
  +        //TODO
       }
   }
  
  
  
  1.3       +72 -11    incubator-altrmi/src/test/org/apache/altrmi/test/messenger/MessengerTestCase.java
  
  Index: MessengerTestCase.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/test/org/apache/altrmi/test/messenger/MessengerTestCase.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- MessengerTestCase.java	21 Mar 2003 07:44:17 -0000	1.2
  +++ MessengerTestCase.java	21 Mar 2003 08:13:00 -0000	1.3
  @@ -1,30 +1,90 @@
  +/* ====================================================================
  + * The Apache Software License, Version 1.1
  + *
  + * Copyright (c) 1997-2003 The Apache Software Foundation. All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *    "This product includes software developed by the
  + *    Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software
  + *    itself, if and wherever such third-party acknowledgments
  + *    normally appear.
  + *
  + * 4. The names "Incubator", "AltRMI", and "Apache Software Foundation"
  + *    must not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact apache@apache.org.
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation. For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.altrmi.test.messenger;
   
  -import junit.framework.TestCase;
  -import org.apache.altrmi.server.impl.socket.CompleteSocketCustomStreamServer;
  -import org.apache.altrmi.server.impl.messenger.SynchronousMessengerServer;
  -import org.apache.altrmi.server.PublicationDescription;
  -import org.apache.altrmi.test.*;
   import org.apache.altrmi.client.impl.ClientSideClassFactory;
   import org.apache.altrmi.client.impl.messenger.SynchronousMessengerHostContext;
  -import org.apache.altrmi.client.impl.socket.SocketCustomStreamHostContext;
  +import org.apache.altrmi.server.PublicationDescription;
  +import org.apache.altrmi.server.impl.messenger.SynchronousMessengerServer;
  +import org.apache.altrmi.test.AbstractHelloTestCase;
  +import org.apache.altrmi.test.TestInterface;
  +import org.apache.altrmi.test.TestInterface2;
  +import org.apache.altrmi.test.TestInterface3;
  +import org.apache.altrmi.test.TestInterfaceImpl;
   import org.apache.commons.messenger.Messenger;
   import org.apache.commons.messenger.MessengerManager;
   
  -public class MessengerTestCase extends AbstractHelloTestCase {
  +public class MessengerTestCase extends AbstractHelloTestCase
  +{
       private Messenger serverMessenger;
       private Messenger clientMessenger;
   
  -    public MessengerTestCase(String name) {
  +    public MessengerTestCase(String name)
  +    {
           super(name);
       }
   
  -    protected void setUp() throws Exception {
  +    protected void setUp() throws Exception
  +    {
           super.setUp();
   
           // server side setup.
  -        System.out.println("--2> " + getClass().getClassLoader());
  +
  +        // TODO this needed?
           Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
  +
           serverMessenger = MessengerManager.get("cacheTopicConnection");
           server = new SynchronousMessengerServer(serverMessenger);
           testServer = new TestInterfaceImpl();
  @@ -45,7 +105,8 @@
       }
   
   
  -    protected void tearDown() throws Exception {
  +    protected void tearDown() throws Exception
  +    {
           testClient = null;
           System.gc();
           Thread.yield();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message