Examples of Projeto


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

    assertFalse(projetos.isEmpty());
  }

  @Test
  public void testPesquisarProjetos() throws Exception {
    Projeto projeto = new Projeto();
    projeto.setNome("gemda");
    Collection<Projeto> projetos = facade.pesquisar(projeto);
    assertFalse(projetos.isEmpty());
  }
View Full Code Here

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

    assertFalse(count == 0);
  }
 
  @Test
  public void testCountProjeto() throws Exception {
    long count = facade.count(new Projeto(null, null, "gemda", null, null, null));
    assertFalse(count == 0);
  }
View Full Code Here

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

 
  public void testAlterarSprintInvalido() throws Exception {
    Sprint sprint = new Sprint(null, criarProjeto(), new Date(), new Date());
    facade.inserir(sprint);
    assertNotNull(sprint.getId());
    sprint.setProjeto(new Projeto());
    sprint.setDataInicio(null);
    sprint.setDataFim(null);
    facade.alterar(sprint);
  }
View Full Code Here

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

  }

  @Test
  public void testPesquisarSprints() throws Exception {
    Sprint sprint = new Sprint();
    sprint.setProjeto(facade.recuperar(new Projeto(null, null, "gemda", null, null, null)));
    Collection<Sprint> sprints = facade.pesquisar(sprint);
    assertFalse(sprints.isEmpty());
  }
View Full Code Here

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

public class ProjetoServiceTest extends ServiceTestCase {
 
  public void testInserirProjetoInvalido() throws Exception {
    try {
      Projeto projeto = new Projeto();
      projetoService.inserir(projeto);
      assertNotNull(projeto.getId());
    } catch (ValidationException e) {
      throwValidations(e);
    }
  }
View Full Code Here

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

    }
  }

  @Test
  public void testInserirProjeto() throws Exception {
    Projeto projeto = new Projeto(null, criarUsuario(), "GeMDA", null, new Date(), null);
    projetoService.inserir(projeto);
    assertNotNull(projeto.getId());
  }
View Full Code Here

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

    assertNotNull(projeto.getId());
  }
 
  public void testAlterarProjetoInvalido() throws Exception {
    try {
      Projeto projeto = new Projeto(null, criarUsuario(), "GeMDA", null, new Date(), null);
      projetoService.inserir(projeto);
      assertNotNull(projeto.getId());
      Date dataInicio = new SimpleDateFormat("dd/MM/yyyy").parse("01/01/2011");
      projeto.setNome("G");
      projeto.setProductOwner(new Usuario());
      projeto.setDataInicio(dataInicio);
      projetoService.alterar(projeto);
      Projeto projetoAlterado = projetoService.recuperar(projeto.getId());
      assertEquals(dataInicio, projetoAlterado.getDataInicio());
    } catch (ValidationException e) {
      throwValidations(e);
    }
  }
View Full Code Here

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

    }
  }
 
  @Test
  public void testAlterarProjeto() throws Exception {
    Projeto projeto = new Projeto(null, criarUsuario(), "GeMDA", null, new Date(), null);
    projetoService.inserir(projeto);
    assertNotNull(projeto.getId());
    Date dataInicio = new SimpleDateFormat("dd/MM/yyyy").parse("01/01/2010");
    projeto.setDataInicio(dataInicio);
    projetoService.alterar(projeto);
    Projeto projetoAlterado = projetoService.recuperar(projeto.getId());
    assertEquals(dataInicio, projetoAlterado.getDataInicio());
  }
View Full Code Here

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

    assertEquals(dataInicio, projetoAlterado.getDataInicio());
  }
 
  public void testExcluirProjetoInvalido() throws Exception {
    try {
      Projeto projeto = new Projeto(null, criarUsuario(), "GeMDA", null, new Date(), null);
      projetoService.inserir(projeto);
      assertNotNull(projeto.getId());
      projeto.setId(null);
      projetoService.excluir(projeto);
      Projeto projetoExcluido = projetoService.recuperar(projeto.getId());
      assertNull(projetoExcluido);
    } catch (ValidationException e) {
      throwValidations(e);
    }
  }
View Full Code Here

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

    }
  }
 
  @Test
  public void testExcluirProjeto() throws Exception {
    Projeto projeto = new Projeto(null, criarUsuario(), "GeMDA", null, new Date(), null);
    projetoService.inserir(projeto);
    assertNotNull(projeto.getId());
    projetoService.excluir(projeto);
    Projeto projetoExcluido = projetoService.recuperar(projeto.getId());
    assertNull(projetoExcluido);
  }
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.