File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
places-ktx/src/test/java/com/google/android/libraries/places/ktx/model Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 17
17
package com.google.android.libraries.places.ktx.model
18
18
19
19
20
+ import com.google.android.libraries.places.api.model.PlaceTypes
20
21
import com.google.android.libraries.places.ktx.api.model.autocompletePrediction
21
22
import org.junit.Assert.assertEquals
22
23
import org.junit.Test
@@ -25,10 +26,10 @@ internal class AutocompletePredictionTest {
25
26
@Test
26
27
fun testBuilder () {
27
28
val prediction = autocompletePrediction(" placeId" ) {
28
- types = listOf (" aquarium " )
29
+ types = listOf (PlaceTypes . AQUARIUM )
29
30
}
30
31
val res = prediction.getPrimaryText(null )
31
32
assertEquals(" placeId" , prediction.placeId)
32
- assertEquals(listOf (" aquarium " ), prediction.types)
33
+ assertEquals(listOf (PlaceTypes . AQUARIUM ), prediction.types)
33
34
}
34
- }
35
+ }
You can’t perform that action at this time.
0 commit comments