Package org.gatein.pc.test.unit.annotations

Examples of org.gatein.pc.test.unit.annotations.TestActor


      return actorId + "_" + type;
   }

   public static JoinPoint createJoinPoint(Class annotatedClass, JoinPointType type)
   {
      TestActor testActorAnnotation = ((AnnotatedElement)annotatedClass).getAnnotation(TestActor.class);

      //
      if (testActorAnnotation == null)
      {
         throw new IllegalStateException("No annotation @TestPortlet found on portlet class " + annotatedClass.getName());
      }

      //
      String actorId = testActorAnnotation.id();

      //
      return new JoinPoint(actorId, type);
   }
View Full Code Here


      return getClass().getSimpleName() + "[actor=" + actorId + ",type=" + type + "]";
   }

   public static JoinPoint createJoinPoint(Class annotatedClass, JoinPointType type)
   {
      TestActor testActorAnnotation = ((AnnotatedElement)annotatedClass).getAnnotation(TestActor.class);

      //
      if (testActorAnnotation == null)
      {
         throw new IllegalStateException("No annotation @TestPortlet found on portlet class " + annotatedClass.getName());
      }

      //
      String actorId = testActorAnnotation.id();

      //
      return new JoinPoint(actorId, type);
   }
View Full Code Here

TOP

Related Classes of org.gatein.pc.test.unit.annotations.TestActor

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.