Package model.forms

Examples of model.forms.RegisterForm.validate()


    registerForm.email="susan.g.fung@gmail.com";
    registerForm.firstName="Susan";
    registerForm.lastName="Fung";
    registerForm.password="abc";
    registerForm.password2="abcd";
    String message = registerForm.validate();
    Assert.assertTrue(message.equals(ApplicationConstants.PASSWORD_MISMATCH));
    }

  @Test
    public void userAlreadyRegistered() {
View Full Code Here


    registerForm.firstName="Susan";
    registerForm.lastName="Fung";
    registerForm.password="abc";
    registerForm.password2="abc";
    registerForm.isEnabled=ApplicationConstants.TRUE;
    String message = registerForm.validate();
    Assert.assertTrue(message.equals(ApplicationConstants.USER_ALREADY_REGISTERED));
    }

  @Test
    public void successRegistration() {
View Full Code Here

    registerForm.firstName="Susan";
    registerForm.lastName="Fung";
    registerForm.password="abc";
    registerForm.password2="abc";
    registerForm.isEnabled=ApplicationConstants.TRUE;
    String message = registerForm.validate();
    Assert.assertTrue(message == null);
    }

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