當前位置: 首頁>>代碼示例>>Java>>正文


Java ViewActions.actionWithAssertions方法代碼示例

本文整理匯總了Java中android.support.test.espresso.action.ViewActions.actionWithAssertions方法的典型用法代碼示例。如果您正苦於以下問題:Java ViewActions.actionWithAssertions方法的具體用法?Java ViewActions.actionWithAssertions怎麽用?Java ViewActions.actionWithAssertions使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在android.support.test.espresso.action.ViewActions的用法示例。


在下文中一共展示了ViewActions.actionWithAssertions方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: swipeUp

import android.support.test.espresso.action.ViewActions; //導入方法依賴的package包/類
public static ViewAction swipeUp(final Swiper swipe) {
    return ViewActions.actionWithAssertions(new GeneralSwipeAction(
        swipe,
        GeneralLocation.CENTER,
        GeneralLocation.TOP_CENTER,
        Press.FINGER
    ));
}
 
開發者ID:sephiroth74,項目名稱:Material-BottomNavigation,代碼行數:9,代碼來源:ViewActionsCompat.java

示例2: swipeDown

import android.support.test.espresso.action.ViewActions; //導入方法依賴的package包/類
public static ViewAction swipeDown(final Swiper swipe) {
    return ViewActions.actionWithAssertions(new GeneralSwipeAction(
        swipe,
        GeneralLocation.CENTER,
        GeneralLocation.BOTTOM_CENTER,
        Press.FINGER
    ));
}
 
開發者ID:sephiroth74,項目名稱:Material-BottomNavigation,代碼行數:9,代碼來源:ViewActionsCompat.java

示例3: append

import android.support.test.espresso.action.ViewActions; //導入方法依賴的package包/類
static ViewAction append(final String text) {
  return ViewActions.actionWithAssertions(new AppendTextAction(text));
}
 
開發者ID:vanniktech,項目名稱:Emoji,代碼行數:4,代碼來源:AppendTextAction.java

示例4: betterScrollTo

import android.support.test.espresso.action.ViewActions; //導入方法依賴的package包/類
public static ViewAction betterScrollTo() {
    return ViewActions.actionWithAssertions(new NestedScrollToAction());
}
 
開發者ID:st1hy,項目名稱:Red-Calorie,代碼行數:4,代碼來源:CTCViewActions.java

示例5: loopMainThreadForAtLeast

import android.support.test.espresso.action.ViewActions; //導入方法依賴的package包/類
public static ViewAction loopMainThreadForAtLeast(int howLong) {
    return ViewActions.actionWithAssertions(new WaitAction(howLong));
}
 
開發者ID:st1hy,項目名稱:Red-Calorie,代碼行數:4,代碼來源:CTCViewActions.java

示例6: scrollToEx

import android.support.test.espresso.action.ViewActions; //導入方法依賴的package包/類
public static ViewAction scrollToEx() {
    return ViewActions.actionWithAssertions(new ScrollToExAction());
}
 
開發者ID:cattaka,項目名稱:AndroidSnippets,代碼行數:4,代碼來源:TestUtils.java

示例7: performDescendantAction

import android.support.test.espresso.action.ViewActions; //導入方法依賴的package包/類
/**
 * Perform an action on a descendant view.
 *
 * @param viewMatcher used to select the descendant view in the hierarchy
 * @param viewAction the action to perform against the descendant view
 * @return A ViewAction object that should be performed on the parent view
 */
public static ViewAction performDescendantAction(Matcher<View> viewMatcher, ViewAction viewAction) {
    return ViewActions.actionWithAssertions(new DescendantViewAction(viewMatcher, viewAction));
}
 
開發者ID:joerogers,項目名稱:EspressoDescendantActions,代碼行數:11,代碼來源:DescendantViewActions.java

示例8: checkViewAction

import android.support.test.espresso.action.ViewActions; //導入方法依賴的package包/類
/**
 * Perform a check against a view that only allows actions such as a view found by
 * RecyclerViewActions
 *
 * @param viewAssertion the assertion to check.
 * @return The ViewAction to perform
 */
public static ViewAction checkViewAction(ViewAssertion viewAssertion) {
    return ViewActions.actionWithAssertions(new CheckAssertionAction(viewAssertion));
}
 
開發者ID:joerogers,項目名稱:EspressoDescendantActions,代碼行數:11,代碼來源:DescendantViewActions.java

示例9: checkDescendantViewAction

import android.support.test.espresso.action.ViewActions; //導入方法依賴的package包/類
/**
 * Perform a check against a descendant view where the root only allows actions such
 * a view found by RecyclerView actions
 *
 * @param viewMatcher   used to select the descendant view in the hierarchy
 * @param viewAssertion the assertion to check
 * @return A ViewAction to be performed on the parent view
 */
public static ViewAction checkDescendantViewAction(Matcher<View> viewMatcher, ViewAssertion viewAssertion) {
    return ViewActions.actionWithAssertions(new CheckDescendantViewAction(viewMatcher, viewAssertion));
}
 
開發者ID:joerogers,項目名稱:EspressoDescendantActions,代碼行數:12,代碼來源:DescendantViewActions.java


注:本文中的android.support.test.espresso.action.ViewActions.actionWithAssertions方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。