Package org.emftrace.metamodel.QUARCModel.Constraints

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


  }
 
  @Test
  public void testEnumTechnicalProperty() {
    EnumTechnicalProperty property = ConstraintsFactory.eINSTANCE.createEnumTechnicalProperty();
   
    property.getPossibleValues().add("foo");
    property.getPossibleValues().add("bar");
   
    assertNull(ConstraintValueValidator.validateValue("foo",property));
    assertNull(ConstraintValueValidator.validateValue("bar",property));
    assertNotNull(ConstraintValueValidator.validateValue("foofoo",property));
    assertNotNull(ConstraintValueValidator.validateValue("bar foo",property));
View Full Code Here

TOP

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

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.