Skip to content

Commit 1d8422b

Browse files
committed
Fixed broken android (integration) test.
1 parent 223df26 commit 1d8422b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/src/androidTest/java/fr/free/nrw/commons/upload/FileUtilsTest.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@
77
import org.junit.Test;
88
import org.junit.runner.RunWith;
99

10+
import fr.free.nrw.commons.BuildConfig;
11+
1012
import static org.hamcrest.CoreMatchers.is;
1113
import static org.junit.Assert.assertThat;
1214

1315
@RunWith(AndroidJUnit4.class)
1416
public class FileUtilsTest {
1517
@Test
1618
public void isSelfOwned() throws Exception {
17-
Uri uri = Uri.parse("content://fr.free.nrw.commons.provider/document/1");
19+
Uri uri = Uri.parse("content://" + BuildConfig.APPLICATION_ID + ".provider/document/1");
1820
boolean selfOwned = FileUtils.isSelfOwned(InstrumentationRegistry.getTargetContext(), uri);
1921
assertThat(selfOwned, is(true));
2022
}

0 commit comments

Comments
 (0)