如何从测试用例启动/绑定服务。我试过使用ServiceTestCase --它不工作
发布于 2011-11-23 08:01:54
来自ServiceTestCase文档:
当您的测试方法之一调用
ServiceTestCase.startService()或ServiceTestCase.bindService()时,测试用例调用Service.onCreate(),然后酌情调用Service.startService(Intent)或Service.bindService(Intent, ServiceConnection, int)。它还存储跟踪和支持生命周期所需的值。
https://stackoverflow.com/questions/8238645
复制相似问题