Back to project page filmster.
The source code is released under:
Apache License
If you think the Android project filmster listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.doodeec.filmster.Provider; /*from www . ja v a2s . c o m*/ import android.database.sqlite.SQLiteDatabase; import android.test.AndroidTestCase; import android.test.RenamingDelegatingContext; import com.doodeec.filmster.Mock; import com.doodeec.filmster.Model.Movie; /** * Created by Dusan Doodeec Bartos on 26.10.2014. * * @see com.doodeec.filmster.Provider.DbHelper */ public class DbHelperSpec extends AndroidTestCase { private DbHelper mHelper; private SQLiteDatabase db; public void setUp() { RenamingDelegatingContext context = new RenamingDelegatingContext(getContext(), "test_"); mHelper = new DbHelper(context); db = mHelper.getReadableDatabase(); } public void testAddEntry() { Movie movie = new Movie(Mock.REST_MOVIE()); mHelper.saveMovie(db, movie); } public void tearDown() throws Exception { db.close(); super.tearDown(); } }