Package br.com.moonjava.flight.dao.base

Examples of br.com.moonjava.flight.dao.base.UsuarioDAO.atualizar()


    request.set("perfil", novoPerfil);
    request.set("login", novoLogin);
    request.set("senha", novaSenha);

    Usuario usuario = new UsuarioUpdate(request).createInstance();
    boolean executed = dao.atualizar(usuario);
    assertThat(executed, equalTo(true));

    Usuario res = dao.consultarPorCpf(CPF.valueOf(11111111111l));
    assertThat(res.getCodigo(), equalTo(codigo));
    assertThat(res.getPessoaFisica().getId(), equalTo(pessoaFisica));
View Full Code Here


    request.set("perfil", novoPerfil);
    request.set("login", novoLogin);
    request.set("senha", novaSenha);

    Usuario usuario = new UsuarioUpdate(request).createInstance();
    boolean executed = dao.atualizar(usuario);
    assertThat(executed, equalTo(false));
  }

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