Package org.emftrace.emffit.ui.commands.issuecards

Examples of org.emftrace.emffit.ui.commands.issuecards.NewIssueCardStrategyCommand


public class NewIssueCardStrategyCommandTest extends EMFfitTestCase{

  @Test
  public void testDoRunForNullItem() {
    new NewIssueCardStrategyCommand(issueCard,null).runWithoutUnicaseCommand();
    assertEquals(4, issueCard.getStrategies().size());
    assertEquals(null, issueCard.getStrategies().get(3).getName());
    assertNotNull(issueCard.getStrategies().get(3).getDescription());
  }
View Full Code Here


  }
 
  @Test
  public void testDoRunForNonNullItem() {
 
    new NewIssueCardStrategyCommand(issueCard, "new foo strategy").runWithoutUnicaseCommand();
    assertEquals(4, issueCard.getStrategies().size());
    assertEquals("new foo strategy", issueCard.getStrategies().get(3).getName());
    assertNotNull(issueCard.getStrategies().get(3).getDescription());
    assertEquals(project, ModelUtil.getProject(issueCard.getStrategies().get(3)));
  }
View Full Code Here

   * @see org.eclipse.jface.wizard.Wizard#performFinish()
   */
  @Override
  public boolean performFinish() { 
   
    new NewIssueCardStrategyCommand(issueCard,
        newModelElementWizardPage.getName()).runAsJob();
    return true;

  }
View Full Code Here

TOP

Related Classes of org.emftrace.emffit.ui.commands.issuecards.NewIssueCardStrategyCommand

Copyright © 2018 www.massapicom. 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.