当试图在roboletric中模拟改进的响应(v2.1)时,我得到错误:
java.lang.IllegalArgumentException: Unable to create converter for java.util.ArrayList<com.capacity_uk.capacity.Model.Venue> for method EstablishmentAPI.getEstablishments
引起它的那条线:
Call<ArrayList<Venue>> call = client.getEstablishments(mCurrentUserLocation.getLongitude(), mCurrentUserLocation.getLatitude(), mType.getValue());
这在设备/模拟器上工作正常但不在测试中,任何帮助都将非常感谢!
或者我是否打算使用拦截器进行调试/测试?