Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanenicolas committed Sep 1, 2013
1 parent 2092275 commit 32b2d38
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Version 1.4.7 (Planned on July 30th 2013)

** Bug fixes
* Documentation has been updated in RS Starter Guide thanks to Mathieu Castets.
* removeDataFromCache now returns a future for possible sync. Thanks to sergej-koscejev for the fix in pull request https://github.com/octo-online/robospice/pull/185



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ public void test_spiceManager_can_be_stopped_and_restarted() throws InterruptedE

// given
spiceManager.start(getInstrumentation().getTargetContext());
spiceManager.shouldStop();
spiceManager.shouldStopAndJoin(SPICE_MANAGER_WAIT_TIMEOUT);

spiceManager.start(getInstrumentation().getTargetContext());
SpiceRequestStub<String> spiceRequestStub = new SpiceRequestFailingStub<String>(TEST_CLASS, WAIT_BEFORE_EXECUTING_REQUEST_LARGE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -913,12 +913,12 @@ public Future<Date> getDateOfDataInCache(Class<?> clazz, final Object cacheKey)
* @param cacheKey
* the key of the object in cache
*/
public <T> void removeDataFromCache(final Class<T> clazz, final Object cacheKey) {
public <T> Future<?> removeDataFromCache(final Class<T> clazz, final Object cacheKey) {
if (clazz == null || cacheKey == null) {
throw new IllegalArgumentException("Both parameters must be non null.");
}

executeCommand(new RemoveDataFromCacheCommand(this, clazz, cacheKey));
return executeCommand(new RemoveDataFromCacheCommand(this, clazz, cacheKey));
}

/**
Expand Down

0 comments on commit 32b2d38

Please sign in to comment.