Clover coverage report - Prayer Portlets - 0.1-rc4-SNAPSHOT
Coverage timestamp: Thu Aug 19 2004 18:34:34 EDT
file stats: LOC: 74   Methods: 9
NCLOC: 41   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
PrayerCategory.java 70% 87.5% 88.9% 82.9%
coverage coverage
 1   
 /*
 2   
  * Created on Jul 23, 2004
 3   
  */
 4   
 package org.marketchangers.prayer;
 5   
 
 6   
 /**
 7   
  * @author Jason Williams
 8   
  * @hibernate.class  table="PrayerCategories"
 9   
  */
 10   
 public class PrayerCategory extends PersistentObject {
 11   
 
 12   
     private String name;
 13   
     private String requestorUserId;
 14   
 
 15   
     /**
 16   
      * @hibernate.property
 17   
      * @return
 18   
      */
 19  12
     public String getName() {
 20  12
         return name;
 21   
     }
 22   
 
 23   
     /**
 24   
      * @param string
 25   
      */
 26  14
     public void setName(String string) {
 27  14
         name = string;
 28   
     }
 29  8
     public boolean equals(Object o) {
 30  8
         if (o == this) {
 31  6
             return true;
 32   
         }
 33   
 
 34  2
         if (!(o instanceof PrayerCategory)) {
 35  0
             return false;
 36   
         }
 37   
 
 38  2
         PrayerCategory other = (PrayerCategory) o;
 39  2
         return equals(this.name, other.name);
 40   
     }
 41   
 
 42  2
     private boolean equals(Object lhs, Object rhs) {
 43  2
         return lhs == null ? rhs == null : lhs.equals(rhs);
 44   
     }
 45   
 
 46  2
     public int hashCode() {
 47  2
         int result = 11;
 48  2
         result = result * 37 + hashCode(name);
 49  2
         return result;
 50   
     }
 51   
 
 52  2
     private int hashCode(Object o) {
 53  2
         return o == null ? 0 : o.hashCode();
 54   
     }
 55   
     /**
 56   
      * @hibernate.property
 57   
      * @return
 58   
      */
 59  0
     public String getRequestorUserId() {
 60  0
         return requestorUserId;
 61   
     }
 62   
 
 63   
     /**
 64   
      * @param string
 65   
      */
 66  2
     public void setRequestorUserId(String string) {
 67  2
         requestorUserId = string;
 68   
     }
 69   
 
 70  14
     public String toString() {
 71  14
         return name == null ? "" : name;
 72   
     }
 73   
 }
 74