forked from upstream-mirrors/OpenTracks
Code cleanup.
This commit is contained in:
+1
-1
@@ -401,7 +401,7 @@ public class TrackRecordingServiceTest {
|
|||||||
/**
|
/**
|
||||||
* Inserts a location and waits for 200ms.
|
* Inserts a location and waits for 200ms.
|
||||||
*/
|
*/
|
||||||
private static void newTrackPoint(TrackRecordingService trackRecordingService, double latitude, double longitude, float accuracy, long speed, long time) throws InterruptedException {
|
private static void newTrackPoint(TrackRecordingService trackRecordingService, double latitude, double longitude, float accuracy, long speed, long time) {
|
||||||
Location location = new Location("");
|
Location location = new Location("");
|
||||||
location.setLongitude(longitude);
|
location.setLongitude(longitude);
|
||||||
location.setLatitude(latitude);
|
location.setLatitude(latitude);
|
||||||
|
|||||||
@@ -3,11 +3,14 @@ package de.dennisguse.opentracks.util;
|
|||||||
import junit.framework.TestCase;
|
import junit.framework.TestCase;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
import org.junit.runner.RunWith;
|
||||||
|
import org.junit.runners.JUnit4;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
|
@RunWith(JUnit4.class)
|
||||||
public class ExportUtilsTest extends TestCase {
|
public class ExportUtilsTest extends TestCase {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ public class GpxFileTrackImporter extends AbstractFileTrackImporter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void endElement(String uri, String localName, String tag) throws SAXException {
|
public void endElement(String uri, String localName, String tag) {
|
||||||
switch (tag) {
|
switch (tag) {
|
||||||
case TAG_GPX:
|
case TAG_GPX:
|
||||||
onFileEnd();
|
onFileEnd();
|
||||||
|
|||||||
@@ -195,7 +195,7 @@ public class KmlFileTrackImporter extends AbstractFileTrackImporter {
|
|||||||
markerType = null;
|
markerType = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onMarkerEnd() throws SAXException {
|
private void onMarkerEnd() {
|
||||||
if (!MARKER_STYLE.equals(markerType)) {
|
if (!MARKER_STYLE.equals(markerType)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -262,7 +262,7 @@ public class KmlFileTrackImporter extends AbstractFileTrackImporter {
|
|||||||
/**
|
/**
|
||||||
* On track point end. gx:coord end tag.
|
* On track point end. gx:coord end tag.
|
||||||
*/
|
*/
|
||||||
private void onTrackPointEnd() throws SAXException {
|
private void onTrackPointEnd() {
|
||||||
// Add trackPoint to trackPoints
|
// Add trackPoint to trackPoints
|
||||||
if (content == null) {
|
if (content == null) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user