Search in sources :

Example 1 with ImageFileCache

use of com.stanfy.enroscar.images.cache.ImageFileCache in project enroscar by stanfy.

the class ImagesManagerAndroidTest method testSetup.

public void testSetup() {
    ResponseCache cache = imagesManager.getImagesResponseCache();
    assertThat(cache).isInstanceOf(ImageFileCache.class);
    ImageFileCache imageFileCache = (ImageFileCache) cache;
    assertThat(imageFileCache.getWorkingDirectory()).isNotNull();
    assertThat(imageFileCache.getWorkingDirectory()).exists();
    assertThat(imageFileCache.getWorkingDirectory()).isDirectory();
    assertThat(imageFileCache.getMaxSize()).isGreaterThan(0);
}
Also used : ImageFileCache(com.stanfy.enroscar.images.cache.ImageFileCache) ResponseCache(java.net.ResponseCache)

Aggregations

ImageFileCache (com.stanfy.enroscar.images.cache.ImageFileCache)1 ResponseCache (java.net.ResponseCache)1