User: peter   
  Date: 01/02/18 08:04:46

  Modified:    src/main/org/jboss/test/cts/keys AccountPK.java
  Log:
  Added some callback tests for BMP.  Added support for CMP
  testing.
  
  Revision  Changes    Path
  1.2       +15 -0     jbosstest/src/main/org/jboss/test/cts/keys/AccountPK.java
  
  Index: AccountPK.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/jbosstest/src/main/org/jboss/test/cts/keys/AccountPK.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- AccountPK.java    2001/01/25 02:45:39     1.1
  +++ AccountPK.java    2001/02/18 16:04:46     1.2
  @@ -43,6 +43,21 @@
      {
         return this.key;
      }
  +
  +   /**
  +    * Method equals
  +    *
  +    *
  +    * @return
  +    *
  +    */
  +   public boolean equals( Object obj )
  +   { 
  +       Class cl = obj.getClass( );
  +       AccountPK pk = (AccountPK)obj;
  +       return ( (cl.isInstance(this)) && 
(this.key.trim().compareTo(pk.getKey().trim()) == 0) );
  +   }
  +      
   }
   
   
  
  
  

Reply via email to