Robotium testing failed because of deleteDatabase()

元气小坏坏 提交于 2019-12-08 06:13:28

问题


I've refactored my application to use a ContentProvider and all the CursorLoader framework but since I've done it, all my test failed because of database error like

java.lang.IllegalStateException: Cannot perform this operation because the connection pool has been closed.

but these occure only in robotium test mode. When I test manually the app it seems to work.

2 days that I'm trying to makes my tests working…

The database management code is available here : http://code.google.com/p/radis/source/browse/#hg%2Fsrc%2Ffr%2Fgeobert%2Fradis%2Fdb

My test code is available here : http://code.google.com/p/radis/source/browse/?repo=robotium#hg%2Fsrc%2Ffr%2Fgeobert%2Fradis%2Frobotium

Thanks for any help, this is driving me nuts…

来源:https://stackoverflow.com/questions/12125656/robotium-testing-failed-because-of-deletedatabase

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!