I am new to junit testing.
Can anyone help me , how to test my SQLiteOpenHelper class.
Means what classes I have to implement and how to test my
You can write android database test in JUnit4 style as well. You just need to add following dependency in your database
androidTestCompile('com.android.support.test:runner:0.3'){
exclude group: 'com.android.support', module: 'support-annotations'
}
And mark you Test class as follows
@RunWith(AndroidJUnit4.class)
public class DatabaseTest {
@Test
public void myFirstTest(){
//your test
}
}