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

nz.ac.waikato.modeljunit.command.RemoveCalcTableCommand Maven / Gradle / Ivy

Go to download

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.StoryTest;
import nz.ac.waikato.modeljunit.storytest.StoryTestInterface;

public class RemoveCalcTableCommand
   extends AbstractUndoableCommand
{
   public static final long serialVersionUID = 1;
   
   private final StoryTest mStory;
   private final StoryTestInterface mTable;
   private final int mIndex;
/**
Basic constructor for SetValueCommand
*/
   public RemoveCalcTableCommand(StoryTest story, StoryTestInterface Table)
   {
      mStory = story;
      mTable = Table;
      mIndex = story.getComponents().indexOf(Table);
   }
   
   public void execute()
   {
      mStory.remove(mIndex);
   }
   
   public void undo()
   {
      super.undo();
      mStory.add(mIndex, mTable);
   }
   
   public String getName()
   {
      return "Add Component";
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy