use of nodomain.freeyourgadget.gadgetbridge.model.ActivityTrack in project Gadgetbridge by Freeyourgadget.
the class GPXExporterTest method shouldCreateValidGpxFromSimulatedData.
@Test
public void shouldCreateValidGpxFromSimulatedData() throws IOException, ParseException, GPXTrackEmptyException, SAXException {
final List<ActivityPoint> points = readActivityPoints("/GPXExporterTest-SampleTracks.csv");
final GPXExporter gpxExporter = new GPXExporter();
gpxExporter.setCreator("Gadgetbridge Test");
final ActivityTrack track = createTestTrack(points);
final File tempFile = File.createTempFile("gpx-exporter-test-track", ".gpx");
tempFile.deleteOnExit();
gpxExporter.performExport(track, tempFile);
validateGpxFile(tempFile);
}
Aggregations