Android Test Project - Reading assets file to test plain java object

后端 未结 3 659
忘了有多久
忘了有多久 2020-12-21 17:50

My project setup

  • Library Project A Contains a fooJSONParser like this :

    public class fooJsonParser {
      ...
      // Co         
    
    
            
3条回答
  •  春和景丽
    2020-12-21 18:06

    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.

提交回复
热议问题