mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 05:35:39 +03:00
Add test for IllegalStateException of FileDisplayActivity
Signed-off-by: Unpublished <unpublished@gmx.net>
This commit is contained in:
parent
d65ce6de57
commit
0bb4e72e95
1 changed files with 23 additions and 0 deletions
|
@ -0,0 +1,23 @@
|
|||
package com.owncloud.android.ui.activity;
|
||||
|
||||
import com.owncloud.android.AbstractIT;
|
||||
|
||||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
|
||||
import androidx.test.core.app.ActivityScenario;
|
||||
import androidx.test.rule.GrantPermissionRule;
|
||||
|
||||
import static android.Manifest.permission.WRITE_EXTERNAL_STORAGE;
|
||||
|
||||
public class FileDisplayActivityTest extends AbstractIT {
|
||||
|
||||
@Rule public GrantPermissionRule mRuntimePermissionRule = GrantPermissionRule.grant(WRITE_EXTERNAL_STORAGE);
|
||||
|
||||
@Test
|
||||
public void testSetupToolbar() {
|
||||
try (ActivityScenario<FileDisplayActivity> scenario = ActivityScenario.launch(FileDisplayActivity.class)) {
|
||||
scenario.recreate();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue