Examples of EnumValue


Examples of org.jboss.metatype.api.values.EnumValue

      // The bean state
      ManagedProperty state = props.get("state");
      assertNotNull("state", state);
      EnumMetaType stateType = (EnumMetaType) state.getMetaType();
      EnumValue stateValue = (EnumValue) state.getValue();
      getLog().info("state: "+stateValue);
      EnumValue installed = new EnumValueSupport(stateType, "Installed");
      assertEquals(installed, stateValue);
   }
View Full Code Here

Examples of org.jboss.reflect.spi.EnumValue

   private void checkEnumValue(Value value, String expected)
   {
      assertNotNull(value);
      assertTrue(EnumValue.class.isAssignableFrom(value.getClass()));
      EnumValue theVal = (EnumValue)value;
      TypeInfo info = theVal.getType();
      assertNotNull(info);
      assertEquals(TestEnum.class.getName(), info.getName());
      String val = theVal.getValue();
      assertNotNull(val);
      assertEquals(expected, val);
   }
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.