Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f61f75ec authored by Wei Sheng Shih's avatar Wei Sheng Shih Committed by Android (Google) Code Review
Browse files

Merge "Fix test case failed at...

Merge "Fix test case failed at DocumentsProviderTest#testFindDocumentPath_treeUri_throwsOnNonChildDocument."
parents 9176f02b bf81b69e
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -24,7 +24,6 @@ import android.support.test.filters.SmallTest;
import android.test.ProviderTestCase2;

import java.util.Arrays;
import java.util.List;

/**
 * Unit tests for {@link DocumentsProvider}.
@@ -84,7 +83,10 @@ public class DocumentsProviderTest extends ProviderTestCase2<TestDocumentsProvid

        final Uri docUri = buildTreeDocumentUri(
                TestDocumentsProvider.AUTHORITY, PARENT_DOCUMENT_ID, DOCUMENT_ID);
        assertNull(DocumentsContract.findDocumentPath(mResolver, docUri));
        try {
            DocumentsContract.findDocumentPath(mResolver, docUri);
            fail("Expected a SecurityException to be throw");
        } catch (SecurityException expected) { }
    }

    public void testFindDocumentPath_treeUri_erasesNonNullRootId() throws Exception {