Clover coverage report - jMock - 1.0-beta1
Coverage timestamp: Sat Nov 29 2003 19:35:59 GMT
file stats: LOC: 24   Methods: 3
NCLOC: 17   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
ReturnStub.java - 66.7% 66.7% 66.7%
coverage coverage
 1   
 /* Copyright (c) 2000-2003, jMock.org. See bundled LICENSE.txt */
 2   
 package org.jmock.stub;
 3   
 
 4   
 import org.jmock.Stub;
 5   
 import org.jmock.dynamic.Invocation;
 6   
 
 7   
 public class ReturnStub
 8   
         extends CallStub
 9   
         implements Stub {
 10   
     private Object result;
 11   
 
 12  16
     public ReturnStub(Object result) {
 13  16
         this.result = result;
 14   
     }
 15   
 
 16  8
     public Object invoke(Invocation invocation) throws Throwable {
 17  8
         return result;
 18   
     }
 19   
 
 20  0
     public String getDescription() {
 21  0
         return "returns <" + result + ">";
 22   
     }
 23   
 }
 24