Package models.data

Examples of models.data.User


  /**
   * Checks for valid email
   */
  @Test
  public void validFindByEmail() {
    User user = User.findByEmail("sgf2110@columbia.edu");
    Assert.assertTrue(user!=null);
  }
View Full Code Here


  /**
   * Checks for invalid email
   */
  @Test
  public void invalidFindByEmail() {
    User user = User.findByEmail("abc");
    Assert.assertTrue(user==null);
  }
View Full Code Here

  /**
   * Checks for valid authentication for logging in
   */
  @Test
  public void authenticateSuccess() {
    User user = User.authenticate("sgf2110@columbia.edu", "abc");
    Assert.assertTrue(user!=null);
  }
View Full Code Here

  /**
   * Checks for authentication failure
   */
  @Test
  public void authenticateFailed() {
    User user = User.authenticate("sgf2110@columbia.edu", "abcd");
    Assert.assertTrue(user==null);
  }
View Full Code Here

TOP

Related Classes of models.data.User

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.