Package org.mokai

Examples of org.mokai.Action


    // add post-receiving action
    MockAction postReceivingAction = new MockAction();
    processorService.addPostReceivingAction(postReceivingAction);

    // add another post-receiving action that changes the message
    processorService.addPostReceivingAction(new Action() {

      @Override
      public void execute(Message message) throws Exception {
        message.setReference("germanescobar");
      }
View Full Code Here


  @Test
  public void testAddRemovePreProcessingActions() throws Exception {
    ConnectorService processorService = new MockConnectorService("test", new MockProcessor(), resourceRegistry);

    Action action1 = new MockAction();
    Action action2 = new MockAction();

    // add first action
    processorService.addPreProcessingAction(action1);
    Assert.assertEquals(1, processorService.getPreProcessingActions().size());
View Full Code Here

  @Test
  public void testAddRemovePostProcessingActions() throws Exception {
    ConnectorService processorService = new MockConnectorService("test", new MockProcessor(), resourceRegistry);

    Action action1 = new MockAction();
    Action action2 = new MockAction();

    // add first action
    processorService.addPostProcessingAction(action1);
    Assert.assertEquals(1, processorService.getPostProcessingActions().size());
View Full Code Here

  @Test
  public void testAddRemovePostReceivingActions() throws Exception {
    ConnectorService processorService = new MockConnectorService("test", new MockProcessor(), resourceRegistry);

    Action action1 = new MockAction();
    Action action2 = new MockAction();

    // add first action
    processorService.addPostReceivingAction(action1);
    Assert.assertEquals(1, processorService.getPostReceivingActions().size());
View Full Code Here

TOP

Related Classes of org.mokai.Action

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.