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

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


      break;
    default:
      return false;
    }
 
    new NewIssueCardRelatedIssueCommand(issueCard, newItem).runAsJob();

    return true;
  }
View Full Code Here


   *
   * @see org.eclipse.jface.wizard.Wizard#performFinish()
   */
  @Override
  public boolean performFinish() {
    new NewIssueCardRelatedIssueCommand(issueCard,
        (Item) selectModelElementsWizardPage.getSelectedModelElement())
        .runThreaded();
    return true;
  }
View Full Code Here

public class NewIssueCardRelatedIssueCommandTest extends EMFfitTestCase{

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

  }
 
  @Test
  public void testDoRunForNonNullItem() {
    Factor factor = EMFfitModelFactory.eINSTANCE.createFactor();
    new NewIssueCardRelatedIssueCommand(issueCard, factor).runWithoutUnicaseCommand();
    assertEquals(4, issueCard.getRelatedIssues().size());
    assertEquals(factor, issueCard.getRelatedIssues().get(3).getIssue());
    assertNotNull(issueCard.getRelatedIssues().get(3).getDescription());
    assertEquals(project, ModelUtil.getProject(issueCard.getRelatedIssues().get(3).getIssue()));
  }
View Full Code Here

TOP

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

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.