Accessing resources in an android test project

后端 未结 4 1160
天涯浪人
天涯浪人 2020-12-06 10:06

I have setup an android test project that runs junit tests. It\'s using two eclipse projects \"Application\" and \"ApplicationTest\" where my tests are in the \"ApplicationT

4条回答
  •  情深已故
    2020-12-06 10:24

    Since Android Gradle Plugin version 1.1 you haven't to use Instrumentation to load file resource.

    I wrote here how to do it with POJO unit test case.

提交回复
热议问题