Package org.emftrace.metamodel.QUARCModel.Constraints

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


    TagsCatalogue tags = gssfactory.createTagsCatalogue();
   
    ConstraintsFactory constraintsFactory = new ConstraintsFactoryImpl();
   
    TechnicalPropertiesCatalogue technicalPropertiesCatalogue = constraintsFactory.createTechnicalPropertiesCatalogue();
    PredefinedConstraintSetCatalogue predefinedConstraintSetCatalogue = constraintsFactory.createPredefinedConstraintSetCatalogue();
   
    QueryFactory queryFactory = new QueryFactoryImpl();
   
    GSSQueryContainment gssQueryContainment = queryFactory.createGSSQueryContainment();
View Full Code Here


public class CreatePredefinedConstraintSetCommandTest {

  @Test
  public void test() {
   
    PredefinedConstraintSetCatalogue cataloguge = ConstraintsFactory.eINSTANCE.createPredefinedConstraintSetCatalogue();
    List<Constraint> constraints = new ArrayList<Constraint>();
    for (int i= 0; i<10;i++)
      constraints.add(ConstraintsFactory.eINSTANCE.createConstraint());
    String name = "foo";
    String description ="bar";
    new CreatePredefinedConstraintSetCommand(cataloguge, constraints, name, description).runWithoutUnicaseCommand();
   
    assertEquals(1, cataloguge.getCatalogueItems().size());
    assertEquals(name, cataloguge.getCatalogueItems().get(0).getName());
    assertEquals(description, cataloguge.getCatalogueItems().get(0).getDescription());
    assertEquals(10, cataloguge.getCatalogueItems().get(0).getConstraints().size());
  }
View Full Code Here

TOP

Related Classes of org.emftrace.metamodel.QUARCModel.Constraints.PredefinedConstraintSetCatalogue

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.