I need to run unit tests for code that references SQLiteDatabase for my Android code; however all my attempts to instantiate this object outside the emulator (on my desktop machine) have failed. JDBC on Android is not being recommended on the Net, hence it's out of the question (I could have provided mock objects very easily that way). So, any ideas? It is very unclear what you are trying to do. On the one hand, you talk about unit testing Android code, but then talk about your desktop machine. I do not know how those two problems relate.
以上就是Unit testing SQLiteDatabase code - how do I instantiate a DB instance outside the emulator的详细内容,更多请关注web前端其它相关文章!