Cleanup: renaming Importer classes.

This commit is contained in:
Dennis Guse
2021-05-27 17:55:42 +02:00
parent 288fe27a57
commit eada954299
6 changed files with 18 additions and 18 deletions
@@ -169,7 +169,7 @@ public class ExportImportTest {
// 2. import
InputStream inputStream = context.getContentResolver().openInputStream(tmpFileUri);
XMLImporter trackImporter = new XMLImporter(new KmlFileTrackImporter(context));
XMLImporter trackImporter = new XMLImporter(new KmlTrackImporter(context));
importTrackId = trackImporter.importFile(inputStream).get(0);
// then
@@ -209,7 +209,7 @@ public class ExportImportTest {
// 2. import
InputStream inputStream = context.getContentResolver().openInputStream(tmpFileUri);
XMLImporter trackImporter = new XMLImporter(new KmlFileTrackImporter(context));
XMLImporter trackImporter = new XMLImporter(new KmlTrackImporter(context));
importTrackId = trackImporter.importFile(inputStream).get(0);
// then
@@ -288,7 +288,7 @@ public class ExportImportTest {
// 2. import
InputStream inputStream = context.getContentResolver().openInputStream(tmpFileUri);
XMLImporter trackImporter = new XMLImporter(new KmlFileTrackImporter(context));
XMLImporter trackImporter = new XMLImporter(new KmlTrackImporter(context));
importTrackId = trackImporter.importFile(inputStream).get(0);
// then
@@ -313,7 +313,7 @@ public class ExportImportTest {
// 2. import
InputStream inputStream = context.getContentResolver().openInputStream(tmpFileUri);
XMLImporter trackImporter = new XMLImporter(new GpxFileTrackImporter(context, contentProviderUtils));
XMLImporter trackImporter = new XMLImporter(new GpxTrackImporter(context, contentProviderUtils));
importTrackId = trackImporter.importFile(inputStream).get(0);
// then
@@ -362,7 +362,7 @@ public class ExportImportTest {
// 2. import
InputStream inputStream = context.getContentResolver().openInputStream(tmpFileUri);
XMLImporter trackImporter = new XMLImporter(new GpxFileTrackImporter(context, contentProviderUtils));
XMLImporter trackImporter = new XMLImporter(new GpxTrackImporter(context, contentProviderUtils));
importTrackId = trackImporter.importFile(inputStream).get(0);
// then
@@ -51,7 +51,7 @@ public class LegacyImportTest {
@Test
public void kml_with_statistics_marker() throws IOException {
// given
XMLImporter trackImporter = new XMLImporter(new KmlFileTrackImporter(context));
XMLImporter trackImporter = new XMLImporter(new KmlTrackImporter(context));
InputStream inputStream = InstrumentationRegistry.getInstrumentation().getContext().getResources().openRawResource(de.dennisguse.opentracks.debug.test.R.raw.legacy_kml_statistics_marker);
// when
@@ -93,7 +93,7 @@ public class LegacyImportTest {
@Test(expected = ImportParserException.class)
public void kml_without_locations() throws IOException {
// given
XMLImporter trackImporter = new XMLImporter(new KmlFileTrackImporter(context));
XMLImporter trackImporter = new XMLImporter(new KmlTrackImporter(context));
InputStream inputStream = InstrumentationRegistry.getInstrumentation().getContext().getResources().openRawResource(de.dennisguse.opentracks.debug.test.R.raw.legacy_kml_empty);
// when
@@ -107,7 +107,7 @@ public class LegacyImportTest {
@Test
public void gpx_with_pause_resume() throws IOException {
// given
XMLImporter trackImporter = new XMLImporter(new GpxFileTrackImporter(context));
XMLImporter trackImporter = new XMLImporter(new GpxTrackImporter(context));
InputStream inputStream = InstrumentationRegistry.getInstrumentation().getContext().getResources().openRawResource(de.dennisguse.opentracks.debug.test.R.raw.legacy_gpx_pause_resume);
// when