@@ -35,7 +35,7 @@ public class BaseEntityTest {
35
35
36
36
private static final Blob BLOB = Blob .copyFrom (new byte []{1 , 2 });
37
37
private static final DateTime DATE_TIME = DateTime .now ();
38
- private static final GeoPoint GEO_POINT = new GeoPoint (37.422035 , -122.084124 );
38
+ private static final LatLng LAT_LNG = new LatLng (37.422035 , -122.084124 );
39
39
private static final Key KEY = Key .builder ("ds1" , "k1" , "n1" ).build ();
40
40
private static final Entity ENTITY = Entity .builder (KEY ).set ("name" , "foo" ).build ();
41
41
private static final IncompleteKey INCOMPLETE_KEY = IncompleteKey .builder ("ds1" , "k1" ).build ();
@@ -63,9 +63,9 @@ public void setUp() {
63
63
builder = new Builder ();
64
64
builder .set ("blob" , BLOB ).set ("boolean" , true ).set ("dateTime" , DATE_TIME );
65
65
builder .set ("double" , 1.25 ).set ("key" , KEY ).set ("string" , "hello world" );
66
- builder .set ("long" , 125 ).setNull ("null" ).set ("entity" , ENTITY ).set ("geoPoint " , GEO_POINT );
66
+ builder .set ("long" , 125 ).setNull ("null" ).set ("entity" , ENTITY ).set ("latLng " , LAT_LNG );
67
67
builder .set ("partialEntity" , PARTIAL_ENTITY ).set ("stringValue" , StringValue .of ("bla" ));
68
- builder .set ("list1" , NullValue .of (), StringValue .of ("foo" ), GeoPointValue .of (GEO_POINT ));
68
+ builder .set ("list1" , NullValue .of (), StringValue .of ("foo" ), LatLngValue .of (LAT_LNG ));
69
69
builder .set ("list2" , ImmutableList .of (LongValue .of (10 ), DoubleValue .of (2 )));
70
70
builder .set ("list3" , Collections .singletonList (BooleanValue .of (true )));
71
71
}
@@ -151,9 +151,9 @@ public void testGetDateTime() throws Exception {
151
151
}
152
152
153
153
@ Test
154
- public void testGetGeoPoint () throws Exception {
154
+ public void testGetLatLng () throws Exception {
155
155
BaseEntity <Key > entity = builder .build ();
156
- assertEquals (GEO_POINT , entity .getGeoPoint ( "geoPoint " ));
156
+ assertEquals (LAT_LNG , entity .getLatLng ( "latLng " ));
157
157
}
158
158
159
159
@ Test
@@ -181,7 +181,7 @@ public void testGetList() throws Exception {
181
181
assertEquals (3 , list .size ());
182
182
assertEquals (NullValue .of (), list .get (0 ));
183
183
assertEquals ("foo" , list .get (1 ).get ());
184
- assertEquals (GEO_POINT , list .get (2 ).get ());
184
+ assertEquals (LAT_LNG , list .get (2 ).get ());
185
185
list = entity .getList ("list2" );
186
186
assertEquals (2 , list .size ());
187
187
assertEquals (Long .valueOf (10 ), list .get (0 ).get ());
@@ -207,7 +207,7 @@ public void testNames() throws Exception {
207
207
Set <String > names =
208
208
ImmutableSet .<String >builder ()
209
209
.add ("string" , "stringValue" , "boolean" , "double" , "long" , "list1" , "list2" , "list3" )
210
- .add ("entity" , "partialEntity" , "null" , "dateTime" , "geoPoint " , "blob" , "key" )
210
+ .add ("entity" , "partialEntity" , "null" , "dateTime" , "latLng " , "blob" , "key" )
211
211
.build ();
212
212
BaseEntity <Key > entity = builder .build ();
213
213
assertEquals (names , entity .names ());
0 commit comments