forked from upstream-mirrors/OpenTracks
Cleanup: SegmentStatisticUpdaterTest.
This commit is contained in:
+1
-1
@@ -38,7 +38,7 @@ import de.dennisguse.opentracks.data.models.Speed;
|
|||||||
* @author Rodrigo Damazio
|
* @author Rodrigo Damazio
|
||||||
*/
|
*/
|
||||||
@RunWith(AndroidJUnit4.class)
|
@RunWith(AndroidJUnit4.class)
|
||||||
public class TrackStatisticsTest {
|
public class SegmentStatisticUpdaterTest {
|
||||||
|
|
||||||
private SegmentStatisticUpdater statistics;
|
private SegmentStatisticUpdater statistics;
|
||||||
|
|
||||||
@@ -290,19 +290,11 @@ public class SegmentStatisticUpdater {
|
|||||||
isIdle = idle;
|
isIdle = idle;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasAverageHeartRate() {
|
|
||||||
return avgHeartRate != null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
public HeartRate getAverageHeartRate() {
|
public HeartRate getAverageHeartRate() {
|
||||||
return avgHeartRate;
|
return avgHeartRate;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasPower() {
|
|
||||||
return avgPower != null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
public Power getAveragePower() {
|
public Power getAveragePower() {
|
||||||
return avgPower;
|
return avgPower;
|
||||||
|
|||||||
Reference in New Issue
Block a user