@LargeTest
public void testHandleIntent() throws InterruptedException {
Intent insertNewCityIntent = getInsertNewCityIntent();
startService(insertNewCityIntent);
Intent renameCityIntent = getRenameCityIntent();
startService(renameCityIntent);
Intent deleteCityIntent = getDeleteCityIntent();
startService(deleteCityIntent);
boolean wereIntentsHandledInTime = countDownLatch.await(
SECONDS_TO_HANDLE_ALL_TESTED_INTENTS, TimeUnit.SECONDS);
assertTrue("Failed to handle all " + HANDLED_INTENT_COUNT
+ " intents in a reasonable time", wereIntentsHandledInTime);
}
GeneralDatabaseServiceTest.java 文件源码
java
阅读 28
收藏 0
点赞 0
评论 0
项目:UK-Weather-repo
作者:
评论列表
文章目录