Browse Source

added mockito.jar

Yiupang 9 năm trước cách đây
mục cha
commit
bf8033dafe

+ 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')
 }

BIN
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;