We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 223df26 commit 1d8422bCopy full SHA for 1d8422b
app/src/androidTest/java/fr/free/nrw/commons/upload/FileUtilsTest.java
@@ -7,14 +7,16 @@
7
import org.junit.Test;
8
import org.junit.runner.RunWith;
9
10
+import fr.free.nrw.commons.BuildConfig;
11
+
12
import static org.hamcrest.CoreMatchers.is;
13
import static org.junit.Assert.assertThat;
14
15
@RunWith(AndroidJUnit4.class)
16
public class FileUtilsTest {
17
@Test
18
public void isSelfOwned() throws Exception {
- Uri uri = Uri.parse("content://fr.free.nrw.commons.provider/document/1");
19
+ Uri uri = Uri.parse("content://" + BuildConfig.APPLICATION_ID + ".provider/document/1");
20
boolean selfOwned = FileUtils.isSelfOwned(InstrumentationRegistry.getTargetContext(), uri);
21
assertThat(selfOwned, is(true));
22
}
0 commit comments