Package br.com.moonjava.flight.jdbc

Examples of br.com.moonjava.flight.jdbc.DbUnit.load()


public class TesteDeCriarUsuario {

  @BeforeClass
  public void limparTabela() {
    DbUnit dbUnit = new DbUnit();
    dbUnit.load(new DbUnitFlightXml());
  }

  public void criar_usuario_com_sucesso() {
    UsuarioDAO dao = new UsuarioDAO();
    RequestParamWrapper request = new RequestParamWrapper();
View Full Code Here


public class TesteDeDeletarAeronave {

  @BeforeClass
  public void beforeClass() {
    DbUnit dbUnit = new DbUnit();
    dbUnit.load(new DbUnitFlightXml());
  }

  public void deletar() {
    PassagemDAO passagemDAO = new PassagemDAO();
    VooDAO vooDAO = new VooDAO();
View Full Code Here

public class TesteDeDeletarUsuario {

  @BeforeClass
  public void limparTabela() {
    DbUnit dbUnit = new DbUnit();
    dbUnit.load(new DbUnitFlightXml());
  }

  public void teste_deletar_usuario_por_id() {
    UsuarioDAO dao = new UsuarioDAO();
    RequestParamWrapper request = new RequestParamWrapper();
View Full Code Here

public class TesteDeConsultarPessoaFisica {

  @BeforeClass
  public void limparTabela() {
    DbUnit dbUnit = new DbUnit();
    dbUnit.load(new DbUnitFlightXml());
  }

  public void buscar_pessoaFisica_porCpf() {
    PessoaFisicaDAO dao = new PessoaFisicaDAO();
View Full Code Here

public class TesteDeConsultarVoo {

  @BeforeClass
  public void limparTabela() {
    DbUnit dbUnit = new DbUnit();
    dbUnit.load(new DbUnitFlightXml());
  }

  public void buscar_por_todos_voos_disponiveis() {
    VooDAO dao = new VooDAO();
    RequestParamWrapper request = new RequestParamWrapper();
View Full Code Here

public class TesteDeVenderPassagem {

  @BeforeClass
  public void beforeClass() {
    DbUnit dbUnit = new DbUnit();
    dbUnit.load(new DbUnitFlightXml());
  }

  public void vender_passagem_com_sucesso() {
    int vooId = 1;
    String codigo = new GerarCodigo("PASSAGEM").getCodigo();
View Full Code Here

public class TesteDeAtualizarAeronave {

  @BeforeClass
  public void limpaTabela() {
    DbUnit dbUnit = new DbUnit();
    dbUnit.load(new DbUnitFlightXml());
  }

  public void atualizar_aeronave_com_sucesso() {
    AeronaveDAO dao = new AeronaveDAO();
    RequestParamWrapper request = new RequestParamWrapper();
View Full Code Here

public class TesteDeAtualizarPassagem {

  @BeforeClass
  public void limparTabela() {
    DbUnit dbUnit = new DbUnit();
    dbUnit.load(new DbUnitFlightXml());
  }

  public void atualizar_passagem() {
    PassagemDAO dao = new PassagemDAO();
    RequestParamWrapper request = new RequestParamWrapper();
View Full Code Here

public class TesteDeCriarPessoaFisica {

  @BeforeClass
  public void limparTabela() {
    DbUnit dbUnit = new DbUnit();
    dbUnit.load(new DbUnitFlightXml());
  }

  public void criar_pf_com_sucesso() {
    PessoaFisicaDAO dao = new PessoaFisicaDAO();
    RequestParamWrapper request = new RequestParamWrapper();
View Full Code Here

public class TesteDeCriarAeronave {

  @BeforeClass
  public void beforeClass() {
    DbUnit dbUnit = new DbUnit();
    dbUnit.load(new DbUnitFlightXml());
  }

  public void criar_aeronave_com_sucesso() {
    String nome = "Teste 1";
    String codigo = new GerarCodigo("AERONAVE").getCodigo();
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.