@@ -35,7 +35,7 @@ public class BaseEntityTest {
3535
3636 private static final Blob BLOB = Blob .copyFrom (new byte []{1 , 2 });
3737 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 );
3939 private static final Key KEY = Key .builder ("ds1" , "k1" , "n1" ).build ();
4040 private static final Entity ENTITY = Entity .builder (KEY ).set ("name" , "foo" ).build ();
4141 private static final IncompleteKey INCOMPLETE_KEY = IncompleteKey .builder ("ds1" , "k1" ).build ();
@@ -63,9 +63,9 @@ public void setUp() {
6363 builder = new Builder ();
6464 builder .set ("blob" , BLOB ).set ("boolean" , true ).set ("dateTime" , DATE_TIME );
6565 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 );
6767 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 ));
6969 builder .set ("list2" , ImmutableList .of (LongValue .of (10 ), DoubleValue .of (2 )));
7070 builder .set ("list3" , Collections .singletonList (BooleanValue .of (true )));
7171 }
@@ -151,9 +151,9 @@ public void testGetDateTime() throws Exception {
151151 }
152152
153153 @ Test
154- public void testGetGeoPoint () throws Exception {
154+ public void testGetLatLng () throws Exception {
155155 BaseEntity <Key > entity = builder .build ();
156- assertEquals (GEO_POINT , entity .getGeoPoint ( "geoPoint " ));
156+ assertEquals (LAT_LNG , entity .getLatLng ( "latLng " ));
157157 }
158158
159159 @ Test
@@ -181,7 +181,7 @@ public void testGetList() throws Exception {
181181 assertEquals (3 , list .size ());
182182 assertEquals (NullValue .of (), list .get (0 ));
183183 assertEquals ("foo" , list .get (1 ).get ());
184- assertEquals (GEO_POINT , list .get (2 ).get ());
184+ assertEquals (LAT_LNG , list .get (2 ).get ());
185185 list = entity .getList ("list2" );
186186 assertEquals (2 , list .size ());
187187 assertEquals (Long .valueOf (10 ), list .get (0 ).get ());
@@ -207,7 +207,7 @@ public void testNames() throws Exception {
207207 Set <String > names =
208208 ImmutableSet .<String >builder ()
209209 .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" )
211211 .build ();
212212 BaseEntity <Key > entity = builder .build ();
213213 assertEquals (names , entity .names ());
0 commit comments