diff options
author | Kenny Root <kenny@the-b.org> | 2015-09-07 12:58:41 -0700 |
---|---|---|
committer | Kenny Root <kenny@the-b.org> | 2015-09-07 12:58:41 -0700 |
commit | 40d14f414255c5b06b6e31fc8894cbda79ca5fd6 (patch) | |
tree | 3be19fc7502f18ffb5aee99ffe46c08c6db3db8c /app/src/androidTest/java | |
parent | c22b5516b27a4c5a75992b794e5be9d9ac3e3d47 (diff) | |
download | connectbot-40d14f414255c5b06b6e31fc8894cbda79ca5fd6.tar.gz connectbot-40d14f414255c5b06b6e31fc8894cbda79ca5fd6.tar.bz2 connectbot-40d14f414255c5b06b6e31fc8894cbda79ca5fd6.zip |
Use in-memory database for instrumentation testing
Diffstat (limited to 'app/src/androidTest/java')
-rw-r--r-- | app/src/androidTest/java/org/connectbot/StartupTest.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/src/androidTest/java/org/connectbot/StartupTest.java b/app/src/androidTest/java/org/connectbot/StartupTest.java index 2dc75dd..6bde448 100644 --- a/app/src/androidTest/java/org/connectbot/StartupTest.java +++ b/app/src/androidTest/java/org/connectbot/StartupTest.java @@ -58,8 +58,7 @@ public class StartupTest { @Before public void makeDatabasePristine() { - HostDatabase db = HostDatabase.get(InstrumentationRegistry.getTargetContext()); - db.resetDatabase(); + HostDatabase.resetInMemoryInstance(InstrumentationRegistry.getTargetContext()); mActivityRule.launchActivity(new Intent()); } |