Clover coverage report -
Coverage timestamp: Thu Jul 5 2007 20:02:32 EDT
file stats: LOC: 62   Methods: 7
NCLOC: 36   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
Link.java - 87.5% 85.7% 86.7%
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   
 10    /**
 11    * Test class for PojoCache for circular references.
 12    * Link is a POJO that will be instrumentet with CacheFieldInterceptor
 13    *
 14    * @version $Revision: 1.1 $
 15    * <p>Below is the annotation that signifies this class is "prepared" under JBossAop. This is used in
 16    * conjunction with a special jboss-aop.xml (supplied by JBossCache). In addition, this is JDK1.4 style,
 17    * so a annoc Ant build target is needed to pre-compile it.</p>
 18    * <p>To use this approach, just apply this line to your pojo and run annoc (and possibly aopc).</p>
 19    */
 20    // We are using JDK1.5 annotation.
 21    @org.jboss.cache.pojo.annotation.Replicable
 22    public class Link
 23    {
 24    Link link_;
 25    String name_;
 26   
 27  12 public Link()
 28    {
 29    }
 30   
 31  30 public Link(String name)
 32    {
 33  30 name_ = name;
 34    }
 35   
 36  0 public void setName(String linkName)
 37    {
 38  0 name_ = linkName;
 39    }
 40   
 41  47 public String getName()
 42    {
 43  47 return name_;
 44    }
 45   
 46  35 public void setLink(Link link)
 47    {
 48  35 link_ = link;
 49    }
 50   
 51  29 public Link getLink()
 52    {
 53  29 return link_;
 54    }
 55   
 56  1 public String toString()
 57    {
 58  1 StringBuffer buf = new StringBuffer();
 59  1 buf.append("Link: name " + name_);
 60  1 return buf.toString();
 61    }
 62    }