55import com .mapbox .geojson .Point ;
66
77import java .io .IOException ;
8+ import java .util .Arrays ;
89import java .util .List ;
910import org .junit .Assert ;
1011import org .junit .Test ;
@@ -21,8 +22,6 @@ public class DirectionsResponseTest extends TestUtils {
2122 private static final String DIRECTIONS_V5_MULTIPLE_ROUTES_WITH_OPTIONS =
2223 "directions_v5_multiple_routes_with_options.json" ;
2324 private static final String DIRECTIONS_V5_SILENT_WAYPOINT = "directions_v5_silent_waypoints.json" ;
24- private static final String DIRECTIONS_WAYPOINTS_WITHOUT_NAMES =
25- "directions_response_waypoints_without_names.json" ;
2625
2726 @ Test
2827 public void sanity () throws Exception {
@@ -115,7 +114,7 @@ public void fromJson_deserializesOptions() throws Exception {
115114 }
116115
117116 @ Test
118- public void fromJson_deserializeViaWaypoints () throws IOException {
117+ public void fromJson_deserializeWiaWaypoints () throws IOException {
119118 String json = loadJsonFixture (DIRECTIONS_V5_SILENT_WAYPOINT );
120119
121120 DirectionsRoute route = DirectionsResponse .fromJson (json ).routes ().get (0 );
@@ -139,14 +138,4 @@ public void fromToJsonForRouteWithSilentWaypoints() throws IOException {
139138
140139 assertEquals (initial , deserialized );
141140 }
142-
143- @ Test
144- public void fromJson_deserializeWaypointsWithoutNames () throws Exception {
145- String json = loadJsonFixture (DIRECTIONS_WAYPOINTS_WITHOUT_NAMES );
146-
147- DirectionsResponse response = DirectionsResponse .fromJson (json );
148-
149- assertNotNull (response );
150- assertEquals (2 , response .routes ().size ());
151- }
152141}
0 commit comments