|
@@ -21,17 +21,30 @@
|
|
|
*/
|
|
|
package com.owncloud.android.ui.fragment
|
|
|
|
|
|
+import android.Manifest
|
|
|
import android.widget.ImageView
|
|
|
import androidx.appcompat.widget.PopupMenu
|
|
|
+import androidx.test.espresso.intent.rule.IntentsTestRule
|
|
|
+import androidx.test.rule.GrantPermissionRule
|
|
|
+import com.nextcloud.client.TestActivity
|
|
|
import com.owncloud.android.AbstractIT
|
|
|
import com.owncloud.android.R
|
|
|
import com.owncloud.android.lib.resources.shares.OCShare
|
|
|
+import org.junit.Rule
|
|
|
import org.junit.Test
|
|
|
|
|
|
class FileDetailSharingFragmentIT : AbstractIT() {
|
|
|
+ @get:Rule
|
|
|
+ val testActivityRule = IntentsTestRule(TestActivity::class.java, true, false)
|
|
|
+
|
|
|
+ @get:Rule
|
|
|
+ val permissionRule = GrantPermissionRule.grant(Manifest.permission.WRITE_EXTERNAL_STORAGE)
|
|
|
+
|
|
|
@Test
|
|
|
fun listShares_file_none() {
|
|
|
- throw NotImplementedError()
|
|
|
+ val sut = testActivityRule.launchActivity(null)
|
|
|
+ sut.addFragment(FileDetailSharingFragment())
|
|
|
+
|
|
|
}
|
|
|
|
|
|
@Test
|