Examples of Tarefa


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

public class TarefaDAOTest extends DAOTestCase {
 
  @Test
  public void testInserirTarefa() throws Exception {
    Tarefa tarefa = new Tarefa(null, "Implementar as classes de dom�nio do GeMDA!", criarUsuario(), criarStory(), Passo.TO_DO);
    tarefaDAO.inserir(tarefa);
    assertNotNull(tarefa.getId());
  }
View Full Code Here

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

    assertNotNull(tarefa.getId());
  }
 
  @Test
  public void testAlterarTarefa() throws Exception {
    Tarefa tarefa = new Tarefa(null, "Teste", criarUsuario(), criarStory(), Passo.TO_DO);
    tarefaDAO.inserir(tarefa);
    assertNotNull(tarefa.getId());
    tarefa.setPasso(Passo.DOING);
    tarefaDAO.alterar(tarefa);
    Tarefa tarefaAlterada = tarefaDAO.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());
  }

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

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

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

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

    assertNotNull(projeto.getId());
    return projeto;
  }
 
  protected Tarefa criarTarefa() throws Exception {
    Tarefa tarefa = new Tarefa(null, "Criar a camada de fachada.", criarUsuario(), criarStory(), Passo.TO_DO);
    facade.inserir(tarefa);
    assertNotNull(tarefa.getId());
    return tarefa;
  }
View Full Code Here

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

import org.universa.tcc.gemda.entidade.Usuario;

public class FacadeTarefaTest extends FacadeTestCase {

  public void testInserirTarefaInvalido() throws Exception {
    Tarefa tarefa = new Tarefa();
    facade.inserir(tarefa);
    assertNotNull(tarefa.getId());
  }
View Full Code Here

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

    assertNotNull(tarefa.getId());
  }
 
  @Test
  public void testInserirTarefa() throws Exception {
    Tarefa tarefa = new Tarefa(null, "Implementar as classes de dom�nio do GeMDA!", criarUsuario(), criarStory(), Passo.TO_DO);
    facade.inserir(tarefa);
    assertNotNull(tarefa.getId());
  }
View Full Code Here

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

    facade.inserir(tarefa);
    assertNotNull(tarefa.getId());
  }
 
  public void testAlterarTarefaInvalido() throws Exception {
    Tarefa tarefa = new Tarefa(null, "Teste", criarUsuario(), criarStory(), Passo.TO_DO);
    facade.inserir(tarefa);
    assertNotNull(tarefa.getId());
    tarefa.setUsuario(new Usuario());
    tarefa.setStory(new Story());
    tarefa.setDescricao("");
    tarefa.setPasso(null);
    facade.alterar(tarefa);
    Tarefa tarefaAlterada = facade.recuperar(Tarefa.class, tarefa.getId());
    assertEquals(Passo.DOING, tarefaAlterada.getPasso());
  }
View Full Code Here

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

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

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

    Tarefa tarefaAlterada = facade.recuperar(Tarefa.class, tarefa.getId());
    assertEquals(Passo.DOING, tarefaAlterada.getPasso());
  }
 
  public void testExcluirTarefaInvalido() throws Exception {
    Tarefa tarefa = new Tarefa(null, "Teste", criarUsuario(), criarStory(), Passo.TO_DO);
    facade.inserir(tarefa);
    assertNotNull(tarefa.getId());
    tarefa.setId(null);
    facade.excluir(tarefa);
  }
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.