SyncedFoldersActivityIT.java 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. *
  3. * Nextcloud Android client application
  4. *
  5. * @author Tobias Kaminsky
  6. * Copyright (C) 2020 Tobias Kaminsky
  7. * Copyright (C) 2020 Nextcloud GmbH
  8. *
  9. * This program is free software: you can redistribute it and/or modify
  10. * it under the terms of the GNU Affero General Public License as published by
  11. * the Free Software Foundation, either version 3 of the License, or
  12. * (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU Affero General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Affero General Public License
  20. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  21. */
  22. package com.nextcloud.client;
  23. import android.Manifest;
  24. import com.owncloud.android.AbstractIT;
  25. import com.owncloud.android.ui.activity.SyncedFoldersActivity;
  26. import org.junit.Rule;
  27. import org.junit.Test;
  28. import androidx.test.espresso.intent.rule.IntentsTestRule;
  29. import androidx.test.rule.GrantPermissionRule;
  30. public class SyncedFoldersActivityIT extends AbstractIT {
  31. @Rule public IntentsTestRule<SyncedFoldersActivity> activityRule = new IntentsTestRule<>(SyncedFoldersActivity.class,
  32. true,
  33. false);
  34. @Rule
  35. public final GrantPermissionRule permissionRule = GrantPermissionRule.grant(
  36. Manifest.permission.WRITE_EXTERNAL_STORAGE);
  37. @Test
  38. public void openDrawer() throws InterruptedException {
  39. super.openDrawer(activityRule);
  40. }
  41. }