Clover coverage report -
Coverage timestamp: Thu Jul 5 2007 20:02:32 EDT
file stats: LOC: 42   Methods: 2
NCLOC: 13   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
MethodCallFactory.java - 50% 50% 50%
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.marshall;
 8   
 9    import java.lang.reflect.Method;
 10   
 11    /**
 12    * Factory class to create instances of org.jboss.cache.marshall.MethodCall
 13    *
 14    * @author <a href="galder.zamarreno@jboss.com">Galder Zamarreno</a>
 15    * @version $Revision: 1.6 $
 16    */
 17    public class MethodCallFactory
 18    {
 19    /**
 20    * Creates and initialised an instance of MethodCall
 21    *
 22    * @param method Method instance of the MethodCall
 23    * @param arguments list of parameters
 24    * @return a new instance of MethodCall with the method id initialised
 25    */
 26  4502205 public static MethodCall create(Method method, Object... arguments)
 27    {
 28  4502196 return new MethodCall(method, MethodDeclarations.lookupMethodId(method), arguments);
 29    }
 30   
 31    /**
 32    * Creates and initialised an instance of MethodCall
 33    *
 34    * @param method Method instance of the MethodCall
 35    * @param arguments list of parameters
 36    * @return a new instance of MethodCall with the method id set to -1 (uninitialized).
 37    */
 38  0 public static MethodCall createWithNullId(Method method, Object... arguments)
 39    {
 40  0 return new MethodCall(method, arguments);
 41    }
 42    }