Package org.jboss.metatype.api.values

Examples of org.jboss.metatype.api.values.SimpleValue.compareTo()


      getLog().debug("min: "+minValue);
      int compare = minValue.compareTo(SimpleValueSupport.wrap(0f));
      assertTrue("temperature >= 0; "+compare, compare == 0);
      compare = minValue.compareTo(SimpleValueSupport.wrap(0.1f));
      assertTrue("temperature 0.1 > min; "+compare, compare < 0);
      compare = minValue.compareTo(SimpleValueSupport.wrap(-0.1f));
      assertTrue("temperature -0.1 < min; "+compare, compare > 0);
      compare = minValue.compareTo(SimpleValueSupport.wrap(50f));
      assertTrue("temperature 50 > min; "+compare, compare < 0);
      compare = minValue.compareTo(SimpleValueSupport.wrap(-50f));
      assertTrue("temperature -50 < min; "+compare, compare > 0);
View Full Code Here


      assertTrue("temperature >= 0; "+compare, compare == 0);
      compare = minValue.compareTo(SimpleValueSupport.wrap(0.1f));
      assertTrue("temperature 0.1 > min; "+compare, compare < 0);
      compare = minValue.compareTo(SimpleValueSupport.wrap(-0.1f));
      assertTrue("temperature -0.1 < min; "+compare, compare > 0);
      compare = minValue.compareTo(SimpleValueSupport.wrap(50f));
      assertTrue("temperature 50 > min; "+compare, compare < 0);
      compare = minValue.compareTo(SimpleValueSupport.wrap(-50f));
      assertTrue("temperature -50 < min; "+compare, compare > 0);
      SimpleValue maxValue = (SimpleValue) temperature.getMaximumValue();
      assertNotNull(maxValue);
View Full Code Here

      assertTrue("temperature 0.1 > min; "+compare, compare < 0);
      compare = minValue.compareTo(SimpleValueSupport.wrap(-0.1f));
      assertTrue("temperature -0.1 < min; "+compare, compare > 0);
      compare = minValue.compareTo(SimpleValueSupport.wrap(50f));
      assertTrue("temperature 50 > min; "+compare, compare < 0);
      compare = minValue.compareTo(SimpleValueSupport.wrap(-50f));
      assertTrue("temperature -50 < min; "+compare, compare > 0);
      SimpleValue maxValue = (SimpleValue) temperature.getMaximumValue();
      assertNotNull(maxValue);
      getLog().debug("max: "+maxValue);
      compare = maxValue.compareTo(SimpleValueSupport.wrap(100f));
View Full Code Here

      compare = minValue.compareTo(SimpleValueSupport.wrap(-50f));
      assertTrue("temperature -50 < min; "+compare, compare > 0);
      SimpleValue maxValue = (SimpleValue) temperature.getMaximumValue();
      assertNotNull(maxValue);
      getLog().debug("max: "+maxValue);
      compare = maxValue.compareTo(SimpleValueSupport.wrap(100f));
      assertTrue("temperature <= 100; "+compare, compare == 0);
      compare = maxValue.compareTo(SimpleValueSupport.wrap(50f));
      assertTrue("temperature 50 < max; "+compare, compare > 0);
      compare = maxValue.compareTo(SimpleValueSupport.wrap(150f));
      assertTrue("temperature 150 > max; "+compare, compare < 0);
View Full Code Here

      SimpleValue maxValue = (SimpleValue) temperature.getMaximumValue();
      assertNotNull(maxValue);
      getLog().debug("max: "+maxValue);
      compare = maxValue.compareTo(SimpleValueSupport.wrap(100f));
      assertTrue("temperature <= 100; "+compare, compare == 0);
      compare = maxValue.compareTo(SimpleValueSupport.wrap(50f));
      assertTrue("temperature 50 < max; "+compare, compare > 0);
      compare = maxValue.compareTo(SimpleValueSupport.wrap(150f));
      assertTrue("temperature 150 > max; "+compare, compare < 0);

      String check = temperature.checkValidValue(SimpleValueSupport.wrap(100f));
View Full Code Here

      getLog().debug("max: "+maxValue);
      compare = maxValue.compareTo(SimpleValueSupport.wrap(100f));
      assertTrue("temperature <= 100; "+compare, compare == 0);
      compare = maxValue.compareTo(SimpleValueSupport.wrap(50f));
      assertTrue("temperature 50 < max; "+compare, compare > 0);
      compare = maxValue.compareTo(SimpleValueSupport.wrap(150f));
      assertTrue("temperature 150 > max; "+compare, compare < 0);

      String check = temperature.checkValidValue(SimpleValueSupport.wrap(100f));
      assertNull(check, check);
      check = temperature.checkValidValue(SimpleValueSupport.wrap(1f));
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.