Search in sources :

Example 1 with DoubleInMemoryPersisterStub

use of com.octo.android.robospice.stub.DoubleInMemoryPersisterStub 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;
}
Also used : IntegerPersisterStub(com.octo.android.robospice.stub.IntegerPersisterStub) CacheManager(com.octo.android.robospice.persistence.CacheManager) DoubleInMemoryPersisterStub(com.octo.android.robospice.stub.DoubleInMemoryPersisterStub) StringPersisterStub(com.octo.android.robospice.stub.StringPersisterStub)

Aggregations

CacheManager (com.octo.android.robospice.persistence.CacheManager)1 DoubleInMemoryPersisterStub (com.octo.android.robospice.stub.DoubleInMemoryPersisterStub)1 IntegerPersisterStub (com.octo.android.robospice.stub.IntegerPersisterStub)1 StringPersisterStub (com.octo.android.robospice.stub.StringPersisterStub)1