Search in sources :

Example 1 with AmbiguousViewMatcherException

use of com.google.android.apps.common.testing.ui.espresso.AmbiguousViewMatcherException in project double-espresso by JakeWharton.

the class ViewFinderImplTest method testGetView_multiple.

@UiThreadTest
public void testGetView_multiple() {
    ViewFinder finder = new ViewFinderImpl(Matchers.<View>notNullValue(), testViewProvider);
    try {
        finder.getView();
        fail("All nodes hit that matcher!");
    } catch (AmbiguousViewMatcherException expected) {
    }
}
Also used : AmbiguousViewMatcherException(com.google.android.apps.common.testing.ui.espresso.AmbiguousViewMatcherException) ViewFinder(com.google.android.apps.common.testing.ui.espresso.ViewFinder) UiThreadTest(android.test.UiThreadTest)

Aggregations

UiThreadTest (android.test.UiThreadTest)1 AmbiguousViewMatcherException (com.google.android.apps.common.testing.ui.espresso.AmbiguousViewMatcherException)1 ViewFinder (com.google.android.apps.common.testing.ui.espresso.ViewFinder)1