use of android.app.Application in project robospice by stephanenicolas.
the class InFileWeatherPersisterTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
Application application = (Application) getContext().getApplicationContext();
GsonObjectPersisterFactory factory = new GsonObjectPersisterFactory(application);
dataPersistenceManager = factory.createObjectPersister(WeatherResult.class);
}
use of android.app.Application in project robospice by stephanenicolas.
the class InFileStringObjectPersisterTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
Application application = (Application) getContext().getApplicationContext();
inFileStringObjectPersister = new InFileStringObjectPersister(application);
}
use of android.app.Application in project robospice by stephanenicolas.
the class InFileInputStreamObjectPersisterTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
Application application = (Application) getContext().getApplicationContext();
inputStreamCacheManager = new InFileInputStreamObjectPersister(application);
}
use of android.app.Application in project robospice by stephanenicolas.
the class InFileObjectPersisterFactoryTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
Application application = (Application) getContext().getApplicationContext();
inFileObjectPersisterFactory = new InFileObjectPersisterFactoryUnderTest(application);
}
use of android.app.Application in project robospice by stephanenicolas.
the class InFileObjectPersisterWithSanitationTest method setUp.
@Override
protected void setUp() throws Exception {
Application application = (Application) getContext().getApplicationContext();
inFileObjectPersister = new InFileObjectPersisterWithSanitationUnderTest(application);
super.setUp(inFileObjectPersister);
}
Aggregations