robolectric 2 - create activity with intent

前端 未结 4 684
鱼传尺愫
鱼传尺愫 2021-01-04 18:55

Does creating an activity using the .withIntent() not work in Robolectric 2? I\'m doing the following

    activity = Robolectric.buildActivity(         


        
4条回答
  •  抹茶落季
    2021-01-04 19:47

    For newer versions of Robolectric use Robolectric.buildActivity(Class, Intent).

提交回复
热议问题