Package org.jboss.beans.metadata.spi

Examples of org.jboss.beans.metadata.spi.PropertyMetaData


   {
      AbstractBeanMetaData bean = unmarshalBean(name);
      Set<PropertyMetaData> properties = bean.getProperties();
      assertNotNull(properties);
      assertEquals(1, properties.size());
      PropertyMetaData property = properties.iterator().next();
      assertNotNull(property);
      ValueMetaData value = property.getValue();
      assertNotNull(value);
      assertTrue(value instanceof AbstractInjectionValueMetaData);
      return (AbstractInjectionValueMetaData) value;
   }
View Full Code Here


   {
      AbstractBeanMetaData bean = unmarshalBean();
      Set<PropertyMetaData> properties = bean.getProperties();
      assertNotNull(properties);
      assertEquals(1, properties.size());
      PropertyMetaData property = properties.iterator().next();
      assertNotNull(property);
      ValueMetaData value = property.getValue();
      assertNotNull(property);
      assertTrue(value instanceof AbstractListMetaData);
      return (AbstractListMetaData) value;
   }
View Full Code Here

   {
      AbstractBeanMetaData bean = unmarshalBean(name);
      Set<PropertyMetaData> properties = bean.getProperties();
      assertNotNull(properties);
      assertEquals(1, properties.size());
      PropertyMetaData property = properties.iterator().next();
      assertNotNull(property);
      return property;
   }
View Full Code Here

      return property;
   }
  
   public void testProperty() throws Exception
   {
      PropertyMetaData property = getProperty("Property.xml");
      assertNotNull("PropertyName", property.getName());
      assertNull(property.getAnnotations());
      assertNull(property.getValue());
   }
View Full Code Here

      assertNull(property.getValue());
   }
  
   public void testPropertyWithBean() throws Exception
   {
      PropertyMetaData property = getProperty("PropertyWithBean.xml");
      assertNotNull("PropertyName", property.getName());
      assertNull(property.getAnnotations());
      ValueMetaData value = property.getValue();
      assertBean(value);
   }
View Full Code Here

      assertBean(value);
   }
  
   public void testPropertyWithClass() throws Exception
   {
      PropertyMetaData property = getProperty("PropertyWithClass.xml");
      assertNotNull("PropertyName", property.getName());
      assertNull(property.getAnnotations());
      AbstractPropertyMetaData apmd = assertInstanceOf(property, AbstractPropertyMetaData.class);
      assertEquals("PropertyClass", apmd.getPropertyType());
   }
View Full Code Here

      assertEquals("PropertyClass", apmd.getPropertyType());
   }

   public void testPropertyWithAnnotation() throws Exception
   {
      PropertyMetaData property = getProperty("PropertyWithAnnotation.xml");
      assertNotNull("PropertyName", property.getName());
      HashSet<String> expected = new HashSet<String>();
      expected.add("org.jboss.test.kernel.deployment.xml.support.Annotation1");
      assertAnnotations(expected, property.getAnnotations());
      assertNull(property.getValue());
   }
View Full Code Here

      assertNull(property.getValue());
   }
  
   public void testPropertyWithAnnotations() throws Exception
   {
      PropertyMetaData property = getProperty("PropertyWithAnnotations.xml");
      assertNotNull("PropertyName", property.getName());
      HashSet<String> expected = new HashSet<String>();
      expected.add("org.jboss.test.kernel.deployment.xml.support.Annotation1");
      expected.add("org.jboss.test.kernel.deployment.xml.support.Annotation2");
      expected.add("org.jboss.test.kernel.deployment.xml.support.Annotation3");
      assertAnnotations(expected, property.getAnnotations());
      assertNull(property.getValue());
   }
View Full Code Here

      assertNull(property.getValue());
   }
  
   public void testPropertyWithPlainValue() throws Exception
   {
      PropertyMetaData property = getProperty("PropertyWithPlainValue.xml");
      assertNotNull("PropertyName", property.getName());
      assertNull(property.getAnnotations());
      assertPlainValue("PlainValue", property.getValue());
   }
View Full Code Here

      assertPlainValue("PlainValue", property.getValue());
   }
  
   public void testPropertyWithPreInstantiate() throws Exception
   {
      PropertyMetaData property = getProperty("PropertyWithPreInstantiate.xml");
      assertFalse("PreInstantiate should be false.", property.isPreInstantiate());
      assertNotNull("PropertyName", property.getName());
      assertNull(property.getAnnotations());
      assertPlainValue("PlainValue", property.getValue());
   }
View Full Code Here

TOP

Related Classes of org.jboss.beans.metadata.spi.PropertyMetaData

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.