public final class

LayoutAssertions

extends Object
java.lang.Object
   ↳ android.support.test.espresso.assertion.LayoutAssertions

Class Overview

A collection of layout ViewAssertions.

Summary

Public Methods
static ViewAssertion noEllipsizedText()
Returns a ViewAssertion that asserts that view hierarchy does not contain ellipsized or cut off text views.
static ViewAssertion noMultilineButtons()
Returns a ViewAssertion that asserts that view hierarchy does not contain multiline buttons.
static ViewAssertion noOverlaps(Matcher<View> selector)
Returns a ViewAssertion that asserts that descendant views matching the selector do not overlap each other.
static ViewAssertion noOverlaps()
Returns a ViewAssertion that asserts that descendant objects assignable to TextView or ImageView do not overlap each other.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static ViewAssertion noEllipsizedText ()

Returns a ViewAssertion that asserts that view hierarchy does not contain ellipsized or cut off text views.

public static ViewAssertion noMultilineButtons ()

Returns a ViewAssertion that asserts that view hierarchy does not contain multiline buttons.

public static ViewAssertion noOverlaps (Matcher<View> selector)

Returns a ViewAssertion that asserts that descendant views matching the selector do not overlap each other.

Example: onView(rootView).check(noOverlaps(isAssignableFrom(TextView.class));

public static ViewAssertion noOverlaps ()

Returns a ViewAssertion that asserts that descendant objects assignable to TextView or ImageView do not overlap each other.

Example: onView(rootView).check(noOverlaps())