This commit is contained in:
Mylloon 2024-04-28 16:50:13 +02:00
parent 1a169f9368
commit 110e81eb8c
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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<List<StopEntry>> paths = new ArrayList<>(List.of(List.of(unidentifiedStop)));
//noinspection ArraysAsListWithZeroOrOneArgument
List<List<StopEntry>> 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);