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

Tom Elrod tom.elrod at jboss.com
Tue Jan 30 16:16:42 EST 2007


  User: telrod  
  Date: 07/01/30 16:16:42

  Added:       src/tests/org/jboss/test/remoting/transport/socket/timeout/oneway/jboss   
                        Tag: remoting_2_x TimeoutTestCase.java
                        TimeoutServerTest.java TimeoutClientTest.java
  Log:
  updated test cases for timeout to have a package for java serialization and one for jboss serialization
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.1   +37 -0     JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/timeout/oneway/jboss/Attic/TimeoutTestCase.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: TimeoutTestCase.java
  ===================================================================
  RCS file: TimeoutTestCase.java
  diff -N TimeoutTestCase.java
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ TimeoutTestCase.java	30 Jan 2007 21:16:42 -0000	1.1.2.1
  @@ -0,0 +1,37 @@
  +/*
  +* JBoss, a division of Red Hat
  +* Copyright 2006, Red Hat Middleware, LLC, 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.oneway.jboss;
  +
  +import org.jboss.jrunit.harness.TestDriver;
  +
  +/**
  + * @author <a href="mailto:tom at jboss.org">Tom Elrod</a>
  + */
  +public class TimeoutTestCase extends TestDriver
  +{
  +   public void declareTestClasses()
  +   {
  +      addTestClasses(TimeoutClientTest.class.getName(),
  +                     1,
  +                     TimeoutServerTest.class.getName());
  +   }
  +}
  \ No newline at end of file
  
  
  
  1.1.2.1   +67 -0     JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/timeout/oneway/jboss/Attic/TimeoutServerTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: TimeoutServerTest.java
  ===================================================================
  RCS file: TimeoutServerTest.java
  diff -N TimeoutServerTest.java
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ TimeoutServerTest.java	30 Jan 2007 21:16:42 -0000	1.1.2.1
  @@ -0,0 +1,67 @@
  +/*
  +* JBoss, a division of Red Hat
  +* Copyright 2006, Red Hat Middleware, LLC, 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.oneway.jboss;
  +
  +import org.apache.log4j.Logger;
  +import org.apache.log4j.Level;
  +import org.apache.log4j.PatternLayout;
  +import org.apache.log4j.ConsoleAppender;
  +import org.jboss.logging.XLevel;
  +import org.jboss.test.remoting.transport.socket.timeout.oneway.AbstractTimeoutServerTest;
  +
  +/**
  + * @author <a href="mailto:tom at jboss.org">Tom Elrod</a>
  + */
  +public class TimeoutServerTest extends AbstractTimeoutServerTest
  +{
  +   protected String getLocator()
  +   {
  +      return "socket://localhost:5700/?serializationtype=jboss&timeout=" + timeout;
  +   }
  +
  +   public static void main(String[] args)
  +   {
  +
  +//      Logger.getLogger("org.jboss.remoting").setLevel(Level.DEBUG);
  +      Logger.getLogger("org.jboss.remoting").setLevel(XLevel.TRACE);
  +      Logger.getLogger("org.jboss.test.remoting").setLevel(Level.DEBUG);
  +      String pattern = "[%d{ABSOLUTE}] [%t] %5p (%F:%L) - %m%n";
  +      PatternLayout layout = new PatternLayout(pattern);
  +      ConsoleAppender consoleAppender = new ConsoleAppender(layout);
  +      Logger.getRootLogger().addAppender(consoleAppender);
  +
  +      AbstractTimeoutServerTest test = new TimeoutServerTest();
  +      try
  +      {
  +         test.setUp();
  +
  +         Thread.currentThread().sleep(600000);
  +
  +         test.tearDown();
  +      }
  +      catch (Exception e)
  +      {
  +         e.printStackTrace();
  +      }
  +   }
  +
  +}
  \ No newline at end of file
  
  
  
  1.1.2.1   +57 -0     JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/timeout/oneway/jboss/Attic/TimeoutClientTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: TimeoutClientTest.java
  ===================================================================
  RCS file: TimeoutClientTest.java
  diff -N TimeoutClientTest.java
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ TimeoutClientTest.java	30 Jan 2007 21:16:42 -0000	1.1.2.1
  @@ -0,0 +1,57 @@
  +/*
  +* JBoss, a division of Red Hat
  +* Copyright 2006, Red Hat Middleware, LLC, 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.oneway.jboss;
  +
  +import org.jboss.test.remoting.transport.socket.timeout.oneway.AbstractTimeoutClientTest;
  +import org.jboss.logging.XLevel;
  +import org.apache.log4j.Logger;
  +import org.apache.log4j.Level;
  +import org.apache.log4j.PatternLayout;
  +import org.apache.log4j.ConsoleAppender;
  +
  +/**
  + * @author <a href="mailto:tom at jboss.org">Tom Elrod</a>
  + */
  +public class TimeoutClientTest extends AbstractTimeoutClientTest
  +{
  +
  +   protected String getLocator()
  +   {
  +      return "socket://localhost:5700/?serializationtype=jboss";
  +   }
  +
  +   public static void main(String[] args)
  +   {
  +
  +//      Logger.getLogger("org.jboss.remoting").setLevel(Level.DEBUG);
  +      Logger.getLogger("org.jboss.remoting").setLevel(XLevel.TRACE);
  +      Logger.getLogger("org.jboss.test.remoting").setLevel(Level.DEBUG);
  +      String pattern = "[%d{ABSOLUTE}] [%t] %5p (%F:%L) - %m%n";
  +      PatternLayout layout = new PatternLayout(pattern);
  +      ConsoleAppender consoleAppender = new ConsoleAppender(layout);
  +      Logger.getRootLogger().addAppender(consoleAppender);
  +
  +      AbstractTimeoutClientTest test = new TimeoutClientTest();
  +      test.testClientCalls();
  +   }
  +
  +}
  \ No newline at end of file
  
  
  



More information about the jboss-cvs-commits mailing list