[jboss-cvs] JBossAS SVN: r62664 - branches/JBoss_4_0_3_SP1_CP/testsuite/src/main/org/jboss/test/cluster/web/stress/web.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Apr 30 17:05:29 EDT 2007


Author: bstansberry at jboss.com
Date: 2007-04-30 17:05:28 -0400 (Mon, 30 Apr 2007)
New Revision: 62664

Modified:
   branches/JBoss_4_0_3_SP1_CP/testsuite/src/main/org/jboss/test/cluster/web/stress/web/StressTestServlet.java
Log:
[ASPATCH-208] License header, exception msg fixes

Modified: branches/JBoss_4_0_3_SP1_CP/testsuite/src/main/org/jboss/test/cluster/web/stress/web/StressTestServlet.java
===================================================================
--- branches/JBoss_4_0_3_SP1_CP/testsuite/src/main/org/jboss/test/cluster/web/stress/web/StressTestServlet.java	2007-04-30 21:02:33 UTC (rev 62663)
+++ branches/JBoss_4_0_3_SP1_CP/testsuite/src/main/org/jboss/test/cluster/web/stress/web/StressTestServlet.java	2007-04-30 21:05:28 UTC (rev 62664)
@@ -1,3 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.cluster.web.stress.web;
 
 import java.io.IOException;
@@ -55,7 +76,7 @@
    {
       HttpSession sess = req.getSession();
       if (sess == null)
-         throw new RuntimeException("Session already exists");
+         throw new RuntimeException("Session does not exist");
       
       if (sess.getAttribute(BYTES) != null)
          throw new RuntimeException("bytes already stored");
@@ -69,8 +90,8 @@
    {
       HttpSession sess = req.getSession();
       if (sess == null)
-         throw new RuntimeException("Session already exists");
-   
+         throw new RuntimeException("Session does not exists");
+      
       byte[] bytes = (byte[]) sess.getAttribute(BYTES);
       if (bytes == null)
          throw new RuntimeException("bytes not stored");




More information about the jboss-cvs-commits mailing list