Package org.emftrace.metamodel.EMFfitModel

Examples of org.emftrace.metamodel.EMFfitModel.FactorTable


public class FTHelpersTest extends TestCase{

  @Test
  public void testGetFactorTableNumbering() {
    FactorTable ft = EMFfitModelFactory.eINSTANCE.createFactorTable();
   
    ft.setType(CategoryType.ORGANIZATIONAL);
    assertEquals("O", FTHelpers.getFactorTableNumbering(ft));

    ft.setType(CategoryType.TECHNOLOGICAL);
    assertEquals("T", FTHelpers.getFactorTableNumbering(ft));

    ft.setType(CategoryType.PRODUCT);
    assertEquals("P", FTHelpers.getFactorTableNumbering(ft));
  }
View Full Code Here


    assertEquals( "PRODUCT", FTHelpers.getFactorTableFullTypeNameFromType(CategoryType.PRODUCT_VALUE));
  }

  @Test
  public void testGetFactorTableFullTypeName(){
    FactorTable ft = EMFfitModelFactory.eINSTANCE.createFactorTable();
   
    ft.setType(CategoryType.ORGANIZATIONAL);
    assertEquals("ORGANIZATIONAL", FTHelpers.getFactorTableFullTypeName(ft));

    ft.setType(CategoryType.TECHNOLOGICAL);
    assertEquals("TECHNOLOGICAL", FTHelpers.getFactorTableFullTypeName(ft));

    ft.setType(CategoryType.PRODUCT);
    assertEquals("PRODUCT", FTHelpers.getFactorTableFullTypeName(ft));
   
  }
View Full Code Here

  }

  @Test
  public void testGetFactorTableFullTypeNameWithClassName(){
   
    FactorTable ft = EMFfitModelFactory.eINSTANCE.createFactorTable();
   
    ft.setType(CategoryType.ORGANIZATIONAL);
    assertEquals("FactorTable ORGANIZATIONAL", FTHelpers.getFactorTableFullTypeNameWithClassName(ft));

    ft.setType(CategoryType.TECHNOLOGICAL);
    assertEquals("FactorTable TECHNOLOGICAL", FTHelpers.getFactorTableFullTypeNameWithClassName(ft));

    ft.setType(CategoryType.PRODUCT);
    assertEquals("FactorTable PRODUCT", FTHelpers.getFactorTableFullTypeNameWithClassName(ft));
  }
View Full Code Here

 
 
  @Test
  public void testDoRunForOrgFT() {
    //setup
    FactorTable ft = EMFfitModelFactory.eINSTANCE.createFactorTable();
    ft.setType(CategoryType.ORGANIZATIONAL);
    //run command
    new SetFactorTableDefaultEntriesCommand(ft, configFilePath).runWithoutUnicaseCommand();
    //check
    assertEquals(5, ft.getEntries().size());
  }
View Full Code Here

  }
 
  @Test
  public void testDoRunForTechFT() {
    //setup
    FactorTable ft = EMFfitModelFactory.eINSTANCE.createFactorTable();
    ft.setType(CategoryType.TECHNOLOGICAL);
    //run command
    new SetFactorTableDefaultEntriesCommand(ft, configFilePath).runWithoutUnicaseCommand();
    //check
    assertEquals(5, ft.getEntries().size());
  }
View Full Code Here

 
  @Test
  public void testDoRunForProdFT() {
    //setup
    FactorTable ft = EMFfitModelFactory.eINSTANCE.createFactorTable();
    ft.setType(CategoryType.PRODUCT);
    //run command
    new SetFactorTableDefaultEntriesCommand(ft, configFilePath).runWithoutUnicaseCommand();
    //check
    assertEquals(7, ft.getEntries().size());
   
  }
View Full Code Here

TOP

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

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.