Package org.mokai.action

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


    action.setReplace(replace);

    Message message = new Message();
    message.setProperty("message", "áéíó badword");

    action.execute(message);

    Assert.assertEquals(message.getProperty("message", String.class), "aenh _");
  }

  @Test(expectedExceptions=IllegalArgumentException.class)
View Full Code Here


  }

  @Test(expectedExceptions=IllegalArgumentException.class)
  public void shouldFailIfFieldIsNotSet() throws Exception {
    ReplaceAction action = new ReplaceAction();
    action.execute(new Message());
  }

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