File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 11package fr .france ;
22
3+ import org .hamcrest .Matcher ;
4+
35import fr .france .outils .OutilsDepartement ;
46import fr .france .outils .OutilsRegion ;
57
@@ -162,4 +164,8 @@ public String getNom() {
162164 return nom ;
163165 }
164166
167+ public Matcher getCaumunes () {
168+ return null ;
169+ }
170+
165171}
Original file line number Diff line number Diff line change @@ -49,4 +49,16 @@ void test_rechercheParDepartement() {
4949 assertEquals (Region .PROVENCE_ALPES_COTE_D_AZUR , Region .rechercherParDepartement (Departement .VAUCLUSE ));
5050 }
5151
52+ @ Test
53+ void test_getCaumunes () {
54+ List <Caumune > excepted = new ArrayList <>();
55+ excepted .addAll (Departement .ALPES_DE_HAUTES_PROVENCE .getCaumunes ());
56+ excepted .addAll (Departement .HAUTES_ALPES .getCaumunes ());
57+ excepted .addAll (Departement .ALPES_MARITIMES .getCaumunes ());
58+ excepted .addAll (Departement .BOUCHES_DU_RHONE .getCaumunes ());
59+ excepted .addAll (Departement .VAR .getCaumunes ());
60+ excepted .addAll (Departement .VAUCLUSE .getCaumunes ());
61+ assertThat (excepted , containsInAnyOrder (Region .PROVENCE_ALPES_COTE_D_AZUR .getCaumunes ()));
62+ }
63+
5264}
You can’t perform that action at this time.
0 commit comments