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

前端 未结 4 1497
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 15:03

    As mentioned previously, Android jars are not good for anything beyond compiling. Even most innocent things are stubbed out completely. But you can still use them in host VM unit tests with good mocking frameworks. My choice is jmockit:

    Not sure whether it will work with Fitnesse though

提交回复
热议问题