Package controllerTeste

Examples of controllerTeste.FormularioAvaliacaoController


        listaDeItens.add(item);
        item = new AvaliacaoItem(11, codigoFormulario,codigoAvaliacao,
                descricao[10], strAvaliacao, strComentario);
        listaDeItens.add(item);

        FormularioAvaliacaoController fomularioCtrl = new FormularioAvaliacaoController();
        Avaliacao avaliacao = new Avaliacao();
        avaliacao.setCodigoAvaliacao(codigoAvaliacao);

        FormularioAvaliacao formulario = new FormularioAvaliacao();
        formulario.setCodigoFormularioAvaliacao(codigoFormulario);
        formulario.setNomeAvaliador("Avaliador");
        formulario.setAvaliacao(avaliacao);
        formulario.setListaDeItens(listaDeItens);                       
       
        boolean expResult = true;
        boolean resultSalvar = fomularioCtrl.salvar(formulario);
        boolean resultAtualizar = fomularioCtrl.atualizar(formulario);
        assertEquals(expResult, resultSalvar);
        assertEquals(expResult, resultAtualizar);
    }
View Full Code Here

TOP

Related Classes of controllerTeste.FormularioAvaliacaoController

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.