Package controllerTeste

Examples of controllerTeste.CandidatoController


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


     * Test of getCandidato method, of class CandidatoController.
     */
    public void testGetCandidato() {
        System.out.println("CandidatoControllerTest - getCandidato");
        String codigo = "1";
        CandidatoController instance = new CandidatoController();
        int expResult = 1;
        int result = instance.getCandidato(codigo).getCodigoCandidato();
        assertEquals(expResult, result);
    }
View Full Code Here

     * Test of getCandidatoSemFiltro method, of class CandidatoController.
     */
    public void testGetCandidatoSemFiltro() {
        System.out.println("CandidatoControllerTest - getCandidatoSemFiltro");
        String codigo = "2";
        CandidatoController instance = new CandidatoController();
        int expResult = 2;
        int result = instance.getCandidatoSemFiltro(codigo).getCodigoCandidato();
        assertEquals(expResult, result);
    }
View Full Code Here

    public void testAtualizar() {
        System.out.println("CandidatoControllerTest - atualizar");
        String codigo = "1";
        Candidato pCandidato = new Candidato();
        pCandidato.setCodigoCandidato(Integer.parseInt(codigo));
        CandidatoController instance = new CandidatoController();
        boolean expResult = true;
        boolean result = instance.atualizar(pCandidato);
        assertEquals(expResult, result);
    }
View Full Code Here

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

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

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

TOP

Related Classes of controllerTeste.CandidatoController

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.