[go: nahoru, domu]

Nav: Add NavControllerTest infrastructure

Add initial structure for future NavController
host side tests.

Test: initial test passes
Change-Id: I196f4d310b174721f4e4f9c88f48aaf947c920fc
diff --git a/navigation/runtime/build.gradle b/navigation/runtime/build.gradle
index 336c30a..3a68257 100644
--- a/navigation/runtime/build.gradle
+++ b/navigation/runtime/build.gradle
@@ -51,10 +51,15 @@
     compile libs.support.fragments
 
     testCompile libs.junit
-    testCompile libs.mockito.all
+    testCompile libs.mockito_core
+
     testCompile(libs.test_runner) {
         exclude module: 'support-annotations'
     }
+
+    androidTestCompile(libs.test_runner) {
+        exclude module: 'support-annotations'
+    }
     androidTestCompile(libs.espresso_core, {
         exclude group: 'com.android.support', module: 'support-annotations'
     })