/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package testes.unidade;
import controllerTeste.AulaAvaliativaController;
import junit.framework.TestCase;
import model.AulaAvaliativa;
/**
*
* @author Sheila
*/
public class AulaAvaliativaControllerTest extends TestCase {
public AulaAvaliativaControllerTest(String testName) {
super(testName);
}
@Override
protected void setUp() throws Exception {
super.setUp();
}
@Override
protected void tearDown() throws Exception {
super.tearDown();
}
/**
* Test of getNovoCodigo method, of class AulaAvaliativaController.
*/
public void testGetNovoCodigo() {
System.out.println("AulaAvaliativaControllerTest - getNovoCodigo");
AulaAvaliativaController instance = new AulaAvaliativaController();
String expResult = "1";
String result = instance.getNovoCodigo();
assertEquals(expResult, result);
}
/**
* Test of getAulaAvaliativa method, of class AulaAvaliativaController.
*/
public void testGetAulaAvaliativa() {
System.out.println("AulaAvaliativaControllerTest - getAulaAvaliativa");
String codigo = "1";
AulaAvaliativaController instance = new AulaAvaliativaController();
int expResult = 1;
int result = instance.getAulaAvaliativa(codigo).getCodigoAulaAvaliativa();
assertEquals(expResult, result);
}
/**
* Test of atualizar method, of class AulaAvaliativaController.
*/
public void testAtualizar() {
System.out.println("AulaAvaliativaControllerTest - atualizar");
String codigo = "1";
AulaAvaliativa pAulaAvaliativa = new AulaAvaliativa();
pAulaAvaliativa.setCodigoAulaAvaliativa(Integer.parseInt(codigo));
AulaAvaliativaController instance = new AulaAvaliativaController();
boolean expResult = true;
boolean result = instance.atualizar(pAulaAvaliativa);
assertEquals(expResult, result);
}
/**
* Test of salvar method, of class AulaAvaliativaController.
*/
public void testSalvar() {
System.out.println("AulaAvaliativaControllerTest - salvar");
String codigo = "1";
AulaAvaliativa pAulaAvaliativa = new AulaAvaliativa();
pAulaAvaliativa.setCodigoAulaAvaliativa(Integer.parseInt(codigo));
AulaAvaliativaController instance = new AulaAvaliativaController();
boolean expResult = true;
boolean result = instance.salvar(pAulaAvaliativa);
assertEquals(expResult, result);
}
/**
* Test of excluir method, of class AulaAvaliativaController.
*/
public void testExcluir() {
System.out.println("AulaAvaliativaControllerTest - excluir");
String pCodigoAulaAvaliativa = "1";
AulaAvaliativaController instance = new AulaAvaliativaController();
boolean expResult = true;
boolean result = instance.excluir(pCodigoAulaAvaliativa);
assertEquals(expResult, result);
}
/**
* Test of reprocessar method, of class AulaAvaliativaController.
*/
public void testReprocessar() {
System.out.println("AulaAvaliativaControllerTest - reprocessar");
String pCodigoAulaAvaliativa = "1";
AulaAvaliativaController instance = new AulaAvaliativaController();
boolean expResult = true;
boolean result = instance.reprocessar(pCodigoAulaAvaliativa);
assertEquals(expResult, result);
}
/**
* Test of aprovarCandidato method, of class AulaAvaliativaController.
*/
public void testAprovarCandidato() {
System.out.println("AulaAvaliativaControllerTest - aprovarCandidato");
String pCodigoAulaAvaliativa = "1";
AulaAvaliativaController instance = new AulaAvaliativaController();
boolean expResult = true;
boolean result = instance.aprovarCandidato(pCodigoAulaAvaliativa);
assertEquals(expResult, result);
}
}