Examples of Tarefa


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

    }
  }
 
  @Test
  public void testAlterarTarefa() throws Exception {
    Tarefa tarefa = new Tarefa(null, "Teste", criarUsuario(), criarStory(), Passo.TO_DO);
    tarefaService.inserir(tarefa);
    assertNotNull(tarefa.getId());
    tarefa.setPasso(Passo.DOING);
    tarefaService.alterar(tarefa);
    Tarefa tarefaAlterada = tarefaService.recuperar(tarefa.getId());
    assertEquals(Passo.DOING, tarefaAlterada.getPasso());
  }
View Full Code Here

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

    assertEquals(Passo.DOING, tarefaAlterada.getPasso());
  }
 
  public void testExcluirTarefaInvalido() throws Exception {
    try {
      Tarefa tarefa = new Tarefa(null, "Teste", criarUsuario(), criarStory(), Passo.TO_DO);
      tarefaService.inserir(tarefa);
      assertNotNull(tarefa.getId());
      tarefa.setId(null);
      tarefaService.excluir(tarefa);
    } catch (ValidationException e) {
      throwValidations(e);
    }
  }
View Full Code Here

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

    }
  }

  @Test
  public void testExcluirTarefa() throws Exception {
    Tarefa tarefa = new Tarefa(null, "Teste", criarUsuario(), criarStory(), Passo.TO_DO);
    tarefaService.inserir(tarefa);
    assertNotNull(tarefa.getId());
    tarefaService.excluir(tarefa);
    Tarefa tarefaExcluida = tarefaService.recuperar(tarefa.getId());
    assertNull(tarefaExcluida);
  }
View Full Code Here

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

    assertNull(tarefaExcluida);
  }
 
  public void testRecuperarTarefaInvalido() throws Exception {
    try {
      Tarefa terafa = new Tarefa(null, "Teste", criarUsuario(), criarStory(), Passo.DONE);
      tarefaService.inserir(terafa);
      assertNotNull(terafa.getId());
      Tarefa tarefaRecuperada = tarefaService.recuperar((Integer) null);
      assertNotNull(tarefaRecuperada);
    } catch (ValidationException e) {
      throwValidations(e);
    }
  }
View Full Code Here

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

    }
  }
 
  @Test
  public void testRecuperarTarefa() throws Exception {
    Tarefa terafa = new Tarefa(null, "Teste", criarUsuario(), criarStory(), Passo.DONE);
    tarefaService.inserir(terafa);
    assertNotNull(terafa.getId());
    Tarefa tarefaRecuperada = tarefaService.recuperar(terafa.getId());
    assertNotNull(tarefaRecuperada);
  }
View Full Code Here

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

    assertFalse(count == 0);
  }
 
  @Test
  public void testCountTarefa() throws Exception {
    long count = tarefaService.count(new Tarefa(null, null, null, null, Passo.DONE));
    assertFalse(count == 0);
  }
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.