本文整理汇总了Java中course.labs.contentproviderlab.R类的典型用法代码示例。如果您正苦于以下问题:Java R类的具体用法?Java R怎么用?Java R使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
R类属于course.labs.contentproviderlab包,在下文中一共展示了R类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testRun
import course.labs.contentproviderlab.R; //导入依赖的package包/类
public void testRun() {
int delay = 2000;
int longDelay = 5000;
// Wait for activity: 'course.labs.locationlab.PlaceViewActivity'
solo.waitForActivity(course.labs.contentproviderlab.PlaceViewActivity.class,
2000);
// Click on action bar item
solo.clickOnActionBarItem(course.labs.contentproviderlab.R.id.delete_badges);
solo.sleep(delay);
// Click on action bar item
solo.clickOnActionBarItem(course.labs.contentproviderlab.R.id.place_one);
solo.sleep(delay);
// Click on Get New Place
solo.clickOnView(solo.getView(course.labs.contentproviderlab.R.id.footer));
// Assert that PlaceBadge is shown
assertTrue("PlaceBadge is not shown!", solo.waitForText(
solo.getString(R.string.the_greenhouse_string), 1, longDelay));
}
示例2: testRun
import course.labs.contentproviderlab.R; //导入依赖的package包/类
public void testRun() {
int delay = 2000;
int longDelay = 5000;
// Wait for activity: 'course.labs.locationlab.PlaceViewActivity'
solo.waitForActivity(
course.labs.contentproviderlab.PlaceViewActivity.class, 2000);
// Click on action bar item
solo.clickOnActionBarItem(course.labs.contentproviderlab.R.id.delete_badges);
solo.sleep(delay);
// Click on action bar item
solo.clickOnActionBarItem(course.labs.contentproviderlab.R.id.place_one);
solo.sleep(delay);
// Click on Get New Place
solo.clickOnView(solo
.getView(course.labs.contentproviderlab.R.id.footer));
solo.sleep(delay);
// Assert that PlaceBadge is shown
assertTrue("PlaceBadge is not shown!", solo.waitForText(
solo.getString(R.string.the_greenhouse_string), 1, longDelay));
// Click on action bar item
solo.clickOnActionBarItem(course.labs.contentproviderlab.R.id.place_two);
solo.sleep(delay);
// Click on Get New Place
solo.clickOnView(solo
.getView(course.labs.contentproviderlab.R.id.footer));
solo.sleep(delay);
// Assert that PlaceBadge is shown
assertTrue("PlaceBadge is not shown!", solo.waitForText(
solo.getString(R.string.berwyn_string), 1, longDelay));
}
示例3: testRun
import course.labs.contentproviderlab.R; //导入依赖的package包/类
public void testRun() {
int delay = 2000;
int longDelay = 5000;
// Wait for activity: 'course.labs.locationlab.PlaceViewActivity'
solo.waitForActivity(
course.labs.contentproviderlab.PlaceViewActivity.class, delay);
// Click on action bar item
solo.clickOnActionBarItem(course.labs.contentproviderlab.R.id.delete_badges);
solo.sleep(delay);
// Click on action bar item
solo.clickOnActionBarItem(course.labs.contentproviderlab.R.id.place_one);
solo.sleep(delay);
// Click on Get New Place
solo.clickOnView(solo
.getView(course.labs.contentproviderlab.R.id.footer));
solo.sleep(2000);
// Assert that PlaceBadge is shown
assertTrue("PlaceBadge is not shown!", solo.waitForText(
solo.getString(R.string.the_greenhouse_string), 1, longDelay));
// Click on action bar item
solo.clickOnActionBarItem(course.labs.contentproviderlab.R.id.place_one);
solo.sleep(delay);
// Click on Get New Place
solo.clickOnView(solo
.getView(course.labs.contentproviderlab.R.id.footer));
String samePlaceString = solo
.getString(course.labs.contentproviderlab.R.string.duplicate_location_string);
// Assert that duplicate location Toast is shown
assertTrue(samePlaceString + " is not shown!",
solo.waitForText(samePlaceString, 1, longDelay));
}