Package org.emftrace.metamodel.QUARCModel.Constraints

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


  }
 
 
  @Test
  public void testFloatTechnicalProperty() {
    FloatTechnicalProperty property = ConstraintsFactory.eINSTANCE.createFloatTechnicalProperty();
   
   
    assertNull(ConstraintValueValidator.validateValue("1",property));
    assertNull(ConstraintValueValidator.validateValue("-1",property));
    assertNull(ConstraintValueValidator.validateValue("1.1",property));
    assertNull(ConstraintValueValidator.validateValue("-1.1",property));
    assertNull(ConstraintValueValidator.validateValue("-0.1",property));
    assertNull(ConstraintValueValidator.validateValue("0.1",property));
   
    assertNotNull(ConstraintValueValidator.validateValue("0.0.0",property));
    assertNotNull(ConstraintValueValidator.validateValue("--1",property));

   
    property.setMax("5.0");
    property.setMin("1.0");
   
    assertNull(ConstraintValueValidator.validateValue("1",property));
    assertNull(ConstraintValueValidator.validateValue("5",property));

    assertNotNull(ConstraintValueValidator.validateValue("5.01",property));
View Full Code Here

TOP

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

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.