Search in sources :

Example 1 with InFileStringObjectPersister

use of com.octo.android.robospice.persistence.string.InFileStringObjectPersister in project robospice by stephanenicolas.

the class LruCacheObjectPersisterTest method setUp.

@Override
public void setUp() throws CacheCreationException {
    testPersister = new LruCacheStringObjectPersister(TEST_LRU_CACHE_SIZE);
    Application application = (Application) getContext().getApplicationContext();
    testPersisterWithFallback = new LruCacheStringObjectPersister(new InFileStringObjectPersister(application), TEST_LRU_CACHE_SIZE);
}
Also used : Application(android.app.Application) InFileStringObjectPersister(com.octo.android.robospice.persistence.string.InFileStringObjectPersister)

Aggregations

Application (android.app.Application)1 InFileStringObjectPersister (com.octo.android.robospice.persistence.string.InFileStringObjectPersister)1