Package controllerTeste

Examples of controllerTeste.AlunoController


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


     * Test of getAluno method, of class AlunoController.
     */
    public void testGetAluno() {
        System.out.println("AlunoControllerTest - getAluno");
        String codigo = "1";
        AlunoController instance = new AlunoController();
        int expResult = 1;
        int result = instance.getAluno(codigo).getCodigoAluno();
        assertEquals(expResult, result);
    }
View Full Code Here

    public void testAtualizar() {
        System.out.println("AlunoControllerTest - atualizar");
        String codigo = "1";
        Aluno pAluno = new Aluno();
        pAluno.setCodigoAluno(Integer.parseInt(codigo));
        AlunoController instance = new AlunoController();
        boolean expResult = true;
        boolean result = instance.atualizar(pAluno);
        assertEquals(expResult, result);
    }
View Full Code Here

    public void testSalvar() {
        System.out.println("AlunoControllerTest - salvar");
        String codigo = "1";
        Aluno pAluno = new Aluno();
        pAluno.setCodigoAluno(Integer.parseInt(codigo));
        AlunoController instance = new AlunoController();
        boolean expResult = true;
        boolean result = instance.salvar(pAluno);
        assertEquals(expResult, result);
    }
View Full Code Here

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

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

TOP

Related Classes of controllerTeste.AlunoController

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.