Package org.universa.tcc.gemda.entidade

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


    }
  }
 
  @Test
  public void testAlterarStory() throws Exception {
    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.setDescricao("Implementar a c�mada de interface de usu�rio!");
    storyService.alterar(story);
    Story storyAlterada = storyService.recuperar(story.getId());
    assertEquals("Implementar a c�mada de interface de usu�rio!", storyAlterada.getDescricao());
  }
View Full Code Here


    assertEquals("Implementar a c�mada de interface de usu�rio!", storyAlterada.getDescricao());
  }
 
  public void testExcluirStoryInvalido() 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.setId(null);
      storyService.excluir(story);
      Story storyExcluida = storyService.recuperar(story.getId());
      assertNull(storyExcluida);
    } catch (ValidationException e) {
      throwValidations(e);
    }
  }
View Full Code Here

    }
  }
 
  @Test
  public void testExcluirStory() throws Exception {
    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());
    storyService.excluir(story);
    Story storyExcluida = storyService.recuperar(story.getId());
    assertNull(storyExcluida);
  }
View Full Code Here

    assertNull(storyExcluida);
  }
 
  public void testRecuperarStoryInvalido() throws Exception {
    try {
      Story story = new Story(null, criarSprint(), Prioridade.MEDIA, "Teste!");
      storyService.inserir(story);
      assertNotNull(story.getId());
      Story storyRecuperada = storyService.recuperar((Integer) null);
      assertNotNull(storyRecuperada);
    } catch (ValidationException e) {
      throwValidations(e);
    }
  }
View Full Code Here

    }
  }
 
  @Test
  public void testRecuperarStory() throws Exception {
    Story story = new Story(null, criarSprint(), Prioridade.MEDIA, "Teste!");
    storyService.inserir(story);
    assertNotNull(story.getId());
    Story storyRecuperada = storyService.recuperar(story.getId());
    assertNotNull(storyRecuperada);
  }
View Full Code Here

    assertFalse(stories.isEmpty());
  }
 
  @Test
  public void testPesquisarStories() throws Exception {
    Collection<Story> stories = storyService.pesquisar(new Story(null, null, Prioridade.MEDIA, null));
    assertFalse(stories.isEmpty());
  }
View Full Code Here

    assertFalse(count == 0);
  }
 
  @Test
  public void testCountStory() throws Exception {
    long count = storyService.count(new Story(null, null, Prioridade.MEDIA, null));
    assertFalse(count == 0);
  }
View Full Code Here

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

public class FacadeStoryTest extends FacadeTestCase {

  public void testInserirStoryInvalido() throws Exception {
    Story story = new Story();
    facade.inserir(story);
    assertNotNull(story.getId());
  }
View Full Code Here

    assertNotNull(story.getId());
  }

  @Test
  public void testInserirStory() 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());
  }
View Full Code Here

    facade.inserir(story);
    assertNotNull(story.getId());
  }
 
  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" +
        "0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789" +
View Full Code Here

TOP

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

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.