本文整理匯總了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
));
}
示例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
));
}
示例3: append
import android.support.test.espresso.action.ViewActions; //導入方法依賴的package包/類
static ViewAction append(final String text) {
return ViewActions.actionWithAssertions(new AppendTextAction(text));
}
示例4: betterScrollTo
import android.support.test.espresso.action.ViewActions; //導入方法依賴的package包/類
public static ViewAction betterScrollTo() {
return ViewActions.actionWithAssertions(new NestedScrollToAction());
}
示例5: loopMainThreadForAtLeast
import android.support.test.espresso.action.ViewActions; //導入方法依賴的package包/類
public static ViewAction loopMainThreadForAtLeast(int howLong) {
return ViewActions.actionWithAssertions(new WaitAction(howLong));
}
示例6: scrollToEx
import android.support.test.espresso.action.ViewActions; //導入方法依賴的package包/類
public static ViewAction scrollToEx() {
return ViewActions.actionWithAssertions(new ScrollToExAction());
}
示例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));
}
示例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));
}
示例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));
}