Clover coverage report -
Coverage timestamp: Thu Jul 5 2007 20:02:32 EDT
file stats: LOC: 47   Methods: 6
NCLOC: 39   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
StateItemImpl.java 100% 88.9% 83.3% 88.2%
coverage coverage
 1    package org.jboss.cache.pojo.test.propagation.impl;
 2   
 3    import org.jboss.cache.pojo.test.propagation.PropagationRule;
 4    import org.jboss.cache.pojo.test.propagation.StateItem;
 5   
 6    public class StateItemImpl implements StateItem
 7    {
 8    private long itemId_;
 9    private long state_;
 10   
 11  20 public StateItemImpl()
 12    {
 13    }
 14   
 15  42 public StateItemImpl(long itemId)
 16    {
 17  42 this.itemId_ = itemId;
 18  42 this.state_ = PropagationRule.STATE_CLEAR;
 19    }
 20   
 21  362 public long getState()
 22    {
 23  362 return this.state_;
 24    }
 25   
 26  108 public boolean setState(long state)
 27    {
 28  108 if (this.state_ != state)
 29    {
 30  48 state_ = state;
 31  48 return STATE_CHANGED;
 32    } else
 33    {
 34  60 return STATE_NOT_CHANGED;
 35    }
 36    }
 37   
 38  128 public long getItemId()
 39    {
 40  128 return this.itemId_;
 41    }
 42   
 43  0 public String toString()
 44    {
 45  0 return "Id: " + itemId_ + " state: " + state_ + "\n";
 46    }
 47    }