Clover coverage report - Maven Clover report
Coverage timestamp: Sun Mar 18 2007 17:42:32 CET
file stats: LOC: 36   Methods: 2
NCLOC: 17   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
CompositeStep.java 100% 100% 100% 100%
coverage
 1    package com.agical.rmock.core.strategy.impl;
 2   
 3    import java.util.Iterator;
 4    import java.util.LinkedList;
 5    import java.util.List;
 6   
 7    import com.agical.rmock.core.strategy.TestStep;
 8    /**
 9    * This step runs several substeps in sequence.
 10    *
 11    * <hr/>
 12    * (c) 2005 Agical AB
 13    * @author joakim.ohlrogge
 14    */
 15    public class CompositeStep implements TestStep {
 16    private List steps = new LinkedList();
 17   
 18    /**
 19    * Runs all configured steps
 20    */
 21  564 public void run() throws Throwable {
 22  564 for (Iterator iter = steps.iterator(); iter.hasNext();) {
 23  2689 TestStep step = (TestStep) iter.next();
 24  2689 step.run();
 25    }
 26    }
 27   
 28    /**
 29    * Adds a substep to run
 30    * @param step The step to run
 31    */
 32  2762 public void addStep(TestStep step) {
 33  2762 steps.add(step);
 34    }
 35   
 36    }