KMLImporter: added test.

This commit is contained in:
Dennis Guse
2021-06-01 19:11:14 +02:00
parent 5b2d9a5773
commit 6334dcea04
2 changed files with 30 additions and 0 deletions
@@ -177,4 +177,15 @@ public class KMLImportTest {
// when
importTrackId = importer.importFile(inputStream).get(0);
}
@LargeTest
@Test(expected = ImportParserException.class)
public void kml_when_locations_different() throws IOException {
// given
XMLImporter importer = new XMLImporter(new KmlTrackImporter(context, trackImporter));
InputStream inputStream = InstrumentationRegistry.getInstrumentation().getContext().getResources().openRawResource(de.dennisguse.opentracks.debug.test.R.raw.kml22_when_locations_different);
// when
importTrackId = importer.importFile(inputStream).get(0);
}
}