Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void testReadFileCidadao() {
- System.out.println("readFileCidadao");
- FileReader instance = new FileReader();
- GestaoReparticao reparticao = new GestaoReparticao();
- Set<Cidadao> cidadaos = reparticao.getSetCidadao();
- Cidadao cid = new Cidadao("Ana", 111222333, "ana@gmail.com", "4200-072", 1234);
- Cidadao cid1 = new Cidadao("Berta", 223344, "berta@gmail.com", "4200-071", 1234);
- Cidadao cid2 = new Cidadao("Manuel", 584769, "manuel@gmail.com", "4715-357", 5762);
- Cidadao cid3 = new Cidadao("Pedro", 53263622, "pedro@gmail.com", "4400-321", 3421);
- Cidadao cid4 = new Cidadao("Beatriz", 3121121, "beatriz@gmail.com", "4400-123", 2543);
- Cidadao cid5 = new Cidadao("Joao", 2311212, "joao@gmail.com", "4450-321", 1243);
- cidadaos.add(cid);
- cidadaos.add(cid1);
- cidadaos.add(cid2);
- cidadaos.add(cid3);
- cidadaos.add(cid4);
- cidadaos.add(cid5);
- Set<Cidadao> expResult = cidadaos;
- instance.readFileCidadao();
- Set<Cidadao> result = instance.getCidadaos();
- assertEquals(expResult, result);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement