File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 11package fr .france ;
22
3- import static org .junit .jupiter .api .Assertions .assertEquals ;
43import static org .hamcrest .MatcherAssert .assertThat ;
5- import static org .hamcrest .Matchers .containsInAnyOrder ;
64import static org .hamcrest .Matchers .hasItem ;
5+ import static org .junit .jupiter .api .Assertions .assertAll ;
6+ import static org .junit .jupiter .api .Assertions .assertEquals ;
7+ import static org .junit .jupiter .api .Assertions .assertNotNull ;
8+
9+ import java .util .Arrays ;
710import java .util .List ;
811import java .util .stream .Stream ;
912
@@ -58,4 +61,11 @@ void test_getCaumunes() {
5861 List <Caumune > caumunesHerault = Departement .HERAULT .getCaumunes ();
5962 assertThat (caumunesHerault , hasItem (RepertoireCaumune .rechercherParNomEtCodePostal ("Montpellier" , 34000 )));
6063 }
64+
65+ @ Test
66+ void test_getCaumunes_aucunNull () {
67+ for (Departement departement : Departement .values ()) {
68+ assertNotNull (departement .getCaumunes ());
69+ }
70+ }
6171}
You can’t perform that action at this time.
0 commit comments