/** * Test Example map * * <p>^ [R1] >[R2][J2][J3] [J0][J1][R2]> [R1] ^ */ @Test public void testOverLapBetweenZerothEntrySecondExitAndFirstEntryThirdExit() { List<LaneSection> route = junction.produceRoute(new Point(1, 1), new Point(1, 3)); List<LaneSection> anotherRoute = junction.produceRoute(new Point(1, 3), new Point(3, 3)); assertEquals(route.get(1), anotherRoute.get(0)); }
/** * Test Example map * * <p>[J2][J3][R2]> <[R1][J0][J1] [R1] [R2] ^ */ @Test public void testOverLapBetweenZerothEntryFirstExitAndThirdExit() { List<LaneSection> r1 = junction.produceRoute(new Point(1, 1), new Point(1, 1)); List<LaneSection> r2 = junction.produceRoute(new Point(1, 1), new Point(3, 3)); assertEquals(r1.get(0), r2.get(0)); }