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

Ron Sigal ron_sigal at yahoo.com
Thu Oct 11 02:06:56 EDT 2007


  User: rsigal  
  Date: 07/10/11 02:06:56

  Added:       src/tests/org/jboss/test/remoting/transport/servlet  Tag:
                        remoting_2_2_2_GA_CP
                        ServletInvokerExceptionTestClient.java
  Log:
  JBREM-813: New unit test.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.6.2   +59 -0     JBossRemoting/src/tests/org/jboss/test/remoting/transport/servlet/Attic/ServletInvokerExceptionTestClient.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ServletInvokerExceptionTestClient.java
  ===================================================================
  RCS file: ServletInvokerExceptionTestClient.java
  diff -N ServletInvokerExceptionTestClient.java
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ ServletInvokerExceptionTestClient.java	11 Oct 2007 06:06:56 -0000	1.1.6.2
  @@ -0,0 +1,59 @@
  +/*
  +* 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.servlet;
  +
  +import org.jboss.test.remoting.transport.web.WebInvokerTestClient;
  +
  +/**
  + * This test is identical to ServletInvokerTestClient except that it, in the case
  + * when an exception is thrown on the server, ServletServerInvoker is instructed
  + * to return the actual exception.
  + * 
  + * See JBREM-813.
  + * 
  + * @author <a href="mailto:tom.elrod at jboss.com">Tom Elrod</a>
  + * @author <a href="mailto:ron.sigal at jboss.com">Ron Sigal</a>
  + */
  +public class ServletInvokerExceptionTestClient extends WebInvokerTestClient
  +{
  +   public static final Integer ERROR_RESPONSE_CODE = new Integer(500);
  +
  +   public String getLocatorURI()
  +   {
  +      return "servlet://localhost:8080/servlet-invoker/ServerInvokerServlet/?return-exception=true";
  +   }
  +
  +   public static void main(String[] args)
  +   {
  +      ServletInvokerExceptionTestClient client = new ServletInvokerExceptionTestClient();
  +      try
  +      {
  +         client.testPostInvocation();
  +      }
  +      catch (Exception e)
  +      {
  +         e.printStackTrace();
  +      }
  +   }
  +
  +}
  \ No newline at end of file
  
  
  



More information about the jboss-cvs-commits mailing list