Advertisement
Guest User

Untitled

a guest
Oct 15th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. public void testReadFileCidadao() {
  2. System.out.println("readFileCidadao");
  3.  
  4. FileReader instance = new FileReader();
  5.  
  6. GestaoReparticao reparticao = new GestaoReparticao();
  7. Set<Cidadao> cidadaos = reparticao.getSetCidadao();
  8.  
  9. Cidadao cid = new Cidadao("Ana", 111222333, "ana@gmail.com", "4200-072", 1234);
  10. Cidadao cid1 = new Cidadao("Berta", 223344, "berta@gmail.com", "4200-071", 1234);
  11. Cidadao cid2 = new Cidadao("Manuel", 584769, "manuel@gmail.com", "4715-357", 5762);
  12. Cidadao cid3 = new Cidadao("Pedro", 53263622, "pedro@gmail.com", "4400-321", 3421);
  13. Cidadao cid4 = new Cidadao("Beatriz", 3121121, "beatriz@gmail.com", "4400-123", 2543);
  14. Cidadao cid5 = new Cidadao("Joao", 2311212, "joao@gmail.com", "4450-321", 1243);
  15.  
  16. cidadaos.add(cid);
  17. cidadaos.add(cid1);
  18. cidadaos.add(cid2);
  19. cidadaos.add(cid3);
  20. cidadaos.add(cid4);
  21. cidadaos.add(cid5);
  22.  
  23. Set<Cidadao> expResult = cidadaos;
  24.  
  25. instance.readFileCidadao();
  26. Set<Cidadao> result = instance.getCidadaos();
  27.  
  28. assertEquals(expResult, result);
  29.  
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement