Examples of EnumTechnicalProperty


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
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.