All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.testtoolinterfaces.testsuite.TestStepIteration Maven / Gradle / Ivy

There is a newer version: 0.3.11
Show newest version
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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy