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

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


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


      return lifecycle;
   }

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

      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

      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

      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

      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

      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

      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

TOP

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

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.