Examples of TechnicalProperty


Examples of org.emftrace.metamodel.QUARCModel.Constraints.TechnicalProperty

  @Test
  public void testForCategoryBug() {
    TechnicalPropertiesCatalogue catalogue = ConstraintsFactory.eINSTANCE.createTechnicalPropertiesCatalogue();
    TechnicalPropertyCategory cat = ConstraintsFactory.eINSTANCE.createTechnicalPropertyCategory();
    cat.setName("cat");
    TechnicalProperty tp1 = ConstraintsFactory.eINSTANCE.createBooleanTechnicalProperty();
    tp1.setName("foo");
    TechnicalProperty tp2 = ConstraintsFactory.eINSTANCE.createBooleanTechnicalProperty();
    tp2.setName("bar");
   
    catalogue.getCatalogueProperties().add(cat);
    cat.getEntries().add(tp1);
    cat.getEntries().add(tp2);
   
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.Constraints.TechnicalProperty

    Principle p2 = createPrinciple(gss, 2);

    Pattern si1 = createPattern(gss, 1);
    Pattern si2 = createPattern(gss, 2);

    TechnicalProperty propery = ConstraintsFactory.eINSTANCE
        .createStringTechnicalProperty();
    propery.setName("foo");
    Precondition precondition = ConstraintsFactory.eINSTANCE
        .createPrecondition();
    BaseCondition baseCondition = ConstraintsFactory.eINSTANCE
        .createBaseCondition();
    baseCondition.setTechnicalProperty(propery);
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.Constraints.TechnicalProperty

    Principle p2 = createPrinciple(gss, 2);
    Principle p3 = createPrinciple(gss, 3);

    Pattern si1 = createPattern(gss, 1);

    TechnicalProperty propery1 = ConstraintsFactory.eINSTANCE
        .createStringTechnicalProperty();
    propery1.setName("foo");
    Precondition precondition1 = ConstraintsFactory.eINSTANCE
        .createPrecondition();
    BaseCondition baseCondition1 = ConstraintsFactory.eINSTANCE
        .createBaseCondition();
    baseCondition1.setTechnicalProperty(propery1);
    baseCondition1.setValue("true");
    baseCondition1.setOperator(BaseConditionOperators.EQUALS);
    precondition1.getBaseConditions().add(baseCondition1);
    p2.setPrecondition(precondition1);

    TechnicalProperty propery2 = ConstraintsFactory.eINSTANCE
        .createStringTechnicalProperty();
    propery2.setName("bar");
    Precondition precondition2 = ConstraintsFactory.eINSTANCE
        .createPrecondition();
    BaseCondition baseCondition2 = ConstraintsFactory.eINSTANCE
        .createBaseCondition();
    baseCondition2.setTechnicalProperty(propery2);
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.Constraints.TechnicalProperty

    createImpact(gss, p1, g1, 1);
    createImpact(gss, si1, p2, 1);
    createImpact(gss, si2, p1, 1);

    TechnicalProperty propery = ConstraintsFactory.eINSTANCE
        .createStringTechnicalProperty();
    propery.setName("foo");
    Precondition precondition = ConstraintsFactory.eINSTANCE
        .createPrecondition();
    BaseCondition baseCondition = ConstraintsFactory.eINSTANCE
        .createBaseCondition();
    baseCondition.setTechnicalProperty(propery);
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.Constraints.TechnicalProperty

    Principle p2 = createPrinciple(gss, 1);

    Pattern si1 = createPattern(gss, 1);
    Pattern si2 = createPattern(gss, 2);

    TechnicalProperty propery = ConstraintsFactory.eINSTANCE
        .createStringTechnicalProperty();
    Precondition precondition = ConstraintsFactory.eINSTANCE
        .createPrecondition();
    BaseCondition baseCondition = ConstraintsFactory.eINSTANCE
        .createBaseCondition();
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.Constraints.TechnicalProperty

public class ExcludeEObjectConditionTest extends QUARCCoreTestCase{

  @Test
  public void testWithExclude() {
    TechnicalPropertiesCatalogue catalogue = ConstraintsFactory.eINSTANCE.createTechnicalPropertiesCatalogue();
    TechnicalProperty tp1 = ConstraintsFactory.eINSTANCE.createBooleanTechnicalProperty();
    tp1.setName("foo");
    TechnicalProperty tp2 = ConstraintsFactory.eINSTANCE.createBooleanTechnicalProperty();
    tp2.setName("foo");
   
    catalogue.getCatalogueProperties().add(tp1);
    catalogue.getCatalogueProperties().add(tp2);
   
    NGramCheckCondition nGramCheckCondition = new NGramCheckCondition(
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.Constraints.TechnicalProperty

  }
 
  @Test
  public void testWithoutExclude() {
    TechnicalPropertiesCatalogue catalogue = ConstraintsFactory.eINSTANCE.createTechnicalPropertiesCatalogue();
    TechnicalProperty tp1 = ConstraintsFactory.eINSTANCE.createBooleanTechnicalProperty();
    tp1.setName("foo");
    TechnicalProperty tp2 = ConstraintsFactory.eINSTANCE.createBooleanTechnicalProperty();
    tp2.setName("foo");

   
    catalogue.getCatalogueProperties().add(tp1);
    catalogue.getCatalogueProperties().add(tp2);
   
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.Constraints.TechnicalProperty

public class NGramCheckConditionTest {

  @Test
  public void testForName() {
    TechnicalPropertiesCatalogue catalogue = ConstraintsFactory.eINSTANCE.createTechnicalPropertiesCatalogue();
    TechnicalProperty tp1 = ConstraintsFactory.eINSTANCE.createBooleanTechnicalProperty();
    tp1.setName("foo");
    TechnicalProperty tp2 = ConstraintsFactory.eINSTANCE.createBooleanTechnicalProperty();
    tp2.setName("bar");
   
    catalogue.getCatalogueProperties().add(tp1);
    catalogue.getCatalogueProperties().add(tp2);
   
    NGramCheckCondition nGramCheckCondition = new NGramCheckCondition(
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.Constraints.TechnicalProperty

  }
 
  @Test
  public void testForIsSatisfiedIfTextIsNullTrue() {
    TechnicalPropertiesCatalogue catalogue = ConstraintsFactory.eINSTANCE.createTechnicalPropertiesCatalogue();
    TechnicalProperty tp1 = ConstraintsFactory.eINSTANCE.createBooleanTechnicalProperty();
    tp1.setName("foo");
    TechnicalProperty tp2 = ConstraintsFactory.eINSTANCE.createBooleanTechnicalProperty();
    tp2.setName("bar");
   
    catalogue.getCatalogueProperties().add(tp1);
    catalogue.getCatalogueProperties().add(tp2);
   
    NGramCheckCondition nGramCheckCondition = new NGramCheckCondition(
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.Constraints.TechnicalProperty

  }
 
  @Test
  public void testForIsSatisfiedIfTextIsNullFalse() {
    TechnicalPropertiesCatalogue catalogue = ConstraintsFactory.eINSTANCE.createTechnicalPropertiesCatalogue();
    TechnicalProperty tp1 = ConstraintsFactory.eINSTANCE.createBooleanTechnicalProperty();
    tp1.setName("foo");
    TechnicalProperty tp2 = ConstraintsFactory.eINSTANCE.createBooleanTechnicalProperty();
    tp2.setName("bar");
   
    catalogue.getCatalogueProperties().add(tp1);
    catalogue.getCatalogueProperties().add(tp2);
   
    NGramCheckCondition nGramCheckCondition = new NGramCheckCondition(
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.