Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package DAO;
- import Bean.Aluno;
- import junit.framework.Assert;
- import junit.framework.Test;
- /**
- *
- * @author Nanda
- */
- public class TesteAlunoDao {
- public TesteAlunoDao() {
- }
- public void InsereDadosTest(){
- Aluno aluno = new Aluno();
- aluno.nome = "Leo Stronda";
- aluno.endereco = "Rua rua";
- aluno.cidade = "pg";
- aluno.estado = "paraná";
- aluno.telCelular = "42 91091951";
- aluno.cpf = "39725273818";
- //aluno.status = "";
- AlunoDAO alunodao = new AlunoDAO();
- boolean result = alunodao.inserirAlunos(aluno);
- Assert.assertEquals("Cadastro Realizado com sucesso!", result);
- }
- // TODO add test methods here.
- // The methods must be annotated with annotation @Test. For example:
- //
- // @Test
- // public void hello() {}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement