From a2a9132658e3294a86b991bf5a64cf1dc79849bf Mon Sep 17 00:00:00 2001 From: Dennis Guse Date: Sat, 28 Dec 2024 13:57:40 +0100 Subject: [PATCH] Test: use applicationId (was hardcoded). Part of #418. --- .../dennisguse/opentracks/data/ShareContentProviderTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/androidTest/java/de/dennisguse/opentracks/data/ShareContentProviderTest.java b/src/androidTest/java/de/dennisguse/opentracks/data/ShareContentProviderTest.java index d7e63f3481..8744718177 100644 --- a/src/androidTest/java/de/dennisguse/opentracks/data/ShareContentProviderTest.java +++ b/src/androidTest/java/de/dennisguse/opentracks/data/ShareContentProviderTest.java @@ -9,6 +9,7 @@ import java.util.Set; +import de.dennisguse.opentracks.BuildConfig; import de.dennisguse.opentracks.data.models.Track; import de.dennisguse.opentracks.io.file.TrackFileFormat; @@ -34,6 +35,7 @@ public void testCreateAndParseURI_valid() { public void testCreateURIescapeFilename() { Pair shareURIandMIME = ShareContentProvider.createURI(Set.of(new Track.Id(1)), "../../&1=1", TrackFileFormat.KML_WITH_TRACKDETAIL_AND_SENSORDATA); - assertEquals(Uri.parse("content://de.dennisguse.opentracks.debug.content/tracks/KML_WITH_TRACKDETAIL_AND_SENSORDATA/1/..%2F..%2F%261%3D1"), shareURIandMIME.first); + + assertEquals(Uri.parse("content://" + BuildConfig.APPLICATION_ID + ".content/tracks/KML_WITH_TRACKDETAIL_AND_SENSORDATA/1/..%2F..%2F%261%3D1"), shareURIandMIME.first); } } \ No newline at end of file