org.testtoolinterfaces.testsuite.TestStepIteration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testsuite Show documentation
Show all versions of testsuite Show documentation
Test Suite classes for Test Tool Interfaces
package org.testtoolinterfaces.testsuite;
import java.util.Collection;
import org.testtoolinterfaces.utils.Trace;
/**
* Class to hold a TestStepIteration (a for each of steps).
*
* @author Arjan Kranenburg
*
*/
public class TestStepIteration extends TestStepImpl
implements TestEntryIteration {
private String itemName;
private String listName;
private Collection sequence;
/**
* Creates a TestStepIteration
*
* @param aDescription Description
* @param aSequenceNr Sequence number, to be used in a collection
* @param anItemName Name that is given to the item when iterating over the list
* @param aListName Name of the list
* @param aSequence The sequence of {@link TestStep} to do in every iteration
*/
public TestStepIteration( String aDescription,
int aSequenceNr,
String anItemName,
String aListName,
Collection aSequence )
{
super(aSequenceNr, aDescription, new ParameterArrayList());
Trace.println( Trace.CONSTRUCTOR,
"TestStepIteration(" + aDescription + ", " + aSequenceNr + ", "
+ anItemName + ", " + aListName + " )", true );
this.itemName = anItemName;
this.listName = aListName;
this.sequence = aSequence;
}
/**
* @return the itemName
*/
public String getItemName() {
return itemName;
}
/**
* @return the list name
*/
public String getListName() {
return listName;
}
/**
* @return the sequence
*/
public Collection getSequence() {
return sequence;
}
}