Package controllerTeste

Examples of controllerTeste.EnderecoController


     * Test of getEndereco method, of class EnderecoController.
     */
    public void testGetEndereco() {
        System.out.println("EnderecoControllerTest - getEndereco");
        String codigo = "1";
        EnderecoController instance = new EnderecoController();
        int expResult = 1;
        int result = instance.getEndereco(codigo).getPessoa().getCodigoPessoa();
        assertEquals(expResult, result);
    }
View Full Code Here


    public void testAtualizar() {
        System.out.println("EnderecoControllerTest - atualizar");
        String codigo = "1";
        Endereco pEndereco = new Endereco();
        pEndereco.setCodigoEndereco(Integer.parseInt(codigo));
        EnderecoController instance = new EnderecoController();
        boolean expResult = true;
        boolean result = instance.atualizar(pEndereco);
        assertEquals(expResult, result);
    }
View Full Code Here

    public void testSalvar() {
        System.out.println("EnderecoControllerTest - 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);
    }
View Full Code Here

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

TOP

Related Classes of controllerTeste.EnderecoController

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.