Clover coverage report - Maven Clover report
Coverage timestamp: Sun Mar 18 2007 17:42:32 CET
file stats: LOC: 27   Methods: 2
NCLOC: 9   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
SameConstraint.java - 100% 100% 100%
coverage
 1    package com.agical.rmock.core.match.constraint;
 2   
 3   
 4   
 5    /**
 6    * <em>(c) Agical AB 2005</em>
 7    * @author joakim.ohlrogge
 8    *
 9   
 10    *
 11    * Matches objects if they are the same as the reference
 12    */
 13    public class SameConstraint extends AbstractConstraint {
 14    /**
 15    * @param reference the reference to compare other objects to
 16    */
 17  60 public SameConstraint(Object reference) {
 18  60 super("same", reference);
 19    }
 20   
 21    /**
 22    * @see com.agical.rmock.core.match.Constraint#passes(java.lang.Object)
 23    */
 24  33 public boolean passes(Object object) {
 25  33 return getReference().getObject() == object;
 26    }
 27    }