
nz.ac.waikato.modeljunit.command.AddRowCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of paramedit Show documentation
Show all versions of paramedit Show documentation
A tool for editing test parameters and suggesting additional parameter values.
It provides several heuristics (including PairWise and MC/DC) for analyzing
a set of input tuples and suggesting missing/extra values.
The newest version!
package nz.ac.waikato.modeljunit.command;
import nz.ac.waikato.modeljunit.storytest.CalcTable;
public class AddRowCommand
extends AbstractUndoableCommand
{
/**
*
*/
private static final long serialVersionUID = 1L;
private final CalcTable mTable;
private final int mRow;
/**
Basic constructor for SetValueCommand
*/
public AddRowCommand(CalcTable Table, int Row)
{
mTable = Table;
mRow = Row;
}
public AddRowCommand(CalcTable Table)
{
this(Table, Table.rows());
}
public void execute()
{
mTable.addRow(mRow);
}
public void undo()
{
super.undo();
mTable.removeRow(mRow);
}
public String getName()
{
return "Add Row";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy