File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change 11package fr .france ;
22
33import java .io .FileNotFoundException ;
4- import java .io .FileReader ;
54import java .io .InputStream ;
65import java .io .InputStreamReader ;
76import java .io .Reader ;
@@ -68,8 +67,6 @@ private static List<Commune> initCommunes() {
6867 Map <String , List <Commune >> noms = new HashMap <>();
6968 Map <String , Commune > nomEtCodePostal = new HashMap <>();
7069 for (Commune Commune : COMMUNES ) {
71- if (Commune .getNom () == null )
72- continue ;
7370 nomEtCodePostal .put (OutilsString .formater (Commune .getNom ()) + Commune .getCodePostal (), Commune );
7471 List <Commune > villesNom = noms .computeIfAbsent (OutilsString .formater (Commune .getNom ()),
7572 k -> new ArrayList <>());
Original file line number Diff line number Diff line change 11package fr .france ;
22
3- import static org .junit .jupiter .api .Assertions .assertEquals ;
4- import static org .junit .jupiter .api .Assertions .assertNotEquals ;
5- import static org .junit .jupiter .api .Assertions .assertNotNull ;
6-
73import java .util .Collections ;
84import java .util .List ;
95
106import org .junit .jupiter .api .Test ;
117
8+ import static org .junit .jupiter .api .Assertions .*;
9+
1210class RepertoireCommuneTest {
1311
1412 @ Test
You can’t perform that action at this time.
0 commit comments