Back to project page StravaFlow.
The source code is released under:
MIT License
If you think the Android project StravaFlow listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package me.mattlogan.stravaflow.ui.activity; // w ww.ja v a 2 s . c om import android.app.Fragment; import android.test.suitebuilder.annotation.SmallTest; import me.mattlogan.stravaflow.R; import me.mattlogan.stravaflow.ui.fragment.ActivitiesFragment; import util.FragmentTestCase; import static com.google.android.apps.common.testing.ui.espresso.Espresso.onView; import static com.google.android.apps.common.testing.ui.espresso.assertion.ViewAssertions.matches; import static com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers.isDisplayed; import static com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers.withId; @SmallTest public class ActivitiesFragmentTest extends FragmentTestCase { @Override protected void setUp() throws Exception { super.setUp(); } @Override protected Fragment getFragment() { return ActivitiesFragment.newInstance(); } public void testListShowing() { onView(withId(R.id.activities_list)).check(matches(isDisplayed())); } }