This repository was archived by the owner on Dec 9, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
src/test/java/com/google/samples/apps/ourstreets/model Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ android {
38
38
release {
39
39
minifyEnabled false
40
40
proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
41
+ resValue " string" , " google_maps_key" , " \" ${ maps_api_key} \" "
41
42
}
42
43
}
43
44
packagingOptions {
@@ -62,6 +63,8 @@ dependencies {
62
63
implementation " com.firebase:firebase-client-android:${ firebaseVersion} "
63
64
implementation " com.google.android.gms:play-services-maps:${ mapsVersion} "
64
65
implementation " com.google.maps.android:android-maps-utils:${ mapsUtilsVersion} "
66
+
67
+ testImplementation " androidx.test:runner:1.2.0"
65
68
testImplementation ' junit:junit:4.12'
66
69
testImplementation " org.hamcrest:hamcrest-core:${ hamcrestVersion} "
67
70
testImplementation " org.hamcrest:hamcrest-library:${ hamcrestVersion} "
Original file line number Diff line number Diff line change 16
16
17
17
package com .google .samples .apps .ourstreets .model ;
18
18
19
- import android .test .suitebuilder . annotation .SmallTest ;
19
+ import androidx .test .filters .SmallTest ;
20
20
21
21
import com .google .android .gms .maps .model .LatLng ;
22
22
23
23
import org .junit .After ;
24
24
import org .junit .Before ;
25
25
import org .junit .Test ;
26
26
27
- import static org .hamcrest .CoreMatchers .equalTo ;
28
27
import static org .hamcrest .CoreMatchers .is ;
29
28
import static org .hamcrest .MatcherAssert .assertThat ;
30
29
@@ -80,4 +79,4 @@ public void testGetTilt() {
80
79
public void testGetBearing () {
81
80
assertThat ( Math .abs (mDetailUnderTest .getBearing () - mBearing ) < MAX_FLOAT_DELTA , is (true ));
82
81
}
83
- }
82
+ }
Original file line number Diff line number Diff line change 16
16
17
17
package com .google .samples .apps .ourstreets .model ;
18
18
19
- import android .test .suitebuilder . annotation .SmallTest ;
19
+ import androidx .test .filters .SmallTest ;
20
20
21
21
import com .google .android .gms .maps .model .LatLng ;
22
22
@@ -111,4 +111,4 @@ public void testGetBounds_none() {
111
111
mGalleryUnderTest .replaceDetails (testList );
112
112
assertThat (mGalleryUnderTest .getBounds (), notNullValue ());
113
113
}
114
- }
114
+ }
You can’t perform that action at this time.
0 commit comments