Advertisement
bertolli27

Untitled

Nov 29th, 2015
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package DAO;
  7.  
  8. import Bean.Aluno;
  9. import junit.framework.Assert;
  10. import junit.framework.Test;
  11.  
  12. /**
  13. *
  14. * @author Nanda
  15. */
  16. public class TesteAlunoDao {
  17.  
  18. public TesteAlunoDao() {
  19.  
  20. }
  21.  
  22.  
  23. public void InsereDadosTest(){
  24.  
  25. Aluno aluno = new Aluno();
  26. aluno.nome = "Leo Stronda";
  27. aluno.endereco = "Rua rua";
  28. aluno.cidade = "pg";
  29. aluno.estado = "paraná";
  30. aluno.telCelular = "42 91091951";
  31. aluno.cpf = "39725273818";
  32. //aluno.status = "";
  33.  
  34. AlunoDAO alunodao = new AlunoDAO();
  35. boolean result = alunodao.inserirAlunos(aluno);
  36.  
  37.  
  38. Assert.assertEquals("Cadastro Realizado com sucesso!", result);
  39. }
  40.  
  41.  
  42.  
  43. // TODO add test methods here.
  44. // The methods must be annotated with annotation @Test. For example:
  45. //
  46. // @Test
  47. // public void hello() {}
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement