Examples of TechnicalProperty


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

  }
 
  @Test
  public void testForWordByWordTrue() {
    TechnicalPropertiesCatalogue catalogue = ConstraintsFactory.eINSTANCE.createTechnicalPropertiesCatalogue();
    TechnicalProperty tp1 = ConstraintsFactory.eINSTANCE.createBooleanTechnicalProperty();
    tp1.setName("foo bar");
    TechnicalProperty tp2 = ConstraintsFactory.eINSTANCE.createBooleanTechnicalProperty();
    tp2.setName("bar 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 testForWordByWordFalse() {
    TechnicalPropertiesCatalogue catalogue = ConstraintsFactory.eINSTANCE.createTechnicalPropertiesCatalogue();
    TechnicalProperty tp1 = ConstraintsFactory.eINSTANCE.createBooleanTechnicalProperty();
    tp1.setName("foo bar");
    TechnicalProperty tp2 = ConstraintsFactory.eINSTANCE.createBooleanTechnicalProperty();
    tp2.setName("bar 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 testForUndefinedProperty() {

    Precondition precondition = ConstraintsFactory.eINSTANCE.createPrecondition();
    TechnicalProperty property = ConstraintsFactory.eINSTANCE.createStringTechnicalProperty();
    precondition.setLogicalConnectiveType(LogicalConnectiveTypes.AND);
    precondition.getBaseConditions().add(ConstraintsFactory.eINSTANCE.createBaseCondition());
   
    property.setName("bar thing");
    precondition.getBaseConditions().get(0).setTechnicalProperty(property);
    precondition.getBaseConditions().get(0).setOperator(BaseConditionOperators.EQUALS);
    precondition.getBaseConditions().get(0).setValue("foo");
       
       
View Full Code Here

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

  @Test
  public void testForEmptyPrecondition() {

    Constraint constraint = ConstraintsFactory.eINSTANCE.createConstraint();
    TechnicalProperty property = createPropertyWithTypeString();
    constraint.setTechnicalProperty(property);
    constraint.setValue("foo");
    constraint.setOperator(BaseConditionOperators.EQUALS);
    assignedConstraintsSet.getAssignedConstraints().add(constraint);
View Full Code Here

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

 
  @Test
  public void testForPreconditionWithPropertyCategory() {

    Constraint constraint = ConstraintsFactory.eINSTANCE.createConstraint();
    TechnicalProperty property = ConstraintsFactory.eINSTANCE.createTechnicalPropertyCategory();
    property.setName("foo property category");
    constraint.setTechnicalProperty(property);
    constraint.setValue("foo");
    constraint.setOperator(BaseConditionOperators.EQUALS);
   
    constraint.setOperator(BaseConditionOperators.EQUALS);
View Full Code Here

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

  @Test
  public void testForNullPrecondition() {

    Constraint constraint = ConstraintsFactory.eINSTANCE.createConstraint();
    TechnicalProperty property = createPropertyWithTypeString();

    constraint.setTechnicalProperty(property);
    constraint.setValue("foo");
    constraint.setOperator(BaseConditionOperators.EQUALS);
    assignedConstraintsSet.getAssignedConstraints().add(constraint);
View Full Code Here

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

    }
  }

  private TechnicalProperty createPropertyWithTypeString() {

    TechnicalProperty property = ConstraintsFactory.eINSTANCE.createStringTechnicalProperty();
    property.setName("foo property");
   
    return property;
  }
View Full Code Here

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

  }

 
  private TechnicalProperty createPropertyWithTypeBoolean() {

    TechnicalProperty property = ConstraintsFactory.eINSTANCE.createBooleanTechnicalProperty();
    property.setName("foo property");
   
    return property;
  }
View Full Code Here

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

    return property;
  }
 
  private TechnicalProperty createPropertyWithTypeInteger() {

    TechnicalProperty property = ConstraintsFactory.eINSTANCE.createIntegerTechnicalProperty();
    property.setName("foo property");
   
    return property;
  }
View Full Code Here

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

    return property;
  }
 
  private TechnicalProperty createPropertyWithTypeFloat() {

    TechnicalProperty property = ConstraintsFactory.eINSTANCE.createFloatTechnicalProperty();
    property.setName("foo property");

    return property;
  }
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.