Package controllerTeste

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


        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

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.