Clover coverage report - Maven Clover report
Coverage timestamp: Sun Mar 18 2007 17:42:32 CET
file stats: LOC: 107   Methods: 13
NCLOC: 52   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
ExpectationImpl.java - 100% 100% 100%
coverage
 1    package com.agical.rmock.core.expectation;
 2   
 3    import com.agical.rmock.core.Action;
 4    import com.agical.rmock.core.ExpectationVisitor;
 5    import com.agical.rmock.core.expectation.modification.ModifiableExpectation;
 6    import com.agical.rmock.core.match.Expression;
 7    import com.agical.rmock.core.match.Multiplicity;
 8   
 9    /**
 10    * <em>(c) Agical AB 2005</em>
 11    * @author joakim.ohlrogge
 12    *
 13   
 14    */
 15    public class ExpectationImpl implements ModifiableExpectation {
 16   
 17    private Multiplicity multiplicity;
 18    private String method;
 19    private String id;
 20    private Expression[] arguments;
 21    private Action action;
 22   
 23    /**
 24    * @param constraint
 25    */
 26  755 public void setId(String id) {
 27  755 this.id = id;
 28    }
 29   
 30    /**
 31    * @return Returns the id.
 32    */
 33  1255 public String getId() {
 34  1255 return id;
 35    }
 36   
 37    /**
 38    * @param constraint
 39    */
 40  755 public void setMethod(String method) {
 41  755 this.method = method;
 42    }
 43   
 44    /**
 45    * @return Returns the method.
 46    */
 47  974 public String getMethod() {
 48  974 return method;
 49    }
 50   
 51    /**
 52    * @param multiplicity
 53    */
 54  842 public void setMultiplicity(Multiplicity multiplicity) {
 55  842 this.multiplicity = multiplicity;
 56    }
 57   
 58    /**
 59    * @return Returns the multiplicity.
 60    */
 61  2329 public Multiplicity getMultiplicity() {
 62  2329 return multiplicity;
 63    }
 64   
 65    /**
 66    * @param argumentConstrants
 67    */
 68  755 public void setArguments(Expression[] argumentConstrants) {
 69  755 this.arguments = argumentConstrants;
 70    }
 71   
 72    /**
 73    * @return Returns the argumentConstrants.
 74    */
 75  1059 public Expression[] getArguments() {
 76  1059 return arguments;
 77    }
 78   
 79    /**
 80    * @param action The action to set.
 81    */
 82  1064 public void setAction(Action action) {
 83  1064 this.action = action;
 84    }
 85   
 86    /**
 87    * @return Returns the action.
 88    */
 89  936 public Action getAction() {
 90  936 return action;
 91    }
 92   
 93    /**
 94    * @see com.agical.rmock.core.Expectation#accept(com.agical.rmock.core.expectation.section.ExpectationVisitor)
 95    */
 96  2596 public boolean accept(ExpectationVisitor expectationVisitor, boolean available) {
 97  2596 return expectationVisitor.visit(this, available );
 98    }
 99   
 100  549 public boolean canMatch() {
 101  549 return multiplicity.canMatch();
 102    }
 103   
 104  1222 public boolean isSatisfied() {
 105  1222 return multiplicity.isSatisfied();
 106    }
 107    }