Package com.omnicarecr.accounts.util

Examples of com.omnicarecr.accounts.util.UserInfo


  }
  */

 
  public void testCheckUseridSet() {
    UserInfo userinfo = null;
    try {
      userinfo = new UserInfo(PASSWD_STREAM, SHADOW_STREAM);
      } catch (Exception e) { 
          fail();   
        }
    boolean valid=false;

    valid = userinfo.setUserid(USER_ID_SET);
    assertTrue(valid == true);
  }
View Full Code Here


    valid = userinfo.setUserid(USER_ID_SET);
    assertTrue(valid == true);
  }
 
  public void testCheckUseridGet() {
    UserInfo userinfo = null;
    try {
      userinfo = new UserInfo(PASSWD_STREAM, SHADOW_STREAM);
      } catch (Exception e) { 
          fail();   
        }
    String userid;
   
    boolean valid=false;
    valid = userinfo.setUserid(USER_ID_SET);

    userid = userinfo.getUserid();
    assertEquals(userid, USER_ID_SET);
  }
View Full Code Here

    userid = userinfo.getUserid();
    assertEquals(userid, USER_ID_SET);
  }
 
  public void testPasswordSet() {
    UserInfo userinfo = null;
    try {
      userinfo = new UserInfo(PASSWD_STREAM, SHADOW_STREAM);
      } catch (Exception e) { 
          fail();   
        }

    boolean valid=false;
    valid = userinfo.setPassword(PASSWORD_SET);
    //setUserid(PASSWORD_GET);
    assertTrue(valid == true);
  }
View Full Code Here

    //setUserid(PASSWORD_GET);
    assertTrue(valid == true);
  }
 
  public void testPasswordGet() {
    UserInfo userinfo = null;
    try {
      userinfo = new UserInfo(PASSWD_STREAM, SHADOW_STREAM);
      } catch (Exception e) { 
          fail();   
        }
    String password;
   
    boolean valid=false;
    valid = userinfo.setPassword(PASSWORD_SET);
   
    password = userinfo.getPassword();
   
    assertEquals(password, PASSWORD_SET);
  }
View Full Code Here

   * Unit test to make sure that lookupUid works correctly   
   * give a fake password file   
   */   
  public void testUseridLenPass() { 

    UserInfo userinfo = null;
    try {
    userinfo = new UserInfo(PASSWD_STREAM, SHADOW_STREAM);
    } catch (Exception e) { 
        fail();   
      }
     
    boolean valid=false;
   
    // look me up out out of that file and make sure uid is still 28272
    valid = userinfo.checkUserid(USER_ID_LEN_PASS);
    assertTrue(valid == true);

    // look me up out out of that file and make sure uid is still 28272   
    //valid = userinfo.checkUserIdLen(USER_ID_LEN_FAIL); 
    //assertTrue(valid = false);
View Full Code Here

    //assertTrue(valid = false);
  }
 
  public void testUseridLenFail() { 
   
    UserInfo userinfo = null;
    try {
      userinfo = new UserInfo(PASSWD_STREAM, SHADOW_STREAM);
      } catch (Exception e) { 
          fail();   
        }
   
    boolean valid=true;
   
    // look me up out out of that file and make sure uid is still 28272
    valid = userinfo.checkUserid(USER_ID_LEN_FAIL);
    assertTrue(valid == false);

    // look me up out out of that file and make sure uid is still 28272   
    //valid = userinfo.checkUserIdLen(USER_ID_LEN_FAIL); 
    //assertTrue(valid = false);
View Full Code Here

    //assertTrue(valid = false);
 

  public void testCheckUseridCharsFail() { 
   
    UserInfo userinfo = null;
    try {
      userinfo = new UserInfo(PASSWD_STREAM, SHADOW_STREAM);
      } catch (Exception e) { 
          fail();   
        }
   
    boolean valid=true;
   
    valid = userinfo.checkUserid(USER_ID_CHARS_FAIL);
    assertTrue(valid == false);
  }
View Full Code Here

    assertTrue(valid == false);
  }
 
  public void testCheckUseridCharsPass() { 
   
    UserInfo userinfo = null;
    try {
      userinfo = new UserInfo(PASSWD_STREAM, SHADOW_STREAM);
      } catch (Exception e) { 
          fail();   
        }
   
    boolean valid=false;
   
    // look me up out out of that file and make sure uid is still 28272
    valid = userinfo.checkUserid(USER_ID_CHARS_PASS);
    assertTrue(valid == true);

    // look me up out out of that file and make sure uid is still 28272   
    //valid = userinfo.checkUserIdLen(USER_ID_LEN_FAIL); 
    //assertTrue(valid = false);
View Full Code Here

    //assertTrue(valid = false);
 
 
  public void testCheckPasswordLenPass() { 
   
    UserInfo userinfo = null;
    try {
      userinfo = new UserInfo(PASSWD_STREAM, SHADOW_STREAM);
      } catch (Exception e) { 
          fail();   
        }
   
    boolean valid=false;
   
    // look me up out out of that file and make sure uid is still 28272
    valid = userinfo.checkPassword(PASSWORD_LEN_PASS);
    assertTrue(valid == true);

    // look me up out out of that file and make sure uid is still 28272   
    //valid = userinfo.checkUserIdLen(USER_ID_LEN_FAIL); 
    //assertTrue(valid = false);
View Full Code Here

    //assertTrue(valid = false);
  }
 
  public void testCheckPasswordLenFail() { 
   
    UserInfo userinfo = null;
    try {
      userinfo = new UserInfo(PASSWD_STREAM, SHADOW_STREAM);
      } catch (Exception e) { 
          fail();   
        }
   
    boolean valid=true;
   
    // look me up out out of that file and make sure uid is still 28272
    valid = userinfo.checkPassword(PASSWORD_LEN_FAIL);
    assertTrue(valid == false);

    // look me up out out of that file and make sure uid is still 28272   
    //valid = userinfo.checkUserIdLen(USER_ID_LEN_FAIL); 
    //assertTrue(valid = false);
View Full Code Here

TOP

Related Classes of com.omnicarecr.accounts.util.UserInfo

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.