Package br.com.procempa.modus.services

Examples of br.com.procempa.modus.services.UserContext


  public void testLogin() throws Exception {
    String password = "111";
    char[] charPassword = new char[password.length()];
    password.getChars(0, password.length(), charPassword, 0);

    UserContext uc = LoginServices.login("1", charPassword);
    assertEquals(uc.getUsuario().getRg(), "1");

    password = "invalidPassword";
    charPassword = new char[password.length()];
    password.getChars(0, password.length(), charPassword, 0);
   
    UserContext ucFalha = LoginServices.login("1", charPassword);
    assertNull(ucFalha);
  }
View Full Code Here


  public void testLoginMonitor() throws Exception {
    String password = "111";
    char[] charPassword = new char[password.length()];
    password.getChars(0, password.length(), charPassword, 0);
   
    UserContext uc = LoginServices.login("1", charPassword);
    assertEquals(Long.valueOf(12),uc.getTelecentro().getId());
  }
View Full Code Here

  public void testLogin() throws Exception {
    String password = "111";
    char[] charPassword = new char[password.length()];
    password.getChars(0, password.length(), charPassword, 0);

    UserContext uc = LoginServices.login("1", charPassword);
    assertEquals(uc.getUsuario().getRg(), "1");

    password = "invalidPassword";
    charPassword = new char[password.length()];
    password.getChars(0, password.length(), charPassword, 0);
   
    UserContext ucFalha = LoginServices.login("1", charPassword);
    assertNull(ucFalha);
  }
View Full Code Here

  public void testLoginMonitor() throws Exception {
    String password = "111";
    char[] charPassword = new char[password.length()];
    password.getChars(0, password.length(), charPassword, 0);
   
    UserContext uc = LoginServices.login("1", charPassword);
    assertEquals(Long.valueOf(12),uc.getTelecentro().getId());
  }
View Full Code Here

  public void testLogin() throws Exception {
    String password = "111";
    char[] charPassword = new char[password.length()];
    password.getChars(0, password.length(), charPassword, 0);

    UserContext uc = LoginServices.login("1", charPassword);
    assertEquals(uc.getUsuario().getRg(), "1");

    password = "invalidPassword";
    charPassword = new char[password.length()];
    password.getChars(0, password.length(), charPassword, 0);
   
    UserContext ucFalha = LoginServices.login("1", charPassword);
    assertNull(ucFalha);
  }
View Full Code Here

  public void testLoginMonitor() throws Exception {
    String password = "111";
    char[] charPassword = new char[password.length()];
    password.getChars(0, password.length(), charPassword, 0);
   
    UserContext uc = LoginServices.login("1", charPassword);
    assertEquals(Long.valueOf(12),uc.getTelecentro().getId());
  }
View Full Code Here

  public void testLogin() throws Exception {
    String password = "111";
    char[] charPassword = new char[password.length()];
    password.getChars(0, password.length(), charPassword, 0);

    UserContext uc = LoginServices.login("1", charPassword);
    assertEquals(uc.getUsuario().getRg(), "1");

    password = "invalidPassword";
    charPassword = new char[password.length()];
    password.getChars(0, password.length(), charPassword, 0);
   
    UserContext ucFalha = LoginServices.login("1", charPassword);
    assertNull(ucFalha);
  }
View Full Code Here

  public void testLoginMonitor() throws Exception {
    String password = "111";
    char[] charPassword = new char[password.length()];
    password.getChars(0, password.length(), charPassword, 0);
   
    UserContext uc = LoginServices.login("1", charPassword);
    assertEquals(Long.valueOf(12),uc.getTelecentro().getId());
  }
View Full Code Here

TOP

Related Classes of br.com.procempa.modus.services.UserContext

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.