Package org.universa.tcc.gemda.entidade

Examples of org.universa.tcc.gemda.entidade.Usuario


  @Autowired
  @Qualifier("tarefaService")
  protected Service<Tarefa> tarefaService;
 
  protected Usuario criarUsuario() throws Exception {
    Usuario usuario = new Usuario(null, Grupo.TEAM_MEMBER, "Daniel Ara�jo", "daniel.araujo", "asd123", "daniel.araujo@hotmail.com", true);
    usuarioService.inserir(usuario);
    assertNotNull(usuario.getId());
    return usuario;
  }
View Full Code Here


  public void testAlterarTarefaInvalido() throws Exception {
    try {
      Tarefa tarefa = new Tarefa(null, "Teste", criarUsuario(), criarStory(), Passo.TO_DO);
      tarefaService.inserir(tarefa);
      assertNotNull(tarefa.getId());
      tarefa.setUsuario(new Usuario());
      tarefa.setStory(new Story());
      tarefa.setDescricao("");
      tarefa.setPasso(null);
      tarefaService.alterar(tarefa);
      Tarefa tarefaAlterada = tarefaService.recuperar(tarefa.getId());
View Full Code Here

TOP

Related Classes of org.universa.tcc.gemda.entidade.Usuario

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.