I'm trying to get Robolectric working and can't seem to get it to load the JSON library.
Issue 4 and the related email thread on this list implies this was fixed in November, but I'm still getting the same problem.
Specifically, running my tests I get the following warnings and error:
Warning: an error occurred while binding shadow class: ShadowBluetoothAdapter
Warning: an error occurred while binding shadow class: ShadowBluetoothDevice
java.lang.RuntimeException: Stub!
at org.json.JSONObject.<init>(JSONObject.java:4)
This is under IntelliJ with the project set up
following the guide (which by the way, needs some additional tweaks to work with IntelliJ 10).
I have set up the order of libraries so that Android is last in the dependencies and can run the test provided in the quick start.
Looking through the robolectric-1.0-RC1-jar-with-dependencies.jar I don't see any org.json classes in there so it seems like this is missing again?
Any thoughts?
--
Jeremy Wadsack