User: osh     
  Date: 01/01/31 12:26:53

  Modified:    src/main/org/jboss/test/cts/test StatefulSessionTest.java
  Log:
  Fixed one bug to expose another one in JBoss.
  
  Revision  Changes    Path
  1.5       +6 -24     
jbosstest/src/main/org/jboss/test/cts/test/StatefulSessionTest.java
  
  Index: StatefulSessionTest.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/jbosstest/src/main/org/jboss/test/cts/test/StatefulSessionTest.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- StatefulSessionTest.java  2001/01/25 02:45:41     1.4
  +++ StatefulSessionTest.java  2001/01/31 20:26:53     1.5
  @@ -12,38 +12,20 @@
   import java.rmi.*;
   import javax.security.auth.login.*;
   import org.jboss.test.cts.interfaces.*;
  +import org.jboss.test.cts.keys.AccountPK;
   import org.jboss.test.util.ejb.*;
   
   
   /**
    *
    *   @see <related>
  - *   @author $Author: peter $
  - *   @version $Revision: 1.4 $
  + *   @author $Author: osh $
  + *   @version $Revision: 1.5 $
    */
   
   public class StatefulSessionTest
      extends junit.framework.TestCase
   {
  -   class DummyPK
  -      implements Serializable
  -   {
  -      public String key;
  -
  -      /**
  -       * Constructor DummyPK
  -       *
  -       *
  -       * @param key
  -       *
  -       */
  -
  -      public DummyPK (String key)
  -      {
  -         this.key = key;
  -      }
  -   }
  -
      static boolean deployed = false;
   
      /**
  @@ -192,7 +174,7 @@
   
            sessionBean = home.create();
   
  -         home.remove(new DummyPK("pk"));
  +         home.remove(new AccountPK("pk"));
         }
         catch (javax.ejb.RemoveException rmEx)
         {
  @@ -461,18 +443,18 @@
            }
            catch (javax.naming.NamingException ne)
            {
  -            fail("Naming excepiton failure");
               ne.printStackTrace();
  +            fail("Naming exception failure");
            }
            catch (java.rmi.ServerException se)
            {
  -            fail("Server exception");
               se.printStackTrace();
  +            fail("Server exception");
            }
            catch (java.rmi.RemoteException re)
            {
  -            fail("Remote exception");
               re.printStackTrace();
  +            fail("Remote exception");
            }
            finally
            {
  
  
  

Reply via email to