@Test public void setTimeout() { rxLocation.setDefaultTimeout(TIMEOUT_TIME, TIMEOUT_TIMEUNIT); assertEquals(TIMEOUT_TIME, (long) rxLocation.timeoutTime); assertEquals(TIMEOUT_TIMEUNIT, rxLocation.timeoutUnit); }
public void setDefaultTimeout(long time, @NonNull TimeUnit timeUnit) { if (timeUnit != null) { timeoutTime = time; timeoutUnit = timeUnit; } else { throw new IllegalArgumentException("timeUnit parameter must not be null"); } }
RxLocation { public void setDefaultTimeout(long time, @NonNull TimeUnit timeUnit) { if (timeUnit != null) { timeoutTime = time; timeoutUnit = timeUnit; } else { throw new IllegalArgumentException("timeUnit parameter must not be null"); } } }
RxLocation { public void setDefaultTimeout(long time, @NonNull TimeUnit timeUnit) { if (timeUnit != null) { timeoutTime = time; timeoutUnit = timeUnit; } else { throw new IllegalArgumentException("timeUnit parameter must not be null"); } } RxLocation(@NonNull Context ctx); }
RxLocation { public void setDefaultTimeout(long time, @NonNull TimeUnit timeUnit) { if (timeUnit != null) { timeoutTime = time; timeoutUnit = timeUnit; } else { throw new IllegalArgumentException("timeUnit parameter must not be null"); } } RxLocation(@NonNull Context ctx); void setDefaultTimeout(long time, @NonNull TimeUnit timeUnit); void resetDefaultTimeout(); ActivityRecognition activity(); Geocoding geocoding(); Geofencing geofencing(); FusedLocation location(); LocationSettings settings(); }
RxLocation { public void setDefaultTimeout(long time, @NonNull TimeUnit timeUnit) { if (timeUnit != null) { timeoutTime = time; timeoutUnit = timeUnit; } else { throw new IllegalArgumentException("timeUnit parameter must not be null"); } } RxLocation(@NonNull Context ctx); void setDefaultTimeout(long time, @NonNull TimeUnit timeUnit); void resetDefaultTimeout(); ActivityRecognition activity(); Geocoding geocoding(); Geofencing geofencing(); FusedLocation location(); LocationSettings settings();  }