diff --git a/src/test/java/fr/u_paris/gla/project/idfm/IDFMNetworkExtractorTest.java b/src/test/java/fr/u_paris/gla/project/idfm/IDFMNetworkExtractorTest.java index ac4f00e..7bdc38d 100644 --- a/src/test/java/fr/u_paris/gla/project/idfm/IDFMNetworkExtractorTest.java +++ b/src/test/java/fr/u_paris/gla/project/idfm/IDFMNetworkExtractorTest.java @@ -6,6 +6,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue; import java.lang.reflect.Method; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Test; @@ -27,7 +28,8 @@ class IDFMNetworkExtractorTest { unidentifiedStop.addCandidate(closeCandidate); // Liste des chemins contenant l'arrêt non identifié - List> paths = new ArrayList<>(List.of(List.of(unidentifiedStop))); + //noinspection ArraysAsListWithZeroOrOneArgument + List> paths = new ArrayList<>(Arrays.asList(Arrays.asList(unidentifiedStop))); // Accès à la méthode cleanLine via la réflexion Method cleanLineMethod = IDFMNetworkExtractor.class.getDeclaredMethod("cleanLine", List.class);