@Test public void setLocation_shouldReportLocation() throws Exception { Location mockLocation = new Location("mock"); mockEngine.setLocation(mockLocation); assertThat(callback.lastLocation).isEqualTo(mockLocation); }
public void setLocation(Location location) { this.location = location; if (getCallback() != null) { getCallback().reportLocation(location); } }
MockEngine extends LocationEngine { public void setLocation(Location location) { this.location = location; if (getCallback() != null) { getCallback().reportLocation(location); } } }
MockEngine extends LocationEngine { public void setLocation(Location location) { this.location = location; if (getCallback() != null) { getCallback().reportLocation(location); } } MockEngine(Context context, FusionEngine.Callback callback,
      TraceThreadFactory traceThreadFactory); }
MockEngine extends LocationEngine { public void setLocation(Location location) { this.location = location; if (getCallback() != null) { getCallback().reportLocation(location); } } MockEngine(Context context, FusionEngine.Callback callback,
      TraceThreadFactory traceThreadFactory); @Override Location getLastLocation(); @Override boolean isProviderEnabled(String provider); void setLocation(Location location); void setTrace(File file); File getTrace(); }
MockEngine extends LocationEngine { public void setLocation(Location location) { this.location = location; if (getCallback() != null) { getCallback().reportLocation(location); } } MockEngine(Context context, FusionEngine.Callback callback,
      TraceThreadFactory traceThreadFactory); @Override Location getLastLocation(); @Override boolean isProviderEnabled(String provider); void setLocation(Location location); void setTrace(File file); File getTrace(); static final String MOCK_PROVIDER; }