Package com.agiletec.plugins.jpavatar.apsadmin.avatar

Examples of com.agiletec.plugins.jpavatar.apsadmin.avatar.AvatarAction


  public void testEdit() throws Throwable {
    this.setAvatarStyle(AvatarConfig.STYLE_LOCAL);
   
    String result = this.executeEdit();
    assertEquals(Action.SUCCESS, result);
    AvatarAction action = (AvatarAction) this.getAction();
    assertEquals(56, action.getImageHeight());
    assertEquals(56, action.getImageWidth());
    assertEquals(100, action.getImageMaxSize());
    assertEquals("png,jpg", action.getImageTypes());
  }
View Full Code Here


  public void testBin() throws Throwable {
    this.setAvatarStyle(AvatarConfig.STYLE_LOCAL);
   
    String result = this.executeBin();
    assertEquals(Action.SUCCESS, result);
    AvatarAction action = (AvatarAction) this.getAction();
    List<String> actionMessages = (List<String>) action.getActionMessages();
    assertEquals(1, actionMessages.size());
    assertEquals(action.getText("jpavatar.message.confirmDelete"), actionMessages.get(0));
  }
View Full Code Here

TOP

Related Classes of com.agiletec.plugins.jpavatar.apsadmin.avatar.AvatarAction

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.