use of com.octo.android.robospice.stub.StringPersisterStub in project robospice by stephanenicolas.
the class SpiceTestService method createCacheManager.
@Override
public CacheManager createCacheManager(Application application) {
CacheManager cacheManager = new CacheManager();
StringPersisterStub stringPersisterStub = new StringPersisterStub(application);
IntegerPersisterStub integerPersisterStub = new IntegerPersisterStub(application);
DoubleInMemoryPersisterStub doubleInMemoryPersisterStub = new DoubleInMemoryPersisterStub(application);
cacheManager.addPersister(stringPersisterStub);
cacheManager.addPersister(integerPersisterStub);
cacheManager.addPersister(doubleInMemoryPersisterStub);
return cacheManager;
}
Aggregations