mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
30 lines
968 B
Java
30 lines
968 B
Java
package fr.free.nrw.commons;
|
|
|
|
import android.support.test.espresso.assertion.ViewAssertions;
|
|
import android.support.test.filters.LargeTest;
|
|
import android.support.test.rule.ActivityTestRule;
|
|
import android.support.test.runner.AndroidJUnit4;
|
|
|
|
import org.junit.Rule;
|
|
import org.junit.Test;
|
|
import org.junit.runner.RunWith;
|
|
|
|
import fr.free.nrw.commons.nearby.NearbyActivity;
|
|
|
|
import static android.support.test.espresso.Espresso.onView;
|
|
import static android.support.test.espresso.matcher.ViewMatchers.isDisplayed;
|
|
import static android.support.test.espresso.matcher.ViewMatchers.withText;
|
|
|
|
@LargeTest
|
|
@RunWith(AndroidJUnit4.class)
|
|
public class NearbyActivityTest {
|
|
@Rule
|
|
public final ActivityTestRule<NearbyActivity> nearby =
|
|
new ActivityTestRule<>(NearbyActivity.class);
|
|
|
|
@Test
|
|
public void testActivityLaunch() {
|
|
onView(withText(R.string.title_activity_nearby))
|
|
.check(ViewAssertions.matches(isDisplayed()));
|
|
}
|
|
}
|