[jboss-cvs] JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/timeout ...

Ron Sigal ron_sigal at yahoo.com
Wed Feb 21 04:45:36 EST 2007


  User: rsigal  
  Date: 07/02/21 04:45:36

  Added:       src/tests/org/jboss/test/remoting/transport/socket/timeout   
                        Tag: remoting_2_x
                        SocketQuickDisconnectTestCase.java
                        SocketQuickDisconnectClient.java
                        SocketQuickDisconnectServer.java
  Log:
  JBREM-598, JBREM-657:  Unit tests for quick disconnect using per invocation timeout.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.1   +42 -0     JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/timeout/Attic/SocketQuickDisconnectTestCase.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: SocketQuickDisconnectTestCase.java
  ===================================================================
  RCS file: SocketQuickDisconnectTestCase.java
  diff -N SocketQuickDisconnectTestCase.java
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ SocketQuickDisconnectTestCase.java	21 Feb 2007 09:45:36 -0000	1.1.2.1
  @@ -0,0 +1,42 @@
  +/*
  +* JBoss, Home of Professional Open Source
  +* Copyright 2005, JBoss Inc., and individual contributors as indicated
  +* by the @authors tag. See the copyright.txt in the distribution for a
  +* full listing of individual contributors.
  +*
  +* This is free software; you can redistribute it and/or modify it
  +* under the terms of the GNU Lesser General Public License as
  +* published by the Free Software Foundation; either version 2.1 of
  +* the License, or (at your option) any later version.
  +*
  +* This software is distributed in the hope that it will be useful,
  +* but WITHOUT ANY WARRANTY; without even the implied warranty of
  +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  +* Lesser General Public License for more details.
  +*
  +* You should have received a copy of the GNU Lesser General Public
  +* License along with this software; if not, write to the Free
  +* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  +* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  +*/
  +
  +package org.jboss.test.remoting.transport.socket.timeout;
  +
  +import org.jboss.jrunit.harness.TestDriver;
  +
  +/**
  + * @author <a href="mailto:tom.elrod at jboss.com">Tom Elrod</a>
  + */
  +public class SocketQuickDisconnectTestCase extends TestDriver
  +{
  +   public void declareTestClasses()
  +   {
  +      addTestClasses(SocketQuickDisconnectClient.class.getName(),
  +                     1,
  +                     SocketQuickDisconnectServer.class.getName());
  +   }
  +   protected long getResultsTimeout()
  +   {
  +      return 100000;
  +   }
  +}
  \ No newline at end of file
  
  
  
  1.1.2.1   +40 -0     JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/timeout/Attic/SocketQuickDisconnectClient.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: SocketQuickDisconnectClient.java
  ===================================================================
  RCS file: SocketQuickDisconnectClient.java
  diff -N SocketQuickDisconnectClient.java
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ SocketQuickDisconnectClient.java	21 Feb 2007 09:45:36 -0000	1.1.2.1
  @@ -0,0 +1,40 @@
  +/*
  +* JBoss, Home of Professional Open Source
  +* Copyright 2005, JBoss Inc., and individual contributors as indicated
  +* by the @authors tag. See the copyright.txt in the distribution for a
  +* full listing of individual contributors.
  +*
  +* This is free software; you can redistribute it and/or modify it
  +* under the terms of the GNU Lesser General Public License as
  +* published by the Free Software Foundation; either version 2.1 of
  +* the License, or (at your option) any later version.
  +*
  +* This software is distributed in the hope that it will be useful,
  +* but WITHOUT ANY WARRANTY; without even the implied warranty of
  +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  +* Lesser General Public License for more details.
  +*
  +* You should have received a copy of the GNU Lesser General Public
  +* License along with this software; if not, write to the Free
  +* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  +* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  +*/
  +package org.jboss.test.remoting.transport.socket.timeout;
  +
  +import org.jboss.test.remoting.timeout.QuickDisconnectClientParent;
  +
  +
  +/** 
  + * @author <a href="ron.sigal at jboss.com">Ron Sigal</a>
  + * @version $Revision: 1.1.2.1 $
  + * <p>
  + * Copyright Feb 17, 2007
  + * </p>
  + */
  +public class SocketQuickDisconnectClient extends QuickDisconnectClientParent
  +{
  +   protected String getTransport()
  +   {
  +      return "socket";
  +   }
  +}
  
  
  
  1.1.2.1   +53 -0     JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/timeout/Attic/SocketQuickDisconnectServer.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: SocketQuickDisconnectServer.java
  ===================================================================
  RCS file: SocketQuickDisconnectServer.java
  diff -N SocketQuickDisconnectServer.java
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ SocketQuickDisconnectServer.java	21 Feb 2007 09:45:36 -0000	1.1.2.1
  @@ -0,0 +1,53 @@
  +/*
  +* JBoss, Home of Professional Open Source
  +* Copyright 2005, JBoss Inc., and individual contributors as indicated
  +* by the @authors tag. See the copyright.txt in the distribution for a
  +* full listing of individual contributors.
  +*
  +* This is free software; you can redistribute it and/or modify it
  +* under the terms of the GNU Lesser General Public License as
  +* published by the Free Software Foundation; either version 2.1 of
  +* the License, or (at your option) any later version.
  +*
  +* This software is distributed in the hope that it will be useful,
  +* but WITHOUT ANY WARRANTY; without even the implied warranty of
  +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  +* Lesser General Public License for more details.
  +*
  +* You should have received a copy of the GNU Lesser General Public
  +* License along with this software; if not, write to the Free
  +* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  +* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  +*/
  +package org.jboss.test.remoting.transport.socket.timeout;
  +
  +import org.jboss.test.remoting.timeout.QuickDisconnectServerParent;
  +
  +/** 
  + * @author <a href="ron.sigal at jboss.com">Ron Sigal</a>
  + * @version $Revision: 1.1.2.1 $
  + * <p>
  + * Copyright Feb 18, 2007
  + * </p>
  + */
  +public class SocketQuickDisconnectServer extends QuickDisconnectServerParent
  +{
  +   public static void main(String[] args)
  +   {
  +      try
  +      {
  +         SocketQuickDisconnectServer server = new SocketQuickDisconnectServer();
  +         server.setUp();
  +         Thread.sleep(100000);
  +      }
  +      catch (Exception e)
  +      {
  +         e.printStackTrace();
  +      }
  +   }
  +
  +   protected String getTransport()
  +   {
  +      return "socket";
  +   }
  +}
  
  
  



More information about the jboss-cvs-commits mailing list