@Test public void checkLocationSettings_shouldCreateLocationSettingsResultRequest() { LocationSettingsRequest request = new LocationSettingsRequest.Builder().build(); LostApiClient apiClient = new LostApiClient.Builder(context).build(); PendingResult<LocationSettingsResult> result = settingsApi.checkLocationSettings(apiClient, request); assertThat(result).isInstanceOf(LocationSettingsResultRequest.class); }
@Override public PendingResult<LocationSettingsResult> checkLocationSettings(LostApiClient client, LocationSettingsRequest request) { PendingIntentGenerator generator = new PendingIntentGenerator(context); return new LocationSettingsResultRequest(context, generator, request); }
SettingsApiImpl implements SettingsApi { @Override public PendingResult<LocationSettingsResult> checkLocationSettings(LostApiClient client, LocationSettingsRequest request) { PendingIntentGenerator generator = new PendingIntentGenerator(context); return new LocationSettingsResultRequest(context, generator, request); } }
SettingsApiImpl implements SettingsApi { @Override public PendingResult<LocationSettingsResult> checkLocationSettings(LostApiClient client, LocationSettingsRequest request) { PendingIntentGenerator generator = new PendingIntentGenerator(context); return new LocationSettingsResultRequest(context, generator, request); }  }
SettingsApiImpl implements SettingsApi { @Override public PendingResult<LocationSettingsResult> checkLocationSettings(LostApiClient client, LocationSettingsRequest request) { PendingIntentGenerator generator = new PendingIntentGenerator(context); return new LocationSettingsResultRequest(context, generator, request); }  void connect(Context context); boolean isConnected(); void disconnect(); @Override PendingResult<LocationSettingsResult> checkLocationSettings(LostApiClient client,
      LocationSettingsRequest request); }
SettingsApiImpl implements SettingsApi { @Override public PendingResult<LocationSettingsResult> checkLocationSettings(LostApiClient client, LocationSettingsRequest request) { PendingIntentGenerator generator = new PendingIntentGenerator(context); return new LocationSettingsResultRequest(context, generator, request); }  void connect(Context context); boolean isConnected(); void disconnect(); @Override PendingResult<LocationSettingsResult> checkLocationSettings(LostApiClient client,
      LocationSettingsRequest request);  }