aboutsummaryrefslogtreecommitdiff
path: root/WordPress/src/androidTest/java/org/wordpress/android/database/WordPressDBTest.java
diff options
context:
space:
mode:
authorChris Warrington <cmw@google.com>2016-10-18 12:29:21 +0100
committerChris Warrington <cmw@google.com>2016-10-18 12:34:18 +0100
commite3780081075c01aa1dff6d1f373cb43192b33e68 (patch)
treefb734615933a39f3d009210dc0d1457160479b35 /WordPress/src/androidTest/java/org/wordpress/android/database/WordPressDBTest.java
parent7e05eb7e57827eddc885570bc00aed8a50320dbf (diff)
parent025b8b226c8d8edba2b309ca878572f40512eca7 (diff)
downloadgradle-perf-android-medium-e3780081075c01aa1dff6d1f373cb43192b33e68.tar.gz
Change-Id: I63f5e16d09297c48432192761b840310935eb903
Diffstat (limited to 'WordPress/src/androidTest/java/org/wordpress/android/database/WordPressDBTest.java')
-rw-r--r--WordPress/src/androidTest/java/org/wordpress/android/database/WordPressDBTest.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/WordPress/src/androidTest/java/org/wordpress/android/database/WordPressDBTest.java b/WordPress/src/androidTest/java/org/wordpress/android/database/WordPressDBTest.java
new file mode 100644
index 000000000..0e8b7de50
--- /dev/null
+++ b/WordPress/src/androidTest/java/org/wordpress/android/database/WordPressDBTest.java
@@ -0,0 +1,17 @@
+package org.wordpress.android.database;
+
+import android.content.Context;
+import android.test.InstrumentationTestCase;
+import android.test.RenamingDelegatingContext;
+
+public class WordPressDBTest extends InstrumentationTestCase {
+ protected Context testContext;
+ protected Context targetContext;
+
+ @Override
+ protected void setUp() {
+ // Run tests in an isolated context
+ targetContext = new RenamingDelegatingContext(getInstrumentation().getTargetContext(), "test_");
+ testContext = getInstrumentation().getContext();
+ }
+}