| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (version 1.7.0-google-v5) on Mon Oct 07 18:23:44 PDT 2013 --> |
| <meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> |
| <title>ViewMatchers (TestKit 1.0-SNAPSHOT API)</title> |
| <meta name="date" content="2013-10-07"> |
| <link rel="stylesheet" type="text/css" href="../../../../../../../../../stylesheet.css" title="Style"> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="ViewMatchers (TestKit 1.0-SNAPSHOT API)"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar_top"> |
| <!-- --> |
| </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/ViewMatchers.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/PreferenceMatchersTest.html" title="class in com.google.android.apps.common.testing.ui.espresso.matcher"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.Visibility.html" title="enum in com.google.android.apps.common.testing.ui.espresso.matcher"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../../../../../index.html?com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.html" target="_top">Frames</a></li> |
| <li><a href="ViewMatchers.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li><a href="#nested_class_summary">Nested</a> | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method_detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip-navbar_top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">com.google.android.apps.common.testing.ui.espresso.matcher</div> |
| <h2 title="Class ViewMatchers" class="title">Class ViewMatchers</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <br> |
| <pre>public final class <span class="strong">ViewMatchers</span> |
| extends <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre> |
| <div class="block">A collection of hamcrest matchers that match <code>View</code>s.</div> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ======== NESTED CLASS SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="nested_class_summary"> |
| <!-- --> |
| </a> |
| <h3>Nested Class Summary</h3> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation"> |
| <caption><span>Nested Classes</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Class and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static class </code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.Visibility.html" title="enum in com.google.android.apps.common.testing.ui.espresso.matcher">ViewMatchers.Visibility</a></strong></code> |
| <div class="block">Enumerates the possible list of values for View.getVisibility().</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span>Methods</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <T> void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.html#assertThat(java.lang.String, T, org.hamcrest.Matcher)">assertThat</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> message, |
| T actual, |
| org.hamcrest.Matcher<T> matcher)</code> |
| <div class="block">A replacement for MatcherAssert.assertThat that renders View objects nicely.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <T> void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.html#assertThat(T, org.hamcrest.Matcher)">assertThat</a></strong>(T actual, |
| org.hamcrest.Matcher<T> matcher)</code> |
| <div class="block">A replacement for MatcherAssert.assertThat that renders View objects nicely.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static org.hamcrest.Matcher<android.view.View></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.html#hasContentDescription()">hasContentDescription</a></strong>()</code> |
| <div class="block">Returns an <code>Matcher</code> that matches <code>View</code>s with any content description.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static org.hamcrest.Matcher<android.view.View></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.html#hasDescendant(org.hamcrest.Matcher)">hasDescendant</a></strong>(org.hamcrest.Matcher<android.view.View> descendantMatcher)</code> |
| <div class="block">Returns a matcher that matches <code>View</code>s based on the presence of a descendant in its view |
| hierarchy.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static org.hamcrest.Matcher<android.view.View></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.html#hasFocus()">hasFocus</a></strong>()</code> |
| <div class="block">Returns a matcher that matches <code>View</code>s currently have focus.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static org.hamcrest.Matcher<android.view.View></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.html#hasImeAction(int)">hasImeAction</a></strong>(int imeAction)</code> |
| <div class="block">Returns a matcher that matches views that support input methods (e.g.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static org.hamcrest.Matcher<android.view.View></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.html#hasImeAction(org.hamcrest.Matcher)">hasImeAction</a></strong>(org.hamcrest.Matcher<<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>> imeActionMatcher)</code> |
| <div class="block">Returns a matcher that matches views that support input methods (e.g.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static org.hamcrest.Matcher<android.view.View></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.html#hasSibling(org.hamcrest.Matcher)">hasSibling</a></strong>(org.hamcrest.Matcher<android.view.View> siblingMatcher)</code> |
| <div class="block">Returns an <code>Matcher</code> that matches <code>View</code>s based on their siblings.<br> |
| <br> |
| This may be particularly useful when a view cannot be uniquely selected on properties such as |
| text or R.id.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static org.hamcrest.Matcher<android.view.View></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.html#isAssignableFrom(java.lang.Class)">isAssignableFrom</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends android.view.View> clazz)</code> |
| <div class="block">Returns a matcher that matches Views which are an instance of or subclass of the provided |
| class.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static org.hamcrest.Matcher<android.view.View></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.html#isChecked()">isChecked</a></strong>()</code> |
| <div class="block">Returns a matcher that accepts if and only if the view is a CompoundButton (or subtype of) and |
| is in checked state.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static org.hamcrest.Matcher<android.view.View></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.html#isClickable()">isClickable</a></strong>()</code> |
| <div class="block">Returns a matcher that matches <code>View</code>s that are clickable.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static org.hamcrest.Matcher<android.view.View></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.html#isCompletelyDisplayed()">isCompletelyDisplayed</a></strong>()</code> |
| <div class="block">Returns a matcher which only accepts a view whose height and width fit perfectly within |
| the currently displayed region of this view.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static org.hamcrest.Matcher<android.view.View></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.html#isDescendantOfA(org.hamcrest.Matcher)">isDescendantOfA</a></strong>(org.hamcrest.Matcher<android.view.View> ancestorMatcher)</code> |
| <div class="block">Returns a matcher that matches <code>View</code>s based on the given ancestor type.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static org.hamcrest.Matcher<android.view.View></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.html#isDisplayed()">isDisplayed</a></strong>()</code> |
| <div class="block">Returns a matcher that matches <code>View</code>s that are currently displayed on the screen to the |
| user.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static org.hamcrest.Matcher<android.view.View></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.html#isDisplayingAtLeast(int)">isDisplayingAtLeast</a></strong>(int areaPercentage)</code> |
| <div class="block">Returns a matcher which accepts a view so long as a given percentage of that view's area is |
| not obscured by any other view and is thus visible to the user.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static org.hamcrest.Matcher<android.view.View></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.html#isEnabled()">isEnabled</a></strong>()</code> |
| <div class="block">Returns a matcher that matches <code>View</code>s that are enabled.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static org.hamcrest.Matcher<android.view.View></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.html#isFocusable()">isFocusable</a></strong>()</code> |
| <div class="block">Returns a matcher that matches <code>View</code>s that are focusable.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static org.hamcrest.Matcher<android.view.View></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.html#isNotChecked()">isNotChecked</a></strong>()</code> |
| <div class="block">Returns a matcher that accepts if and only if the view is a CompoundButton (or subtype of) and |
| is not in checked state.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static org.hamcrest.Matcher<android.view.View></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.html#isRoot()">isRoot</a></strong>()</code> |
| <div class="block">Returns a matcher that matches root <code>View</code>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static org.hamcrest.Matcher<android.view.View></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.html#supportsInputMethods()">supportsInputMethods</a></strong>()</code> |
| <div class="block">Returns a matcher that matches views that support input methods.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static org.hamcrest.Matcher<android.view.View></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.html#withChild(org.hamcrest.Matcher)">withChild</a></strong>(org.hamcrest.Matcher<android.view.View> childMatcher)</code> |
| <div class="block">A matcher that returns true if and only if the view's child is accepted by the provided |
| matcher.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static org.hamcrest.Matcher<android.view.View></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.html#withClassName(org.hamcrest.Matcher)">withClassName</a></strong>(org.hamcrest.Matcher<<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> classNameMatcher)</code> |
| <div class="block">Returns a matcher that matches Views with class name matching the given matcher.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static org.hamcrest.Matcher<android.view.View></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.html#withContentDescription(org.hamcrest.Matcher)">withContentDescription</a></strong>(org.hamcrest.Matcher<? extends <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</a>> charSequenceMatcher)</code> |
| <div class="block">Returns an <code>Matcher</code> that matches <code>View</code>s based on content description property |
| value.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static org.hamcrest.Matcher<android.view.View></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.html#withContentDescription(java.lang.String)">withContentDescription</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> text)</code> |
| <div class="block">Returns an <code>Matcher</code> that matches <code>View</code>s based on content description property |
| value.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static org.hamcrest.Matcher<android.view.View></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.html#withEffectiveVisibility(com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers.Visibility)">withEffectiveVisibility</a></strong>(<a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.Visibility.html" title="enum in com.google.android.apps.common.testing.ui.espresso.matcher">ViewMatchers.Visibility</a> visibility)</code> |
| <div class="block">Returns a matcher that matches <code>View</code>s that have "effective" visibility set to the given |
| value.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static org.hamcrest.Matcher<android.view.View></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.html#withId(int)">withId</a></strong>(int id)</code> |
| <div class="block">Sugar for withId(is(int)).</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static org.hamcrest.Matcher<android.view.View></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.html#withId(org.hamcrest.Matcher)">withId</a></strong>(org.hamcrest.Matcher<<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>> integerMatcher)</code> |
| <div class="block">Returns a matcher that matches <code>View</code>s based on resource ids.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static org.hamcrest.Matcher<android.view.View></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.html#withParent(org.hamcrest.Matcher)">withParent</a></strong>(org.hamcrest.Matcher<android.view.View> parentMatcher)</code> |
| <div class="block">A matcher that accepts a view if and only if the view's parent is accepted by the provided |
| matcher.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static org.hamcrest.Matcher<android.view.View></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.html#withTagKey(int)">withTagKey</a></strong>(int key)</code> |
| <div class="block">Returns a matcher that matches <code>View</code> based on tag keys.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static org.hamcrest.Matcher<android.view.View></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.html#withTagKey(int, org.hamcrest.Matcher)">withTagKey</a></strong>(int key, |
| org.hamcrest.Matcher<<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> objectMatcher)</code> |
| <div class="block">Returns a matcher that matches <code>View</code>s based on tag keys.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static org.hamcrest.Matcher<android.view.View></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.html#withTagValue(org.hamcrest.Matcher)">withTagValue</a></strong>(org.hamcrest.Matcher<<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> tagValueMatcher)</code> |
| <div class="block">Returns a matcher that matches <code>View</code>s based on tag property values.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static org.hamcrest.Matcher<android.view.View></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.html#withText(int)">withText</a></strong>(int resourceId)</code> |
| <div class="block">Returns a matcher that matches a descendant of <code>TextView</code> that is displaying the string |
| associated with the given resource id.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static org.hamcrest.Matcher<android.view.View></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.html#withText(org.hamcrest.Matcher)">withText</a></strong>(org.hamcrest.Matcher<<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> stringMatcher)</code> |
| <div class="block">Returns a matcher that matches <code>TextView</code>s based on text property value.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static org.hamcrest.Matcher<android.view.View></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.html#withText(java.lang.String)">withText</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> text)</code> |
| <div class="block">Returns a matcher that matches <code>TextView</code> based on it's text property value.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> |
| <code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="isAssignableFrom(java.lang.Class)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isAssignableFrom</h4> |
| <pre>public static org.hamcrest.Matcher<android.view.View> isAssignableFrom(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends android.view.View> clazz)</pre> |
| <div class="block">Returns a matcher that matches Views which are an instance of or subclass of the provided |
| class. Some versions of Hamcrest make the generic typing of this a nightmare, so we have a |
| special case for our users.</div> |
| </li> |
| </ul> |
| <a name="withClassName(org.hamcrest.Matcher)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>withClassName</h4> |
| <pre>public static org.hamcrest.Matcher<android.view.View> withClassName(org.hamcrest.Matcher<<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> classNameMatcher)</pre> |
| <div class="block">Returns a matcher that matches Views with class name matching the given matcher.</div> |
| </li> |
| </ul> |
| <a name="isDisplayed()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isDisplayed</h4> |
| <pre>public static org.hamcrest.Matcher<android.view.View> isDisplayed()</pre> |
| <div class="block">Returns a matcher that matches <code>View</code>s that are currently displayed on the screen to the |
| user. |
| |
| Note: isDisplayed will select views that are partially displayed (eg: the full height/width of |
| the view is greater then the height/width of the visible rectangle). If you wish to ensure the |
| entire rectangle this view draws is displayed to the user use isCompletelyDisplayed.</div> |
| </li> |
| </ul> |
| <a name="isCompletelyDisplayed()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isCompletelyDisplayed</h4> |
| <pre>public static org.hamcrest.Matcher<android.view.View> isCompletelyDisplayed()</pre> |
| <div class="block">Returns a matcher which only accepts a view whose height and width fit perfectly within |
| the currently displayed region of this view. |
| |
| There exist views (such as ScrollViews) whose height and width are larger then the physical |
| device screen by design. Such views will _never_ be completely displayed.</div> |
| </li> |
| </ul> |
| <a name="isDisplayingAtLeast(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isDisplayingAtLeast</h4> |
| <pre>public static org.hamcrest.Matcher<android.view.View> isDisplayingAtLeast(int areaPercentage)</pre> |
| <div class="block">Returns a matcher which accepts a view so long as a given percentage of that view's area is |
| not obscured by any other view and is thus visible to the user.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>areaPercentage</code> - an integer ranging from (0, 100] indicating how much percent of the |
| surface area of the view must be shown to the user to be accepted.</dd></dl> |
| </li> |
| </ul> |
| <a name="isEnabled()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isEnabled</h4> |
| <pre>public static org.hamcrest.Matcher<android.view.View> isEnabled()</pre> |
| <div class="block">Returns a matcher that matches <code>View</code>s that are enabled.</div> |
| </li> |
| </ul> |
| <a name="isFocusable()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isFocusable</h4> |
| <pre>public static org.hamcrest.Matcher<android.view.View> isFocusable()</pre> |
| <div class="block">Returns a matcher that matches <code>View</code>s that are focusable.</div> |
| </li> |
| </ul> |
| <a name="hasFocus()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>hasFocus</h4> |
| <pre>public static org.hamcrest.Matcher<android.view.View> hasFocus()</pre> |
| <div class="block">Returns a matcher that matches <code>View</code>s currently have focus.</div> |
| </li> |
| </ul> |
| <a name="hasSibling(org.hamcrest.Matcher)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>hasSibling</h4> |
| <pre>public static org.hamcrest.Matcher<android.view.View> hasSibling(org.hamcrest.Matcher<android.view.View> siblingMatcher)</pre> |
| <div class="block">Returns an <code>Matcher</code> that matches <code>View</code>s based on their siblings.<br> |
| <br> |
| This may be particularly useful when a view cannot be uniquely selected on properties such as |
| text or R.id. For example: a call button is repeated several times in a contacts layout and the |
| only way to differentiate the call button view is by what appears next to it (e.g. the unique |
| name of the contact).</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>siblingMatcher</code> - a <code>Matcher</code> for the sibling of the view.</dd></dl> |
| </li> |
| </ul> |
| <a name="withContentDescription(java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>withContentDescription</h4> |
| <pre>public static org.hamcrest.Matcher<android.view.View> withContentDescription(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> text)</pre> |
| <div class="block">Returns an <code>Matcher</code> that matches <code>View</code>s based on content description property |
| value. Sugar for withContentDescription(is("string")).</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>text</code> - the text to match on.</dd></dl> |
| </li> |
| </ul> |
| <a name="withContentDescription(org.hamcrest.Matcher)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>withContentDescription</h4> |
| <pre>public static org.hamcrest.Matcher<android.view.View> withContentDescription(org.hamcrest.Matcher<? extends <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</a>> charSequenceMatcher)</pre> |
| <div class="block">Returns an <code>Matcher</code> that matches <code>View</code>s based on content description property |
| value.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>charSequenceMatcher</code> - a <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang"><code>CharSequence</code></a> <code>Matcher</code> for the content description</dd></dl> |
| </li> |
| </ul> |
| <a name="withId(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>withId</h4> |
| <pre>public static org.hamcrest.Matcher<android.view.View> withId(int id)</pre> |
| <div class="block">Sugar for withId(is(int)).</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>id</code> - the resource id.</dd></dl> |
| </li> |
| </ul> |
| <a name="withId(org.hamcrest.Matcher)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>withId</h4> |
| <pre>public static org.hamcrest.Matcher<android.view.View> withId(org.hamcrest.Matcher<<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>> integerMatcher)</pre> |
| <div class="block">Returns a matcher that matches <code>View</code>s based on resource ids. Note: Android resource ids |
| are not guaranteed to be unique. You may have to pair this matcher with another one to |
| guarantee a unique view selection.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>integerMatcher</code> - a Matcher for resource ids</dd></dl> |
| </li> |
| </ul> |
| <a name="withTagKey(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>withTagKey</h4> |
| <pre>public static org.hamcrest.Matcher<android.view.View> withTagKey(int key)</pre> |
| <div class="block">Returns a matcher that matches <code>View</code> based on tag keys.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - to match</dd></dl> |
| </li> |
| </ul> |
| <a name="withTagKey(int, org.hamcrest.Matcher)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>withTagKey</h4> |
| <pre>public static org.hamcrest.Matcher<android.view.View> withTagKey(int key, |
| org.hamcrest.Matcher<<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> objectMatcher)</pre> |
| <div class="block">Returns a matcher that matches <code>View</code>s based on tag keys.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - to match</dd><dd><code>objectMatcher</code> - Object to match</dd></dl> |
| </li> |
| </ul> |
| <a name="withTagValue(org.hamcrest.Matcher)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>withTagValue</h4> |
| <pre>public static org.hamcrest.Matcher<android.view.View> withTagValue(org.hamcrest.Matcher<<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> tagValueMatcher)</pre> |
| <div class="block">Returns a matcher that matches <code>View</code>s based on tag property values.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>tagValueMatcher</code> - a Matcher for the view's tag property value</dd></dl> |
| </li> |
| </ul> |
| <a name="withText(java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>withText</h4> |
| <pre>public static org.hamcrest.Matcher<android.view.View> withText(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> text)</pre> |
| <div class="block">Returns a matcher that matches <code>TextView</code> based on it's text property value. Note: View's |
| Sugar for withText(is("string")).</div> |
| </li> |
| </ul> |
| <a name="withText(org.hamcrest.Matcher)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>withText</h4> |
| <pre>public static org.hamcrest.Matcher<android.view.View> withText(org.hamcrest.Matcher<<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> stringMatcher)</pre> |
| <div class="block">Returns a matcher that matches <code>TextView</code>s based on text property value. Note: View's |
| text property is never null. If you setText(null) it will still be "". Do not use null matcher.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>stringMatcher</code> - <code>Matcher</code> of <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang"><code>String</code></a> with text to match</dd></dl> |
| </li> |
| </ul> |
| <a name="withText(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>withText</h4> |
| <pre>public static org.hamcrest.Matcher<android.view.View> withText(int resourceId)</pre> |
| <div class="block">Returns a matcher that matches a descendant of <code>TextView</code> that is displaying the string |
| associated with the given resource id.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>resourceId</code> - the string resource the text view is expected to hold.</dd></dl> |
| </li> |
| </ul> |
| <a name="isChecked()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isChecked</h4> |
| <pre>public static org.hamcrest.Matcher<android.view.View> isChecked()</pre> |
| <div class="block">Returns a matcher that accepts if and only if the view is a CompoundButton (or subtype of) and |
| is in checked state.</div> |
| </li> |
| </ul> |
| <a name="isNotChecked()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isNotChecked</h4> |
| <pre>public static org.hamcrest.Matcher<android.view.View> isNotChecked()</pre> |
| <div class="block">Returns a matcher that accepts if and only if the view is a CompoundButton (or subtype of) and |
| is not in checked state.</div> |
| </li> |
| </ul> |
| <a name="hasContentDescription()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>hasContentDescription</h4> |
| <pre>public static org.hamcrest.Matcher<android.view.View> hasContentDescription()</pre> |
| <div class="block">Returns an <code>Matcher</code> that matches <code>View</code>s with any content description.</div> |
| </li> |
| </ul> |
| <a name="hasDescendant(org.hamcrest.Matcher)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>hasDescendant</h4> |
| <pre>public static org.hamcrest.Matcher<android.view.View> hasDescendant(org.hamcrest.Matcher<android.view.View> descendantMatcher)</pre> |
| <div class="block">Returns a matcher that matches <code>View</code>s based on the presence of a descendant in its view |
| hierarchy.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>descendantMatcher</code> - the type of the descendant to match on</dd></dl> |
| </li> |
| </ul> |
| <a name="isClickable()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isClickable</h4> |
| <pre>public static org.hamcrest.Matcher<android.view.View> isClickable()</pre> |
| <div class="block">Returns a matcher that matches <code>View</code>s that are clickable.</div> |
| </li> |
| </ul> |
| <a name="isDescendantOfA(org.hamcrest.Matcher)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isDescendantOfA</h4> |
| <pre>public static org.hamcrest.Matcher<android.view.View> isDescendantOfA(org.hamcrest.Matcher<android.view.View> ancestorMatcher)</pre> |
| <div class="block">Returns a matcher that matches <code>View</code>s based on the given ancestor type.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>ancestorMatcher</code> - the type of the ancestor to match on</dd></dl> |
| </li> |
| </ul> |
| <a name="withEffectiveVisibility(com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers.Visibility)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>withEffectiveVisibility</h4> |
| <pre>public static org.hamcrest.Matcher<android.view.View> withEffectiveVisibility(<a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.Visibility.html" title="enum in com.google.android.apps.common.testing.ui.espresso.matcher">ViewMatchers.Visibility</a> visibility)</pre> |
| <div class="block">Returns a matcher that matches <code>View</code>s that have "effective" visibility set to the given |
| value. Effective visibility takes into account not only the view's visibility value, but also |
| that of its ancestors. In case of View.VISIBLE, this means that the view and all of its |
| ancestors have visibility=VISIBLE. In case of GONE and INVISIBLE, it's the opposite - any GONE |
| or INVISIBLE parent will make all of its children have their effective visibility. |
| |
| <p> |
| <p> |
| Note: Contrary to what the name may imply, view visibility does not directly translate into |
| whether the view is displayed on screen (use isDisplayed() for that). For example, the view and |
| all of its ancestors can have visibility=VISIBLE, but the view may need to be scrolled to in |
| order to be actually visible to the user. Unless you're specifically targeting the visibility |
| value with your test, use isDisplayed.</div> |
| </li> |
| </ul> |
| <a name="withParent(org.hamcrest.Matcher)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>withParent</h4> |
| <pre>public static org.hamcrest.Matcher<android.view.View> withParent(org.hamcrest.Matcher<android.view.View> parentMatcher)</pre> |
| <div class="block">A matcher that accepts a view if and only if the view's parent is accepted by the provided |
| matcher.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>parentMatcher</code> - the matcher to apply on getParent.</dd></dl> |
| </li> |
| </ul> |
| <a name="withChild(org.hamcrest.Matcher)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>withChild</h4> |
| <pre>public static org.hamcrest.Matcher<android.view.View> withChild(org.hamcrest.Matcher<android.view.View> childMatcher)</pre> |
| <div class="block">A matcher that returns true if and only if the view's child is accepted by the provided |
| matcher.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>childMatcher</code> - the matcher to apply on the child views.</dd></dl> |
| </li> |
| </ul> |
| <a name="isRoot()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isRoot</h4> |
| <pre>public static org.hamcrest.Matcher<android.view.View> isRoot()</pre> |
| <div class="block">Returns a matcher that matches root <code>View</code>.</div> |
| </li> |
| </ul> |
| <a name="supportsInputMethods()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>supportsInputMethods</h4> |
| <pre>public static org.hamcrest.Matcher<android.view.View> supportsInputMethods()</pre> |
| <div class="block">Returns a matcher that matches views that support input methods.</div> |
| </li> |
| </ul> |
| <a name="hasImeAction(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>hasImeAction</h4> |
| <pre>public static org.hamcrest.Matcher<android.view.View> hasImeAction(int imeAction)</pre> |
| <div class="block">Returns a matcher that matches views that support input methods (e.g. EditText) and have the |
| specified IME action set in its <code>EditorInfo</code>.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>imeAction</code> - the IME action to match</dd></dl> |
| </li> |
| </ul> |
| <a name="hasImeAction(org.hamcrest.Matcher)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>hasImeAction</h4> |
| <pre>public static org.hamcrest.Matcher<android.view.View> hasImeAction(org.hamcrest.Matcher<<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>> imeActionMatcher)</pre> |
| <div class="block">Returns a matcher that matches views that support input methods (e.g. EditText) and have the |
| specified IME action set in its <code>EditorInfo</code>.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>imeActionMatcher</code> - a matcher for the IME action</dd></dl> |
| </li> |
| </ul> |
| <a name="assertThat(java.lang.Object,org.hamcrest.Matcher)"> |
| <!-- --> |
| </a><a name="assertThat(T, org.hamcrest.Matcher)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>assertThat</h4> |
| <pre>public static <T> void assertThat(T actual, |
| org.hamcrest.Matcher<T> matcher)</pre> |
| <div class="block">A replacement for MatcherAssert.assertThat that renders View objects nicely.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>actual</code> - the actual value.</dd><dd><code>matcher</code> - a matcher that accepts or rejects actual.</dd></dl> |
| </li> |
| </ul> |
| <a name="assertThat(java.lang.String,java.lang.Object,org.hamcrest.Matcher)"> |
| <!-- --> |
| </a><a name="assertThat(java.lang.String, T, org.hamcrest.Matcher)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>assertThat</h4> |
| <pre>public static <T> void assertThat(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> message, |
| T actual, |
| org.hamcrest.Matcher<T> matcher)</pre> |
| <div class="block">A replacement for MatcherAssert.assertThat that renders View objects nicely.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>message</code> - the message to display.</dd><dd><code>actual</code> - the actual value.</dd><dd><code>matcher</code> - a matcher that accepts or rejects actual.</dd></dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar_bottom"> |
| <!-- --> |
| </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/ViewMatchers.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/PreferenceMatchersTest.html" title="class in com.google.android.apps.common.testing.ui.espresso.matcher"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../../../../../../../com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.Visibility.html" title="enum in com.google.android.apps.common.testing.ui.espresso.matcher"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../../../../../index.html?com/google/android/apps/common/testing/ui/espresso/matcher/ViewMatchers.html" target="_top">Frames</a></li> |
| <li><a href="ViewMatchers.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li><a href="#nested_class_summary">Nested</a> | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method_detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip-navbar_bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small>Copyright © 2013. All rights reserved.</small></p> |
| </body> |
| </html> |