Package org.emftrace.metamodel.EMFfitModel

Examples of org.emftrace.metamodel.EMFfitModel.Term


    //setup
    Strategy strategy = issueCard.getStrategies().get(0);
    Hypertext newDescription = EMFfitModelFactory.eINSTANCE.createHypertext();
   
    String newDescriptionContent = "new foo";
    Term term = EMFfitModelFactory.eINSTANCE.createTerm();
    term.setVisibleContent(newDescriptionContent);
    newDescription.getContent().add(term);
   
    //run command
    new UpdateStrategyDescriptionCommand(strategy, newDescription).runWithoutUnicaseCommand();
   
View Full Code Here


    strategy.setDescription(null);
   
    Hypertext newDescription = EMFfitModelFactory.eINSTANCE.createHypertext();
   
    String newDescriptionContent = "new foo";
    Term term = EMFfitModelFactory.eINSTANCE.createTerm();
    term.setVisibleContent(newDescriptionContent);
    newDescription.getContent().add(term);
   
    //run command
    new UpdateStrategyDescriptionCommand(strategy, newDescription).runWithoutUnicaseCommand();
   
View Full Code Here

  public void testDoRun() {
    //setup
    String content = "foo bar";
   
    Hypertext newFlexibility = EMFfitModelFactory.eINSTANCE.createHypertext();
    Term term = EMFfitModelFactory.eINSTANCE.createTerm();
    term.setVisibleContent(content);
    newFlexibility.getContent().add(term);
   
    Factor factor = (Factor)((FactorCategory)factorTable.getEntries().get(1)).getChildren().get(0);
   
    //run command
View Full Code Here

  public void testDoRunForNullFlexibility() {
    //setup
    String content = "foo bar";
   
    Hypertext newFlexibility = EMFfitModelFactory.eINSTANCE.createHypertext();
    Term term = EMFfitModelFactory.eINSTANCE.createTerm();
    term.setVisibleContent(content);
    newFlexibility.getContent().add(term);
   
    Factor factor = (Factor)((FactorCategory)factorTable.getEntries().get(1)).getChildren().get(0);
    factor.setFlexibility(null);
   
View Full Code Here

public class SetHypertextTextElementVisibleContentCommandTest extends EMFfitTestCase {
 
  public void testDoRun() {
    Hypertext hypertext = EMFfitModelFactory.eINSTANCE.createHypertext();
    Term term1 = EMFfitModelFactory.eINSTANCE.createTerm();
    term1.setVisibleContent("foo ");
    Link link = EMFfitModelFactory.eINSTANCE.createLink();
    link.setVisibleContent("link");
    Term term2 = EMFfitModelFactory.eINSTANCE.createTerm();
    term2.setVisibleContent(" bar");
   
    hypertext.getContent().add(term1);
    hypertext.getContent().add(link);
    hypertext.getContent().add(term2);
   
View Full Code Here

  public void testDoRun() {
    // setup
    String content = "foo bar";

    Hypertext newInfluence = EMFfitModelFactory.eINSTANCE.createHypertext();
    Term term = EMFfitModelFactory.eINSTANCE.createTerm();
    term.setVisibleContent(content);
    newInfluence.getContent().add(term);

    Factor factor = (Factor) ((FactorCategory) factorTable.getEntries()
        .get(1)).getChildren().get(0);
View Full Code Here

  public void testDoRunForNullFlexibility() {
    // setup
    String content = "foo bar";

    Hypertext newInfluence = EMFfitModelFactory.eINSTANCE.createHypertext();
    Term term = EMFfitModelFactory.eINSTANCE.createTerm();
    term.setVisibleContent(content);
    newInfluence.getContent().add(term);

    Factor factor = (Factor) ((FactorCategory) factorTable.getEntries()
        .get(1)).getChildren().get(0);
    factor.setInfluence(null);
View Full Code Here

  public void testDoRun() {
    //setup
    String content = "foo bar";
   
    Hypertext newSolution = EMFfitModelFactory.eINSTANCE.createHypertext();
    Term term = EMFfitModelFactory.eINSTANCE.createTerm();
    term.setVisibleContent(content);
    newSolution.getContent().add(term);
 
   
    //run command
    new UpdateIssueCardSolutionCommand(issueCard, newSolution).runWithoutUnicaseCommand();
View Full Code Here

  public void testDoRunForNullDescription() {
    //setup
    String content = "foo bar";
   
    Hypertext newSolution = EMFfitModelFactory.eINSTANCE.createHypertext();
    Term term = EMFfitModelFactory.eINSTANCE.createTerm();
    term.setVisibleContent(content);
    newSolution.getContent().add(term);
   
    issueCard.setDescription(null);
   
    //run command
View Full Code Here

public class AddHypertextTermCommandTest extends EMFfitTestCase {

  @Test
  public void testDoRun() {
    Hypertext hypertext = EMFfitModelFactory.eINSTANCE.createHypertext();
    Term term1 = EMFfitModelFactory.eINSTANCE.createTerm();
    Link link1 = EMFfitModelFactory.eINSTANCE.createLink();
    Link link2 = EMFfitModelFactory.eINSTANCE.createLink();
    Term term2 = EMFfitModelFactory.eINSTANCE.createTerm();
   
    term1.setVisibleContent("foo ");
    link1.setVisibleContent("link1");
    link2.setVisibleContent("link2");
    term2.setVisibleContent(" bar");
   
    hypertext.getContent().add(term1);
    hypertext.getContent().add(link1);
    hypertext.getContent().add(link2);
    hypertext.getContent().add(term2);
View Full Code Here

TOP

Related Classes of org.emftrace.metamodel.EMFfitModel.Term

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.