Package controllerTeste

Examples of controllerTeste.DocenteController


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


     * Test of getDocente method, of class DocenteController.
     */
    public void testGetDocente() {
        System.out.println("DocenteControllerTest - getDocente");
        String codigo = "1";
        DocenteController instance = new DocenteController();
        int expResult = 1;
        int result = instance.getDocente(codigo).getCodigoDocente();
        assertEquals(expResult, result);
    }
View Full Code Here

    public void testAtualizar() {
        System.out.println("DocenteControllerTest - atualizar");
        String codigo = "1";
        Docente pDocente = new Docente();
        pDocente.setCodigoDocente(Integer.parseInt(codigo));
        DocenteController instance = new DocenteController();
        boolean expResult = true;
        boolean result = instance.atualizar(pDocente);
        assertEquals(expResult, result);
    }
View Full Code Here

    public void testSalvar() {
        System.out.println("DocenteControllerTest - salvar");
        String codigo = "1";
        Docente pDocente = new Docente();
        pDocente.setCodigoDocente(Integer.parseInt(codigo));
        DocenteController instance = new DocenteController();
        boolean expResult = true;
        boolean result = instance.salvar(pDocente);
        assertEquals(expResult, result);
    }
View Full Code Here

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

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

TOP

Related Classes of controllerTeste.DocenteController

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.