Package org.mokai.action

Examples of org.mokai.action.RemoveAction.execute()


      .setProperty("from", "test-from");

    RemoveAction removeAction = new RemoveAction();
    removeAction.setField("to");

    removeAction.execute(message);

    Assert.assertEquals(message.getProperties().size(), 1);
    Assert.assertNull(message.getProperty("to"));
    Assert.assertEquals(message.getProperty("from", String.class), "test-from");
  }
View Full Code Here


      .setProperty("from", "test-from");

    RemoveAction removeAction = new RemoveAction();
    removeAction.setField("unexistent");

    removeAction.execute(message);

    Assert.assertEquals(message.getProperties().size(), 2);
    Assert.assertEquals(message.getProperty("to", String.class), "test-to");
    Assert.assertEquals(message.getProperty("from", String.class), "test-from");
  }
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.