fix test
This commit is contained in:
parent
1a169f9368
commit
110e81eb8c
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Reference in a new issue