[android-developers] Database not created after insert, causing test to fail

2011-12-30 Thread barry
I have an app which uses a sqlite database and a ContentProvider to serve up data. The eclipse project has a unit test which adds a record to a database, retrieves it and asserts against the retrieved data: public void testAddNewVehicle() { Vehicle vehicle1 = new Vehicle(xyz, my car, 111f); long

Re: [android-developers] Database not created after insert, causing test to fail

2011-12-30 Thread James Black
Where is the database table created? On Dec 30, 2011 6:54 PM, barry barry.drinkwa...@gmail.com wrote: I have an app which uses a sqlite database and a ContentProvider to serve up data. The eclipse project has a unit test which adds a record to a database, retrieves it and asserts against the