
nz.ac.waikato.modeljunit.storytest.StoryTest 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.storytest;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class StoryTest
extends AbstractSubject
implements StoryTestInterface
{
/**
*
*/
private static final long serialVersionUID = 1L;
private List mComponents;
public StoryTest()
{
mComponents = new ArrayList();
}
public void add(int index, StoryTestInterface si)
{
mComponents.add(index, si);
inform();
}
public void add(StoryTestInterface si)
{
add(mComponents.size(), si);
}
public void remove(int index)
{
mComponents.remove(index);
inform();
}
public List getComponents()
{
return Collections.unmodifiableList(mComponents);
}
public StoryTestInterface getComponent(int index)
{
return mComponents.get(index);
}
public Object accept(StoryTestVisitor> visitor, Object other)
{
return visitor.visit(this, other);
}
public String toHTML()
{
StringBuffer sb = new StringBuffer();
sb.append("\n");
sb.append("\n");
for (StoryTestInterface sti : mComponents) {
sb.append(sti.toHTML());
}
sb.append("\n");
sb.append("\n");
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy