assertThat(api.getLastLocation()).isNotNull();
}
@Test
public void requestLocationUpdates_shouldRegisterGpsAndNetworkListener() throws Exception {
LocationListener listener = new TestLocationListener();
<BUG>api.requestLocationUpdates(LocationRequest.create(), listener);
assertThat(shadowLocationManager.getRequestLocationUpdateListeners()).hasSize(2);</BUG>
}
@Test
public void requestLocationUpdates_shouldNotifyOnLocationChangedGps() throws Exception {

assertThat(api.getLastLocation()).isNotNull();
}
@Test
public void requestLocationUpdates_shouldRegisterGpsAndNetworkListener() throws Exception {
LocationListener listener = new TestLocationListener();
api.requestLocationUpdates(LocationRequest.create().setPriority(PRIORITY_HIGH_ACCURACY),
listener);
assertThat(shadowLocationManager.getRequestLocationUpdateListeners()).hasSize(2);
}
@Test
public void requestLocationUpdates_shouldNotifyOnLocationChangedGps() throws Exception {
