Gendreau06Parser { public static Gendreau06Scenario parse(File file) { return parser().addFile(file).parse().get(0); } private  Gendreau06Parser(); static Gendreau06Parser parser(); static Gendreau06Scenario parse(File file); static Function<Path, Gendreau06Scenario> reader(); Gendreau06Parser addFile(File file); Gendreau06Parser addFile(String file); Gendreau06Parser addFile(InputStream stream, String fileName); Gendreau06Parser addFile(ImmutableList<AddParcelEvent> events,
      String fileName); Gendreau06Parser addDirectory(String dir); Gendreau06Parser addDirectory(File dir); Gendreau06Parser allowDiversion(); Gendreau06Parser offline(); Gendreau06Parser realtime(); Gendreau06Parser setNumVehicles(int num); Gendreau06Parser setNumParcels(int num); Gendreau06Parser setTickSize(long tick); Gendreau06Parser filter(GendreauProblemClass... classes); ImmutableList<Gendreau06Scenario> parse(); Function<Path, Gendreau06Scenario> asParseFunction();  }
@Test(expected = IllegalArgumentException.class) public void parseWrongFileName() { Gendreau06Parser .parse(new File("pointer/to/non-existing/file/req_rapide_1_240_24")); }
@Test(expected = IllegalArgumentException.class) public void invalidFileNameTest1() { parse(new File("req_rapide_1_240_25")); }