Examples of TestActor


Examples of com.consol.citrus.TestActor

    @SuppressWarnings("rawtypes")
  public void testSendMessageWithMessagePayloadData() {
    SendMessageAction sendAction = new SendMessageAction();
    sendAction.setEndpoint(endpoint);
   
    TestActor testActor = new TestActor();
        testActor.setName("TESTACTOR");
       
        sendAction.setActor(testActor);
       
    PayloadTemplateMessageBuilder messageBuilder = new PayloadTemplateMessageBuilder();
    messageBuilder.setPayloadData("<TestRequest><Message>Hello World!</Message></TestRequest>");
View Full Code Here

Examples of com.consol.citrus.TestActor

    public void testDisabledSendMessage() {
        TestCase testCase = new TestCase();
        SendMessageAction sendAction = new SendMessageAction();
        sendAction.setEndpoint(endpoint);
       
        TestActor disabledActor = new TestActor();
        disabledActor.setDisabled(true);
        sendAction.setActor(disabledActor);
       
        PayloadTemplateMessageBuilder messageBuilder = new PayloadTemplateMessageBuilder();
        messageBuilder.setPayloadData("<TestRequest><Message>Hello World!</Message></TestRequest>");
       
View Full Code Here

Examples of com.consol.citrus.TestActor

    public void testDisabledSendMessageByEndpointActor() {
        TestCase testCase = new TestCase();
        SendMessageAction sendAction = new SendMessageAction();
        sendAction.setEndpoint(endpoint);
       
        TestActor disabledActor = new TestActor();
        disabledActor.setDisabled(true);
       
        PayloadTemplateMessageBuilder messageBuilder = new PayloadTemplateMessageBuilder();
        messageBuilder.setPayloadData("<TestRequest><Message>Hello World!</Message></TestRequest>");
       
        sendAction.setMessageBuilder(messageBuilder);
View Full Code Here

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

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

      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
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.