Fix tests
This commit is contained in:
parent
f145a4db38
commit
065a1f9ae6
|
@ -49,10 +49,11 @@ public class PlaybackSonicTest extends ActivityInstrumentationTestCase2<MainActi
|
|||
public void setUp() throws Exception {
|
||||
super.setUp();
|
||||
|
||||
PodDBAdapter.deleteDatabase();
|
||||
|
||||
context = getInstrumentation().getTargetContext();
|
||||
|
||||
PodDBAdapter.init(context);
|
||||
PodDBAdapter.deleteDatabase();
|
||||
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
prefs.edit()
|
||||
.clear()
|
||||
|
|
|
@ -46,10 +46,11 @@ public class PlaybackTest extends ActivityInstrumentationTestCase2<MainActivity>
|
|||
public void setUp() throws Exception {
|
||||
super.setUp();
|
||||
|
||||
PodDBAdapter.deleteDatabase();
|
||||
|
||||
context = getInstrumentation().getTargetContext();
|
||||
|
||||
PodDBAdapter.init(context);
|
||||
PodDBAdapter.deleteDatabase();
|
||||
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
prefs.edit()
|
||||
.clear()
|
||||
|
|
Loading…
Reference in New Issue