Examples of Projeto


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

    assertEquals(dataInicio, projetoAlterado.getDataInicio());
  }
 
  @Test
  public void testExcluirProjeto() throws Exception {
    Projeto projeto = new Projeto(null, criarUsuario(), "GeMDA", null, new Date(), null);
    projetoDAO.inserir(projeto);
    assertNotNull(projeto.getId());
    projetoDAO.excluir(projeto);
    Projeto projetoExcluido = projetoDAO.recuperar(projeto.getId());
    assertNull(projetoExcluido);
  }
View Full Code Here

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

  }
 
  @Test
  public void testRecuperadoProjeto() throws Exception {
    Date dataInicio = new SimpleDateFormat("dd/MM/yyyy").parse("01/01/2010");
    Projeto projeto = new Projeto(null, criarUsuario(), "GeMDA", null, dataInicio, null);
    projetoDAO.inserir(projeto);
    assertNotNull(projeto.getId());
    Projeto projetoRecuperado = projetoDAO.recuperar(new Projeto(null, null, "GeMDA", null, dataInicio, null));
    assertNotNull(projetoRecuperado);
  }
View Full Code Here

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

    assertNotNull(usuario.getId());
    return usuario;
  }
 
  protected Projeto criarProjeto() throws Exception {
    Projeto projeto = new Projeto(null, criarUsuario(), "GeMDA", null, new Date(), null);
    projetoService.inserir(projeto);
    assertNotNull(projeto.getId());
    return projeto;
  }
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.