Package org.orgama.shared.auth.action

Examples of org.orgama.shared.auth.action.ValidateEmailAddress


   
    if (!AuthUtils.validateEmailAddress(emailAddress)) {
      return;
    }
   
    ValidateEmailAddress vem = new ValidateEmailAddress(emailAddress);
    vem.setDisptachListener(new IDispatchListener() {

      @Override
      public void onDispatch() {
        getView().setBusy(true);
      }
View Full Code Here


   * and correct validate email address action when nothing has been
   * @throws Exception
   */
  @Test
  public void testValidationFromScratch() throws Exception {
    ValidateEmailAddress action = new ValidateEmailAddress(
        emailAddress);
    ValidateEmailAddressResult result =
        (ValidateEmailAddressResult)dispatch.execute(null, action);
   
    assertNotNull(result);
View Full Code Here

 
  @Test
  public void testSomeErrorConditions() {
   
    try {
      ValidateEmailAddress action =
          new ValidateEmailAddress(null);
      dispatch.execute(null, action);

      fail("This should have thrown an exception");
    }
    catch(Exception ex) {
      //this is expected
    }
   
    try {
      ValidateEmailAddress action =
          new ValidateEmailAddress("adsfasf@asdfa@asdfa.com");
      dispatch.execute(null, action);

      fail("This should have thrown an exception");
    }
    catch(Exception ex) {
View Full Code Here

    authInit.setServiceSpecificUserId(env.getEmailAddress());
    AuthUser user = userService.registerNewUser(authInit);
    sessionService.create(user, authInit);
   
    try {
      ValidateEmailAddress action =
          new ValidateEmailAddress("adsfasf@asdfa.com");
      dispatch.execute(null, action);

      fail("This should have thrown an exception");
    }
    catch(Exception ex) {
View Full Code Here

    authInit.setAuthServiceName(AuthServiceName.googleAccounts);
    authInit.setEmailAddress(env.getEmailAddress());
    authInit.setServiceSpecificUserId(env.getEmailAddress());
    AuthUser user = userService.registerNewUser(authInit);
   
    ValidateEmailAddress action =
        new ValidateEmailAddress(env.getEmailAddress());
    ValidateEmailAddressResult result =
        (ValidateEmailAddressResult)dispatch.execute(null, action);
   
    assertNotNull(result);
    assertNotNull(result.getRedirectUrl());
View Full Code Here

TOP

Related Classes of org.orgama.shared.auth.action.ValidateEmailAddress

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.