Add test for IllegalStateException of FileDisplayActivity

Signed-off-by: Unpublished <unpublished@gmx.net>
This commit is contained in:
Unpublished 2019-05-20 11:02:48 +02:00
parent d65ce6de57
commit 0bb4e72e95

View file

@ -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();
}
}
}