Examples of NewFactorTableFactorCommand


Examples of org.emftrace.emffit.ui.commands.factortables.NewFactorTableFactorCommand

    EMFfitCommand command;
   
    switch (newModelElementWizardPage.getSelectionIndex()) {
    case 0: //Factor

      command = new NewFactorTableFactorCommand(factorTable, newModelElementWizardPage.getName(),"2");
      break;

    case 1: //FactorCategory

      command = new NewFactorTableCategoryCommand(factorTable, newModelElementWizardPage.getName());
View Full Code Here

Examples of org.emftrace.emffit.ui.commands.factortables.NewFactorTableFactorCommand

public class NewFactorTableFactorCommandTest extends EMFfitTestCase{

  @Test
  public void testDoRun() {   
    new NewFactorTableFactorCommand(factorTable, "new foo factor", "2").runWithoutUnicaseCommand();
    assertEquals(3, factorTable.getEntries().size());
    Factor newFactor = (Factor) factorTable.getEntries().get(2);
    assertEquals("new foo factor", newFactor.getName());
    assertEquals("O3", newFactor.getNumbering());
    assertEquals("2", newFactor.getPriority());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.