-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into remove-telemetry-e…
…vents
- Loading branch information
Showing
15 changed files
with
1,291 additions
and
1,593 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...ion/src/test/java/com/mapbox/services/android/navigation/v5/TestRouteProgressBuilder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...pbox/services/android/navigation/v5/location/replay/ReplayRouteLocationConverterTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.mapbox.services.android.navigation.v5.location.replay; | ||
|
||
import com.mapbox.geojson.LineString; | ||
import com.mapbox.geojson.Point; | ||
|
||
import org.junit.Test; | ||
|
||
import java.util.List; | ||
|
||
public class ReplayRouteLocationConverterTest { | ||
|
||
|
||
@Test | ||
public void testSliceRouteWithEmptyLineString() { | ||
ReplayRouteLocationConverter replayRouteLocationConverter = new ReplayRouteLocationConverter(null, 100, 1); | ||
List<Point> result = replayRouteLocationConverter.sliceRoute(LineString.fromJson("")); | ||
|
||
assert (result.isEmpty()); | ||
} | ||
|
||
@Test | ||
public void testSliceRouteWithNullLineString() { | ||
ReplayRouteLocationConverter replayRouteLocationConverter = new ReplayRouteLocationConverter(null, 100, 1); | ||
List<Point> result = replayRouteLocationConverter.sliceRoute(null); | ||
|
||
assert (result.isEmpty()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.