有谁知道从扩展时如何访问 JUnit 自己的项目res/文件夹编译R实例ServiceTestCase?
通常的方法不起作用:
getInstrumentation().getContext().getResources()...
因为事实证明ServiceTestCase没有一个getInstrumentation()因为它没有扩展InstrumentationTestCase方法。
提前致谢。
有谁知道从扩展时如何访问 JUnit 自己的项目res/文件夹编译R实例ServiceTestCase?
通常的方法不起作用:
getInstrumentation().getContext().getResources()...
因为事实证明ServiceTestCase没有一个getInstrumentation()因为它没有扩展InstrumentationTestCase方法。
提前致谢。