Clover coverage report -
Coverage timestamp: Sat Jul 7 2007 16:41:13 CEST
file stats: LOC: 71   Methods: 1
NCLOC: 19   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
StdParameters.java 100% 100% 100% 100%
coverage
 1    /**
 2    * JTRunner is free software; you can redistribute it and/or modify it under the
 3    * terms of the GNU General Public License as published by the Free Software
 4    * Foundation; either version 2, or (at your option) any later version.
 5    */
 6   
 7    package jtr.config;
 8   
 9    import java.io.Serializable;
 10   
 11    /**
 12    * This class simply provides the set of <code>String</code>s representing
 13    * the JTR standard parameters required by each <code>IRunner</code> at
 14    * runtime.
 15    *
 16    * @author Francesco Russo (frusso@dev.java.net)
 17    * @version 4.0
 18    * @since 1.0
 19    */
 20    public class StdParameters implements Serializable {
 21   
 22    /**
 23    * States whether the parameter <code>param</code> is a standard
 24    * parameter or not.
 25    *
 26    * @param param
 27    * @return <code>true</code> iff the parameter belongs to the JTR-std parameters
 28    */
 29  32186 public static boolean isStandard(RunnerConfigParam param) {
 30  32186 boolean res = false;
 31  32186 String pName = param.getName();
 32  32186 if(SLEEP_TIME.equals(pName) || RUNS.equals(pName) || ENTERPRISE.equals(pName) ||
 33    JMS.equals(pName) || WEBSERVICE.equals(pName) || BINDING.equals(pName)) {
 34  22084 res = true;
 35    }
 36  32186 return res;
 37    }
 38   
 39    /**
 40    * The sleep time to occur between two runs. (<code>sleepTime</code>)
 41    */
 42    public final static String SLEEP_TIME = "sleepTime";
 43   
 44    /**
 45    * How many runs each <code>IRunner</code> instance has to perform. (<code>runs</code>)
 46    */
 47    public final static String RUNS = "runs";
 48   
 49    /**
 50    * The enterprise configuration that should be passed to a given
 51    * <code>IRunner</code>. (<code>enterprise</code>)
 52    */
 53    public final static String ENTERPRISE = "enterprise";
 54   
 55    /**
 56    * The JMS configuration that should be passed to a given
 57    * <code>IRunner</code>. (<code>jms</code>)
 58    */
 59    public final static String JMS = "jms";
 60   
 61    /**
 62    * The WEBSERVICE configuration that should be passed to a given
 63    * <code>IRunner</code>. (<code>webservice</code>)
 64    */
 65    public final static String WEBSERVICE = "webservice";
 66   
 67    /**
 68    * The set of available webservice bindings.
 69    */
 70    public final static String BINDING = "binding";
 71    }