androidx.test.filters.RequiresDevice Java Examples
The following examples show how to use
androidx.test.filters.RequiresDevice.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SpecialSupportTest.java From rebootmenu with GNU General Public License v3.0 | 5 votes |
/** * 没有的组件: * DevicePolicyManager.ACTION_ADD_DEVICE_ADMIN * Settings.ACTION_ACCESSIBILITY_SETTINGS (可以手动打开) */ @Test() @RequiresDevice public void checkTVSupport() { if (SpecialSupport.isAndroidTV(ContextInit.ctx())) { assertThat(false, allOf( equalTo(isActivityExists(DevicePolicyManager.ACTION_ADD_DEVICE_ADMIN)), equalTo(isActivityExists(Settings.ACTION_ACCESSIBILITY_SETTINGS)))); } else fail("Not a TV device."); }
Example #2
Source File: DropInTest.java From braintree-android-drop-in with MIT License | 5 votes |
@RequiresDevice @Test(timeout = 60000) public void tokenizesGooglePay() { onDevice(withText("Add Payment Method")).waitForExists().waitForEnabled().perform(click()); onDevice(withText("Google Pay")).perform(click()); onDevice(withText("Continue")).waitForExists().perform(click()); getNonceDetails().check(text(containsString("Underlying Card Last Two"))); onDevice(withText("Purchase")).perform(click()); onDevice(withTextStartingWith("created")).check(text(endsWith("authorized"))); }
Example #3
Source File: TestRequestBuilder.java From android-test with Apache License 2.0 | 4 votes |
RequiresDeviceFilter() { super(RequiresDevice.class); }
Example #4
Source File: TestRequestBuilderTest.java From android-test with Apache License 2.0 | 4 votes |
@RequiresDevice @Test public void skipThis() {}
Example #5
Source File: TestRequestBuilderTest.java From android-test with Apache License 2.0 | 4 votes |
@RequiresDevice @Test public void skipThat() {}