Examples of Sprint


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

    }
  }

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

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

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

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

    }
  }
 
  @Test
  public void testAlterarSprint() throws Exception {
    Sprint sprint = new Sprint(null, criarProjeto(), new Date(), new Date());
    sprintService.inserir(sprint);
    assertNotNull(sprint.getId());
    Date dataInicio = new SimpleDateFormat("dd/MM/yyyy").parse("01/01/2010");
    sprint.setDataInicio(dataInicio);
    sprintService.alterar(sprint);
    Sprint sprintAlterado = sprintService.recuperar(sprint.getId());
    assertEquals(dataInicio, sprintAlterado.getDataInicio());
  }
View Full Code Here

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

    assertEquals(dataInicio, sprintAlterado.getDataInicio());
  }
 
  public void testExcluirSprintInvalido() throws Exception {
    try {
      Sprint sprint = new Sprint(null, criarProjeto(), new Date(), new Date());
      sprintService.inserir(sprint);
      assertNotNull(sprint.getId());
      sprint.setId(null);
      sprintService.excluir(sprint);
    } catch (ValidationException e) {
      throwValidations(e);
    }
  }
View Full Code Here

Examples of pl.edu.pb.entities.Sprint

    @Resource
    UserTransaction utx;
   
    protected Sprint createFirstSprint()
    {
        Sprint s = new Sprint();
        s.setStartTime(new Date());
        return s;
    }
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.