summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFicus Kirkpatrick <ficus@android.com>2015-08-22 01:38:33 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-08-22 01:38:33 +0000
commit6059e2b6fd5989bacbbae5c3454291fd8f805eeb (patch)
tree75e0091250cf90278592f73b6a9d4eec5ce550d7
parent783427524dfecc1cbb35c9db41047b5353ea3d20 (diff)
parentefe58580e694ea8b48fff9742722a04537678b3c (diff)
downloadvolley-6059e2b6fd5989bacbbae5c3454291fd8f805eeb.tar.gz
am efe58580: am 8097dda9: Merge "Specify test dependecies in rules.gradle."
* commit 'efe58580e694ea8b48fff9742722a04537678b3c': Specify test dependecies in rules.gradle.
-rw-r--r--build.gradle4
-rw-r--r--rules.gradle9
2 files changed, 13 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index 83acd6d..92c86eb 100644
--- a/build.gradle
+++ b/build.gradle
@@ -25,6 +25,10 @@ buildscript {
apply plugin: 'com.android.library'
+repositories {
+ jcenter()
+}
+
android {
compileSdkVersion 22
buildToolsVersion = '22.0.1'
diff --git a/rules.gradle b/rules.gradle
index 40508d0..c8a95a9 100644
--- a/rules.gradle
+++ b/rules.gradle
@@ -1,3 +1,12 @@
// See build.gradle for an explanation of what this file is.
apply plugin: 'com.android.library'
+
+// Check if the android plugin version supports unit testing.
+if (configurations.findByName("testCompile")) {
+ dependencies {
+ testCompile "junit:junit:4.10"
+ testCompile "org.mockito:mockito-core:1.9.5"
+ testCompile "org.robolectric:robolectric:2.2"
+ }
+}