public final class

DrawerMatchers

extends Object
java.lang.Object
   ↳ android.support.test.espresso.contrib.DrawerMatchers

Class Overview

Hamcrest matchers for a DrawerLayout.

Summary

Public Methods
static Matcher<View> isClosed()
Returns a matcher that verifies that the drawer is closed.
static Matcher<View> isOpen()
Returns a matcher that verifies that the drawer is open.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static Matcher<View> isClosed ()

Returns a matcher that verifies that the drawer is closed. Matches only when the drawer is fully closed. Use isOpen() instead of not(isClosed())) when you wish to check that the drawer is fully open.

public static Matcher<View> isOpen ()

Returns a matcher that verifies that the drawer is open. Matches only when the drawer is fully open. Use isClosed() instead of not(isOpen()) when you wish to check that the drawer is fully closed.