Package controllerTeste

Examples of controllerTeste.EmpresaController


    /**
     * Test of getNovoCodigo method, of class EmpresaController.
     */
    public void testGetNovoCodigo() {
        System.out.println("EmpresaControllerTest - getNovoCodigo");
        EmpresaController instance = new EmpresaController();
        String expResult = "1";
        String result = instance.getNovoCodigo();
        assertEquals(expResult, result);
    }
View Full Code Here


     * Test of getEmpresa method, of class EmpresaController.
     */
    public void testGetEmpresa() {
        System.out.println("EmpresaControllerTest - getEmpresa");
        String codigo = "1";
        EmpresaController instance = new EmpresaController();
        int expResult = 1;
        int result = instance.getEmpresa(codigo).getCodigoEmpresa();
        assertEquals(expResult, result);
    }
View Full Code Here

        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

        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

     * Test of excluir method, of class EmpresaController.
     */
    public void testExcluir() {
        System.out.println("EmpresaControllerTest - excluir");
        String codigo = "";
        EmpresaController instance = new EmpresaController();
        boolean expResult = true;
        boolean result = instance.excluir(codigo);
        assertEquals(expResult, result);
    }
View Full Code Here

TOP

Related Classes of controllerTeste.EmpresaController

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.