Fix resources path

This commit is contained in:
y.ridkous@gmail.com 2016-03-12 23:14:15 +02:00
parent 6de0cd3dcc
commit fc6562846d

View file

@ -41,14 +41,11 @@ public class RouteResultPreparationTest {
@BeforeClass @BeforeClass
public static void setUp() throws Exception { public static void setUp() throws Exception {
String fileName = "../../../osmand/Turn_lanes_test.obf"; String fileName = "../../resources/Turn_lanes_test.obf";
String fileName2 = "../../../osmand/World_basemap_2.obf";
File fl = new File(fileName); File fl = new File(fileName);
File fl2 = new File(fileName2);
RandomAccessFile raf = new RandomAccessFile(fl, "r"); RandomAccessFile raf = new RandomAccessFile(fl, "r");
RandomAccessFile raf2 = new RandomAccessFile(fl2, "r");
fe = new RoutePlannerFrontEnd(false); fe = new RoutePlannerFrontEnd(false);
RoutingConfiguration.Builder builder = RoutingConfiguration.getDefault(); RoutingConfiguration.Builder builder = RoutingConfiguration.getDefault();
@ -56,7 +53,7 @@ public class RouteResultPreparationTest {
params.put("car", "true"); params.put("car", "true");
params.put("short_way", "true"); params.put("short_way", "true");
RoutingConfiguration config = builder.build("car", RoutingConfiguration.DEFAULT_MEMORY_LIMIT * 3, params); RoutingConfiguration config = builder.build("car", RoutingConfiguration.DEFAULT_MEMORY_LIMIT * 3, params);
BinaryMapIndexReader[] binaryMapIndexReaders = {new BinaryMapIndexReader(raf2, fl2), new BinaryMapIndexReader(raf, fl)}; BinaryMapIndexReader[] binaryMapIndexReaders = {new BinaryMapIndexReader(raf, fl)};
ctx = fe.buildRoutingContext(config, null, binaryMapIndexReaders, ctx = fe.buildRoutingContext(config, null, binaryMapIndexReaders,
RoutePlannerFrontEnd.RouteCalculationMode.NORMAL); RoutePlannerFrontEnd.RouteCalculationMode.NORMAL);
ctx.leftSideNavigation = false; ctx.leftSideNavigation = false;