forked from upstream-mirrors/OpenTracks
Fix warnings in test project.
This commit is contained in:
+1
-1
@@ -81,7 +81,7 @@ public class DescriptionGeneratorImplTest extends AndroidTestCase {
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests {@link DescriptionGeneratorImpl#generateWaypointDescription(Waypoint)}.
|
||||
* Tests {@link DescriptionGeneratorImpl#generateWaypointDescription(TripStatistics)}.
|
||||
*/
|
||||
public void testGenerateWaypointDescription() {
|
||||
Waypoint waypoint = new Waypoint();
|
||||
|
||||
-2
@@ -643,7 +643,6 @@ public class MyTracksProviderUtilsImplTest extends AndroidTestCase {
|
||||
* {@link MyTracksProviderUtilsImpl#createContentValues(Location, long)} and
|
||||
* the inner class {@link MyTracksProviderUtilsImpl.CachedTrackPointsIndexes}.
|
||||
*/
|
||||
@SuppressWarnings("javadoc")
|
||||
public void testBulkInsertTrackPoint() {
|
||||
// Insert track, point at first.
|
||||
long trackId = System.currentTimeMillis();
|
||||
@@ -735,7 +734,6 @@ public class MyTracksProviderUtilsImplTest extends AndroidTestCase {
|
||||
* test also covers the method
|
||||
* {@link MyTracksProviderUtilsImpl#createContentValues(Location, long)}.
|
||||
*/
|
||||
@SuppressWarnings("javadoc")
|
||||
public void testInsertTrackPoint() {
|
||||
// Insert track, point at first.
|
||||
long trackId = System.currentTimeMillis();
|
||||
|
||||
@@ -889,8 +889,7 @@ public class TrackDataHubTest extends AndroidTestCase {
|
||||
|
||||
/**
|
||||
* Tests the method {@link TrackDataHub#start()}. This method would also cover
|
||||
* some logic of {@link TrackDataHub#loadDataForAllListeners()} and
|
||||
* {@link TrackDataHub#notifyHeadingChanged(float)}.
|
||||
* some logic of {@link TrackDataHub#notifyHeadingChanged(float)}.
|
||||
*/
|
||||
public void testRegisterHeadingListener() {
|
||||
dataSource.registerOnSharedPreferenceChangeListener(capture(preferenceChangeListenerCapture));
|
||||
|
||||
+6
-3
@@ -18,10 +18,13 @@ package com.google.android.apps.mytracks.maps;
|
||||
import com.google.android.apps.mytracks.ColoredPath;
|
||||
import com.google.android.apps.mytracks.MapOverlay.CachedLocation;
|
||||
import com.google.android.apps.mytracks.TrackStubUtils;
|
||||
import com.google.android.maps.Projection;
|
||||
import com.google.android.maps.mytracks.R;
|
||||
import com.google.android.testing.mocking.AndroidMock;
|
||||
import com.google.android.testing.mocking.UsesMocks;
|
||||
|
||||
import android.graphics.Rect;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -56,7 +59,7 @@ public class DynamicSpeedTrackPathPainterTest extends TrackPathPainterTestCase {
|
||||
|
||||
/**
|
||||
* Tests the method
|
||||
* {@link DynamicSpeedTrackPathPainter#updatePath(com.google.android.maps.Projection, android.graphics.Rect, int, Boolean, java.util.List)}
|
||||
* {@link DynamicSpeedTrackPathPainter#updatePath(Projection, Rect, int, List)}
|
||||
* when all locations are invalid.
|
||||
*/
|
||||
public void testUpdatePath_AllInvalidLocation() {
|
||||
@@ -70,7 +73,7 @@ public class DynamicSpeedTrackPathPainterTest extends TrackPathPainterTestCase {
|
||||
|
||||
/**
|
||||
* Tests the
|
||||
* {@link DynamicSpeedTrackPathPainter#updatePath(com.google.android.maps.Projection, android.graphics.Rect, int, Boolean, java.util.List)}
|
||||
* {@link DynamicSpeedTrackPathPainter#updatePath(Projection, Rect, int, List)}
|
||||
* when all locations are valid.
|
||||
*/
|
||||
public void testUpdatePath_AllValidLocation() {
|
||||
@@ -89,7 +92,7 @@ public class DynamicSpeedTrackPathPainterTest extends TrackPathPainterTestCase {
|
||||
|
||||
/**
|
||||
* Tests the
|
||||
* {@link DynamicSpeedTrackPathPainter#updatePath(com.google.android.maps.Projection, android.graphics.Rect, int, Boolean, java.util.List)}
|
||||
* {@link DynamicSpeedTrackPathPainter#updatePath(Projection, Rect, int, List)}
|
||||
* when all locations are valid. This test setups 4 segments with 25 points
|
||||
* each. The first segment has slow speed, the second segment has normal
|
||||
* speed, the third segment has fast speed, and the fourth segment has slow
|
||||
|
||||
+7
-5
@@ -17,10 +17,12 @@ package com.google.android.apps.mytracks.maps;
|
||||
|
||||
import com.google.android.apps.mytracks.MapOverlay.CachedLocation;
|
||||
import com.google.android.apps.mytracks.TrackStubUtils;
|
||||
import com.google.android.maps.Projection;
|
||||
import com.google.android.testing.mocking.AndroidMock;
|
||||
import com.google.android.testing.mocking.UsesMocks;
|
||||
|
||||
import android.graphics.Path;
|
||||
import android.graphics.Rect;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -51,7 +53,7 @@ public class SingleColorTrackPathPainterTest extends TrackPathPainterTestCase {
|
||||
|
||||
/**
|
||||
* Tests the
|
||||
* {@link SingleColorTrackPathPainter#updatePath(com.google.android.maps.Projection, android.graphics.Rect, int, Boolean, List, Path)}
|
||||
* {@link SingleColorTrackPathPainter#updatePath(Projection, Rect, int, List)}
|
||||
* method when all locations are valid.
|
||||
*/
|
||||
public void testUpdatePath_AllValidLocation() {
|
||||
@@ -74,7 +76,7 @@ public class SingleColorTrackPathPainterTest extends TrackPathPainterTestCase {
|
||||
|
||||
/**
|
||||
* Tests the
|
||||
* {@link SingleColorTrackPathPainter#updatePath(com.google.android.maps.Projection, android.graphics.Rect, int, Boolean, List, Path)}
|
||||
* {@link SingleColorTrackPathPainter#updatePath(Projection, Rect, int, List)}
|
||||
* method when all locations are invalid.
|
||||
*/
|
||||
public void testUpdatePath_AllInvalidLocation() {
|
||||
@@ -89,9 +91,9 @@ public class SingleColorTrackPathPainterTest extends TrackPathPainterTestCase {
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests the {@link SingleColorTrackPathPainter#updatePath(com.google.android.maps.Projection,
|
||||
* android.graphics.Rect, int, Boolean, List, Path)} method when there are
|
||||
* three segments.
|
||||
* Tests the
|
||||
* {@link SingleColorTrackPathPainter#updatePath(Projection, Rect, int, List)}
|
||||
* method when there are three segments.
|
||||
*/
|
||||
public void testUpdatePath_ThreeSegments() {
|
||||
// First segment.
|
||||
|
||||
Reference in New Issue
Block a user