Package org.jboss.test.xb.builder.object.mc.support.model

Examples of org.jboss.test.xb.builder.object.mc.support.model.AbstractBeanMetaData


      assertNull(bean.getUninstallCallbacks());
   }

   public void testBeanWithProperties() throws Exception
   {
      AbstractBeanMetaData bean = unmarshalBean();
      assertNull(bean.getName());
      assertEquals("Dummy", bean.getBean());
      assertNull(bean.getMode());
      assertNull(bean.getAnnotations());
      assertNull(bean.getClassLoader());
      assertNull(bean.getConstructor());
      HashSet<String> expected = new HashSet<String>();
      expected.add("Property1");
      expected.add("Property2");
      expected.add("Property3");
      assertProperties(expected, bean.getProperties());
      assertNull(bean.getCreate());
      assertNull(bean.getStart());
      assertNull(bean.getStop());
      assertNull(bean.getDestroy());
      assertNull(bean.getDemands());
      assertNull(bean.getSupplies());
      assertNull(bean.getInstalls());
      assertNull(bean.getUninstalls());
      assertNull(bean.getInstallCallbacks());
      assertNull(bean.getUninstallCallbacks());
   }
View Full Code Here


   private static final long serialVersionUID = 1L;

   public List<BeanMetaData> getBeans()
   {
      ArrayList<BeanMetaData> result = new ArrayList<BeanMetaData>();
      AbstractBeanMetaData bean = new AbstractBeanMetaData("Bean3");
      result.add(bean);
      bean = new AbstractBeanMetaData("Bean4");
      result.add(bean);
      return result;
   }
View Full Code Here

      assertNull(bean.getUninstallCallbacks());
   }

   public void testBeanWithCreate() throws Exception
   {
      AbstractBeanMetaData bean = unmarshalBean();
      assertNull(bean.getName());
      assertEquals("Dummy", bean.getBean());
      assertNull(bean.getMode());
      assertNull(bean.getAnnotations());
      assertNull(bean.getClassLoader());
      assertNull(bean.getConstructor());
      assertNull(bean.getProperties());
      assertNotNull(bean.getCreate());
      assertNull(bean.getStart());
      assertNull(bean.getStop());
      assertNull(bean.getDestroy());
      assertNull(bean.getDemands());
      assertNull(bean.getSupplies());
      assertNull(bean.getInstalls());
      assertNull(bean.getUninstalls());
      assertNull(bean.getInstallCallbacks());
      assertNull(bean.getUninstallCallbacks());
   }
View Full Code Here

   private static final long serialVersionUID = 1L;

   public List<BeanMetaData> getBeans()
   {
      ArrayList<BeanMetaData> result = new ArrayList<BeanMetaData>();
      AbstractBeanMetaData bean = new AbstractBeanMetaData("Bean1");
      result.add(bean);
      bean = new AbstractBeanMetaData("Bean2");
      result.add(bean);
      return result;
   }
View Full Code Here

      assertNull(bean.getUninstallCallbacks());
   }

   public void testBeanWithStart() throws Exception
   {
      AbstractBeanMetaData bean = unmarshalBean();
      assertNull(bean.getName());
      assertEquals("Dummy", bean.getBean());
      assertNull(bean.getMode());
      assertNull(bean.getAnnotations());
      assertNull(bean.getClassLoader());
      assertNull(bean.getConstructor());
      assertNull(bean.getProperties());
      assertNull(bean.getCreate());
      assertNotNull(bean.getStart());
      assertNull(bean.getStop());
      assertNull(bean.getDestroy());
      assertNull(bean.getDemands());
      assertNull(bean.getSupplies());
      assertNull(bean.getInstalls());
      assertNull(bean.getUninstalls());
      assertNull(bean.getInstallCallbacks());
      assertNull(bean.getUninstallCallbacks());
   }
View Full Code Here

   private static final long serialVersionUID = 1L;

   public List<BeanMetaData> getBeans()
   {
      ArrayList<BeanMetaData> result = new ArrayList<BeanMetaData>();
      AbstractBeanMetaData bean = new AbstractBeanMetaData("Bean5");
      result.add(bean);
      bean = new AbstractBeanMetaData("Bean6");
      result.add(bean);
      return result;
   }
View Full Code Here

*/
public class AnnotationTestCase extends AbstractMCTest
{
   protected AbstractAnnotationMetaData getAnnotation() throws Exception
   {
      AbstractBeanMetaData bean = unmarshalBean();
      ConstructorMetaData constructor = bean.getConstructor();
      assertNotNull(constructor);
      Set<?> annotations = constructor.getAnnotations();
      assertEquals(1, annotations.size());
      AbstractAnnotationMetaData annotation = (AbstractAnnotationMetaData) annotations.iterator().next();
      assertNotNull(annotation);
View Full Code Here

*/
public class DependencyTestCase extends AbstractMCTest
{
   protected AbstractDependencyMetaData getDependency() throws Exception
   {
      AbstractBeanMetaData bean = unmarshalBean();
      Set<DependencyMetaData> dependencies = bean.getDepends();
      assertNotNull(dependencies);
      assertEquals(1, dependencies.size());
      AbstractDependencyMetaData dependency = (AbstractDependencyMetaData) dependencies.iterator().next();
      assertNotNull(dependency);
      return dependency;
View Full Code Here

      assertNull(bean.getUninstallCallbacks());
   }

   public void testBeanWithStop() throws Exception
   {
      AbstractBeanMetaData bean = unmarshalBean();
      assertNull(bean.getName());
      assertEquals("Dummy", bean.getBean());
      assertNull(bean.getMode());
      assertNull(bean.getAnnotations());
      assertNull(bean.getClassLoader());
      assertNull(bean.getConstructor());
      assertNull(bean.getProperties());
      assertNull(bean.getCreate());
      assertNull(bean.getStart());
      assertNotNull(bean.getStop());
      assertNull(bean.getDestroy());
      assertNull(bean.getDemands());
      assertNull(bean.getSupplies());
      assertNull(bean.getInstalls());
      assertNull(bean.getUninstalls());
      assertNull(bean.getInstallCallbacks());
      assertNull(bean.getUninstallCallbacks());
   }
View Full Code Here

      assertNull(bean.getUninstallCallbacks());
   }

   public void testBeanWithDestroy() throws Exception
   {
      AbstractBeanMetaData bean = unmarshalBean();
      assertNull(bean.getName());
      assertEquals("Dummy", bean.getBean());
      assertNull(bean.getMode());
      assertNull(bean.getAnnotations());
      assertNull(bean.getClassLoader());
      assertNull(bean.getConstructor());
      assertNull(bean.getProperties());
      assertNull(bean.getCreate());
      assertNull(bean.getStart());
      assertNull(bean.getStop());
      assertNotNull(bean.getDestroy());
      assertNull(bean.getDemands());
      assertNull(bean.getSupplies());
      assertNull(bean.getInstalls());
      assertNull(bean.getUninstalls());
      assertNull(bean.getInstallCallbacks());
      assertNull(bean.getUninstallCallbacks());
   }
View Full Code Here

TOP

Related Classes of org.jboss.test.xb.builder.object.mc.support.model.AbstractBeanMetaData

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.