Examples of salvar()


Examples of controllerTeste.AlunoController.salvar()

        String codigo = "1";
        Aluno pAluno = new Aluno();
        pAluno.setCodigoAluno(Integer.parseInt(codigo));
        AlunoController instance = new AlunoController();
        boolean expResult = true;
        boolean result = instance.salvar(pAluno);
        assertEquals(expResult, result);
    }

    /**
     * Test of excluir method, of class AlunoController.
View Full Code Here

Examples of controllerTeste.AulaAvaliativaController.salvar()

        String codigo = "1";
        AulaAvaliativa pAulaAvaliativa = new AulaAvaliativa();
        pAulaAvaliativa.setCodigoAulaAvaliativa(Integer.parseInt(codigo));
        AulaAvaliativaController instance = new AulaAvaliativaController();
        boolean expResult = true;
        boolean result = instance.salvar(pAulaAvaliativa);
        assertEquals(expResult, result);
    }

    /**
     * Test of excluir method, of class AulaAvaliativaController.
View Full Code Here

Examples of controllerTeste.AvaliacaoController.salvar()

        String codigo = "1";
        Avaliacao pAvaliacao = new Avaliacao();
        pAvaliacao.setCodigoAvaliacao(Integer.parseInt(codigo));
        AvaliacaoController instance = new AvaliacaoController();
        boolean expResult = true;
        boolean result = instance.salvar(pAvaliacao);
        assertEquals(expResult, result);
    }

    /**
     * Test of excluir method, of class AvaliacaoController.
View Full Code Here

Examples of controllerTeste.CandidatoController.salvar()

        String codigo = "1";
        Candidato pCandidato = new Candidato();
        pCandidato.setCodigoCandidato(Integer.parseInt(codigo));
        CandidatoController instance = new CandidatoController();
        boolean expResult = true;
        boolean result = instance.salvar(pCandidato);
        assertEquals(expResult, result);
    }

    /**
     * Test of excluir method, of class CandidatoController.
View Full Code Here

Examples of controllerTeste.ContatoController.salvar()

        String codigo = "1";
        Contato pContato = new Contato();
        pContato.setCodigoContato(Integer.parseInt(codigo));
        ContatoController instance = new ContatoController();
        boolean expResult = true;
        boolean result = instance.salvar(pContato);
        assertEquals(expResult, result);
    }

    /**
     * Test of excluir method, of class ContatoController.
View Full Code Here

Examples of controllerTeste.ContatoController.salvar()

        contato.setTermino("10:34");
        contato.setData("06/12/2008");       
        contato.setObjetivo("Objetivo do Contato");                       
       
        boolean expResult = true;
        boolean resultSalvar = contatoController.salvar(contato);
        boolean resultAtualizar = contatoController.atualizar(contato);
        assertEquals(expResult, resultSalvar);
        assertEquals(expResult, resultAtualizar);
    }
}
View Full Code Here

Examples of controllerTeste.DocenteController.salvar()

        String codigo = "1";
        Docente pDocente = new Docente();
        pDocente.setCodigoDocente(Integer.parseInt(codigo));
        DocenteController instance = new DocenteController();
        boolean expResult = true;
        boolean result = instance.salvar(pDocente);
        assertEquals(expResult, result);
    }

    /**
     * Test of excluir method, of class DocenteController.
View Full Code Here

Examples of controllerTeste.EmpresaController.salvar()

        Empresa pEmpresa = new Empresa();
        pEmpresa.setCodigoEmpresa(Integer.parseInt(codigo));
        pEmpresa.setCodigoPessoa(Integer.parseInt(codigo));
        EmpresaController instance = new EmpresaController();
        boolean expResult = true;
        boolean result = instance.salvar(pEmpresa);
        assertEquals(expResult, result);
    }

    /**
     * Test of excluir method, of class EmpresaController.
View Full Code Here

Examples of controllerTeste.EnderecoController.salvar()

        String codigo = "1";
        Endereco pEndereco = new Endereco();
        pEndereco.setCodigoEndereco(Integer.parseInt(codigo));
        EnderecoController instance = new EnderecoController();
        boolean expResult = true;
        boolean result = instance.salvar(pEndereco);
        assertEquals(expResult, result);
    }

    /**
     * Test of excluir method, of class EnderecoController.
View Full Code Here

Examples of controllerTeste.EstagiarioController.salvar()

        pEstagiario.setCodigoPessoa(Integer.parseInt(codigo));
        pEstagiario.setCodigoAluno(Integer.parseInt(codigo));
        pEstagiario.setCodigoEstagiario(Integer.parseInt(codigo));
        EstagiarioController instance = new EstagiarioController();
        boolean expResult = true;
        boolean result = instance.salvar(pEstagiario);
        assertEquals(expResult, result);
    }

    /**
     * Test of excluir method, of class EstagiarioController.
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.