Package com.agiletec.plugins.jpwebdynamicform.aps.internalservlet.message

Examples of com.agiletec.plugins.jpwebdynamicform.aps.internalservlet.message.UserNewMessageAction


  public void testCreateNew() throws Throwable {
    String result = this.executeNew("mainEditor", "");
    assertEquals("voidTypeCode", result);
    result = this.executeNew("mainEditor", "PER");
    assertEquals(Action.SUCCESS, result);
    UserNewMessageAction action = (UserNewMessageAction) this.getAction();
    Message message = action.getMessage();
    assertEquals("PER", message.getTypeCode());
  }
View Full Code Here


    assertEquals("expiredMessage", result);
   
    params.put("typeCode", "PER");
    result = this.executeSend(SystemConstants.GUEST_USER_NAME, params);
    assertEquals(Action.INPUT, result);
    UserNewMessageAction action = (UserNewMessageAction) this.getAction();
    Collection<String> fieldErrors = action.getFieldErrors().keySet();
    assertEquals(4, fieldErrors.size());
    assertTrue(fieldErrors.contains("Monotext:Name"));
    assertTrue(fieldErrors.contains("Monotext:Surname"));
    assertTrue(fieldErrors.contains("Monotext:eMail"));
    assertTrue(fieldErrors.contains("Monotext:Note"));
View Full Code Here

TOP

Related Classes of com.agiletec.plugins.jpwebdynamicform.aps.internalservlet.message.UserNewMessageAction

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.