Package model

Examples of model.Empresa


    private EmpresaDAO empresaDAO;
    private PessoaController pessoaCtrl;
    private EnderecoController enderecoCtrl;
   
    public EmpresaController() {
        this.empresa = new Empresa();
        this.empresaDAO = new EmpresaDAO();
        this.pessoaCtrl = new PessoaController();
        this.enderecoCtrl = new EnderecoController();
    }
View Full Code Here


     * Test of atualizar method, of class EmpresaController.
     */
    public void testAtualizar() {
        System.out.println("EmpresaControllerTest - atualizar");
        String codigo = "1";
        Empresa pEmpresa = new Empresa();
        pEmpresa.setCodigoEmpresa(Integer.parseInt(codigo));
        pEmpresa.setCodigoPessoa(Integer.parseInt(codigo));
        EmpresaController instance = new EmpresaController();
        boolean expResult = true;
        boolean result = instance.atualizar(pEmpresa);
        assertEquals(expResult, result);
    }
View Full Code Here

     * Test of salvar method, of class EmpresaController.
     */
    public void testSalvar() {
        System.out.println("EmpresaControllerTest - salvar");
        String codigo = "1";
        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);
    }
View Full Code Here

TOP

Related Classes of model.Empresa

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.