Error java.lang.RuntimeException: Stub! in Android with Fitnesse testing

前端 未结 4 1502
Happy的楠姐
Happy的楠姐 2020-11-28 14:03

I\'m trying to create a test fixture using Fitnesse framework, and I want to test a function which retrieves data from a server (RESTFUL service). My test case

4条回答
  •  一向
    一向 (楼主)
    2020-11-28 14:48

    I had this same issue because of the "static" declaration. In my case, .build() caused the issue in a static variable. The simple solution was to not declare the variable static. It can be final. Try removing "static" from the getJsonArrayFromUrl method and see if it works.

提交回复
热议问题