瀏覽代碼

added mockito.jar

Yiupang 9 年之前
父節點
當前提交
bf8033dafe
共有 3 個文件被更改,包括 3 次插入5 次删除
  1. 3 2
      app/build.gradle
  2. 二進制
      app/mockito-all-1.10.19.jar
  3. 0 3
      app/src/test/java/com/example/yiupang/freefoodfinder/TestHttpRequest.java

+ 3 - 2
app/build.gradle

@@ -25,7 +25,7 @@ dependencies {
     androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
         exclude group: 'com.android.support', module: 'support-annotations'
     })
-    repositories{
+    repositories {
         mavenCentral()
     }
     compile 'com.github.medyo:android-about-page:1.2.1'
@@ -34,8 +34,9 @@ dependencies {
     compile 'com.android.support.constraint:constraint-layout:1.0.2'
     compile 'com.android.support:design:25.3.1'
     compile 'com.roughike:bottom-bar:1.3.3'
-    compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.0.1'
+    compile 'com.fasterxml.jackson.core:jackson-databind:2.0.1'
     testCompile 'junit:junit:4.12'
     compile 'com.google.android.gms:play-services-maps:10.2.4'
     compile 'com.facebook.android:facebook-android-sdk:4.0.0'
+    compile files('mockito-all-1.10.19.jar')
 }

二進制
app/mockito-all-1.10.19.jar


+ 0 - 3
app/src/test/java/com/example/yiupang/freefoodfinder/TestHttpRequest.java

@@ -1,10 +1,7 @@
 package com.example.yiupang.freefoodfinder;
 
-import android.widget.ListView;
-
 import org.junit.Test;
 import static org.junit.Assert.assertEquals;
-import org.junit.Test;
 
 import java.util.List;