Examples of toHash()


Examples of com.loja.security.Authenticator.toHash()

    Usuario usuario = new Usuario();
    usuario.setEmail("r.oliveira@gmail.com");
    usuario.setHierarquia_id(1);
    usuario.setGruposUsuarios(grupoUsuario);
    usuario.setNome("Teste");
    usuario.setSenha(authenticator.toHash("123456"));
    em.persist(usuario);
    Assert.assertNotNull(usuario.getId());
  }
 
  @Test
View Full Code Here

Examples of com.loja.security.Authenticator.toHash()

  }
 
  @Test
  public void hashTest() {
    Authenticator authenticator = new Authenticator();
    Assert.assertEquals(authenticator.toHash("123"), "202cb962ac59075b964b07152d234b70");
  }
 
  public EntityManagerFactory getEntityManagerFactory() {
    return emf;
  }
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.