Clover coverage report -
Coverage timestamp: Thu Jul 5 2007 20:02:32 EDT
file stats: LOC: 99   Methods: 13
NCLOC: 67   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
NetworkElement.java - 31.2% 38.5% 34.5%
coverage 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    import java.util.Date;
 10   
 11    /**
 12    * Can represent both software or devices (e.g., sensor).
 13    * <p>This object is used to illustrate the pojo cache capability of PojoCache. Note the absence of <code>Serializable</code>
 14    * interface.</p>
 15    *
 16    * @author <a href="mailto:ben.wang@jboss.com">Ben Wang</a>
 17    */
 18    // We are using JDK1.5 annotation.
 19    @org.jboss.cache.pojo.annotation.Replicable
 20    public class NetworkElement
 21    {
 22    // Unique id
 23    int id_;
 24    // Element type
 25    int type_;
 26    String name_;
 27    int status_;
 28    Date startDate_;
 29    NetworkNode parentNode_;
 30   
 31  0 public int getId()
 32    {
 33  0 return id_;
 34    }
 35   
 36  0 public void setId(int id)
 37    {
 38  0 id_ = id;
 39    }
 40   
 41  0 public int getType()
 42    {
 43  0 return type_;
 44    }
 45   
 46  0 public void setType(int type)
 47    {
 48  0 type_ = type;
 49    }
 50   
 51  0 public String getName()
 52    {
 53  0 return name_;
 54    }
 55   
 56  24 public void setName(String name)
 57    {
 58  24 name_ = name;
 59    }
 60   
 61  20 public int getStatus()
 62    {
 63  20 return status_;
 64    }
 65   
 66  10 public void setStatus(int status)
 67    {
 68  10 status_ = status;
 69    }
 70   
 71  0 public Date getStartDate()
 72    {
 73  0 return startDate_;
 74    }
 75   
 76  0 public void setStartDate(Date startDate)
 77    {
 78  0 startDate_ = startDate;
 79    }
 80   
 81  24 public NetworkNode getParentNode()
 82    {
 83  24 return parentNode_;
 84    }
 85   
 86  24 public void setParentNode(NetworkNode parentNode)
 87    {
 88  24 parentNode_ = parentNode;
 89    }
 90   
 91  0 public String toString()
 92    {
 93  0 StringBuffer sb = new StringBuffer();
 94  0 sb.append(" name= ").append(getName()).append(" status= ").append(getStatus());
 95  0 sb.append(" parentNode= ").append(getParentNode().getName());
 96  0 return sb.toString();
 97    }
 98   
 99    }