Package org.universa.tcc.gemda.entidade

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


    }
  }
 
  @Test
  public void testExcluirSprint() throws Exception {
    Sprint sprint = new Sprint(null, criarProjeto(), new Date(), new Date());
    sprintService.inserir(sprint);
    assertNotNull(sprint.getId());
    sprintService.excluir(sprint);
    Sprint sprintExcluido = sprintService.recuperar(sprint.getId());
    assertNull(sprintExcluido);
  }
View Full Code Here


 
  public void testRecuperadoSprintInvalido() throws Exception {
    try {
      Date dataInicio = new SimpleDateFormat("dd/MM/yyyy").parse("01/01/2010");
      Date dataFim = new SimpleDateFormat("dd/MM/yyyy").parse("01/04/2010");
      Sprint sprint = new Sprint(null, criarProjeto(), dataInicio, dataFim);
      sprintService.inserir(sprint);
      assertNotNull(sprint.getId());
      Sprint sprintRecuperado = sprintService.recuperar((Integer) null);
      assertNotNull(sprintRecuperado);
    } catch (ValidationException e) {
      throwValidations(e);
    }
  }
View Full Code Here

 
  @Test
  public void testRecuperadoSprint() throws Exception {
    Date dataInicio = new SimpleDateFormat("dd/MM/yyyy").parse("01/01/2010");
    Date dataFim = new SimpleDateFormat("dd/MM/yyyy").parse("01/04/2010");
    Sprint sprint = new Sprint(null, criarProjeto(), dataInicio, dataFim);
    sprintService.inserir(sprint);
    assertNotNull(sprint.getId());
    Sprint sprintRecuperado = sprintService.recuperar(sprint.getId());
    assertNotNull(sprintRecuperado);
  }
View Full Code Here

    assertFalse(count == 0);
  }
 
  @Test
  public void testCountSprint() throws Exception {
    long count = sprintService.count(new Sprint(null, null, null, new Date()));
    assertFalse(count == 0);
  }
View Full Code Here

  public void testAlterarStoryInvalido() throws Exception {
    try {
      Story story = new Story(null, criarSprint(), Prioridade.MEDIA, "Implementa��o da classes de persist�ncia, servi�o e testes de unidade!");
      storyService.inserir(story);
      assertNotNull(story.getId());
      story.setSprint(new Sprint());
      story.setDescricao("0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789" +
          "0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789" +
          "0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789" +
          "0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789" +
          "0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789" +
View Full Code Here

 
  public void testAlterarStoryInvalido() throws Exception {
    Story story = new Story(null, criarSprint(), Prioridade.MEDIA, "Implementa��o da classes de persist�ncia, servi�o e testes de unidade!");
    facade.inserir(story);
    assertNotNull(story.getId());
    story.setSprint(new Sprint());
    story.setDescricao("0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789" +
        "0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789" +
        "0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789" +
        "0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789" +
        "0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789" +
View Full Code Here

    assertNotNull(story.getId());
    return story;
  }
 
  protected Sprint criarSprint() throws Exception {
    Sprint sprint = new Sprint(null, criarProjeto(), new Date(), new Date());
    sprintDAO.inserir(sprint);
    assertNotNull(sprint.getId());
    return sprint;
  }
View Full Code Here

    return INPUT;
  }
 
  @Override
  protected void doNovo() throws Exception {
    sprint = new Sprint(null, getProjetoCorrente(), new Date(), null);
  }
View Full Code Here

  }
 
  @Override
  protected void doPesquisar() throws Exception {
    if (story == null) {
      Sprint sprint = new Sprint(null, getProjetoCorrente(), null, null);
      story = new Story(null, sprint, null, null);
    }
    story.setPrioridade(null);
    productBacklog = getFacade().pesquisar(story);
    story.setPrioridade(Prioridade.ALTA);
View Full Code Here

    assertNotNull(projeto.getId());
    return projeto;
  }
 
  protected Sprint criarSprint() throws Exception {
    Sprint sprint = new Sprint(null, criarProjeto(), new Date(), new Date());
    sprintService.inserir(sprint);
    assertNotNull(sprint.getId());
    return sprint;
  }
View Full Code Here

TOP

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

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.