Examples of LifecycleMetaData


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

      assertNull(lifecycle.getParameters());
   }

   public void testLifecycleWithAnnotation() throws Exception
   {
      LifecycleMetaData lifecycle = getLifecycle();
      assertNull(lifecycle.getMethodName());
      HashSet<String> expected = new HashSet<String>();
      expected.add(Annotation1.class.getName());
      assertAnnotations(expected, lifecycle.getAnnotations());
      assertNull(lifecycle.getParameters());
   }
View Full Code Here

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

      assertNull(lifecycle.getParameters());
   }

   public void testLifecycleWithAnnotations() throws Exception
   {
      LifecycleMetaData lifecycle = getLifecycle();
      assertNull(lifecycle.getMethodName());
      HashSet<String> expected = new HashSet<String>();
      expected.add(Annotation1.class.getName());
      expected.add(Annotation2.class.getName());
      expected.add(Annotation3.class.getName());
      assertAnnotations(expected, lifecycle.getAnnotations());
      assertNull(lifecycle.getParameters());
   }
View Full Code Here

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

      assertNull(lifecycle.getParameters());
   }

   public void testLifecycleWithParameter() throws Exception
   {
      LifecycleMetaData lifecycle = getLifecycle();
      assertNull(lifecycle.getMethodName());
      assertNull(lifecycle.getAnnotations());
      ArrayList<String> expected = new ArrayList<String>();
      expected.add("Parameter1");
      assertParameters(expected, lifecycle.getParameters());
   }
View Full Code Here

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

      assertParameters(expected, lifecycle.getParameters());
   }

   public void testLifecycleWithParameters() throws Exception
   {
      LifecycleMetaData lifecycle = getLifecycle();
      assertNull(lifecycle.getMethodName());
      assertNull(lifecycle.getAnnotations());
      ArrayList<String> expected = new ArrayList<String>();
      expected.add("Parameter1");
      expected.add("Parameter2");
      expected.add("Parameter3");
      assertParameters(expected, lifecycle.getParameters());
   }
View Full Code Here

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

public class LifecycleJaxbTestCase extends AbstractMCTest
{
   protected LifecycleMetaData getLifecycle() throws Exception
   {
      AbstractBeanMetaData bean = unmarshalBean();
      LifecycleMetaData lifecycle = bean.getCreate();
      assertNotNull(lifecycle);
      return lifecycle;
   }
View Full Code Here

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

      return lifecycle;
   }

   public void testLifecycle() throws Exception
   {
      LifecycleMetaData lifecycle = getLifecycle();
      assertNull(lifecycle.getMethodName());
      assertNull(lifecycle.getAnnotations());
      assertNull(lifecycle.getParameters());
   }
View Full Code Here

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

      assertNull(lifecycle.getParameters());
   }

   public void testLifecycleWithMethod() throws Exception
   {
      LifecycleMetaData lifecycle = getLifecycle();
      assertEquals("Method", lifecycle.getMethodName());
      assertNull(lifecycle.getAnnotations());
      assertNull(lifecycle.getParameters());
   }
View Full Code Here

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

      assertNull(lifecycle.getParameters());
   }

   public void testLifecycleWithIgnored() throws Exception
   {
      LifecycleMetaData lifecycle = getLifecycle();
      assertTrue(lifecycle.isIgnored());
      assertNull(lifecycle.getMethodName());
      assertNull(lifecycle.getAnnotations());
      assertNull(lifecycle.getParameters());
   }
View Full Code Here

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

   public void testDeploymentWithLifecycle() throws Exception
   {
      AbstractKernelDeployment deployment = unmarshalDeployment("DeploymentWithLifecycle.xml");

      LifecycleMetaData create = deployment.getCreate();
      assertNotNull(create);
      LifecycleMetaData start = deployment.getStart();
      assertNotNull(start);
      LifecycleMetaData stop = deployment.getStop();
      assertNotNull(stop);
      LifecycleMetaData destroy = deployment.getDestroy();
      assertNotNull(destroy);

      List<BeanMetaData> beans = deployment.getBeans();
      assertNotNull(beans);
      assertEquals(1, beans.size());
View Full Code Here

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

public class LifecycleTestCase extends AbstractXMLTest
{
   protected LifecycleMetaData getLifecycle(String name) throws Exception
   {
      AbstractBeanMetaData bean = unmarshalBean(name);
      LifecycleMetaData lifecycle = bean.getCreate();
      assertNotNull(lifecycle);
      return lifecycle;
   }
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.