Clover coverage report -
Coverage timestamp: Thu Jul 5 2007 20:02:32 EDT
file stats: LOC: 55   Methods: 5
NCLOC: 34   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
IdObject.java 0% 0% 0% 0%
coverage
 1    /*
 2    * JBoss, the OpenSource J2EE webOS
 3    *
 4    * Distributable under LGPL license.
 5    * See terms of license at gnu.org.
 6    */
 7    package org.jboss.cache.pojo.test;
 8   
 9    /**
 10    * Key object that overrides the hashCode that can cause problem for aop.
 11    */
 12    // We are using JDK1.5 annotation.
 13    @org.jboss.cache.pojo.annotation.Replicable
 14    public class IdObject
 15    {
 16   
 17    private String id;
 18   
 19  0 public IdObject()
 20    {
 21    } // IdObject
 22   
 23  0 public IdObject(String aId)
 24    {
 25  0 id = aId;
 26    } // IdObject
 27   
 28   
 29  0 public String toString()
 30    {
 31  0 return id;
 32    } // toString
 33   
 34  0 public boolean equals(Object aObject)
 35    {
 36  0 boolean result = false;
 37   
 38  0 if ((aObject != null) &&
 39    (aObject.getClass().getName().equals(this.getClass().getName())))
 40    {
 41  0 if (id.equals(((IdObject) aObject).id))
 42    {
 43  0 result = true;
 44    } // if
 45    } // if
 46   
 47  0 return result;
 48    } // equals
 49   
 50  0 public int hashCode()
 51    {
 52  0 return id.hashCode();
 53    } // hashCode
 54    } // class IdObject
 55