// Path: library/src/test/java/com/climate/mirage/RobolectricTest.java
// @RunWith(RobolectricTestRunner.class)
// @Config(constants = BuildConfig.class)
// abstract public class RobolectricTest {
// 
//     @Before
//     public void __setup() {
//         Mirage.set(null);
//     }
// 
// 
//     public Application getApp() {
//         return RuntimeEnvironment.application;
//     }
// }


import android.graphics.Bitmap;
import com.climate.mirage.BuildConfig;
import com.climate.mirage.RobolectricTest;
import junit.framework.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.Config;
package com.climate.mirage.cache.memory;





public class BitmapLruCacheTest extends RobolectricTest {

	private static final int DEFAULT_SIZE = 15 * 1024 * 1024;

	@Test
	public void testSimpleAdd() {
		BitmapLruCache cache = new BitmapLruCache(DEFAULT_SIZE);
		cache.put("asd", Bitmap.createBitmap(200, 200, Bitmap.Config.ARGB_8888));
		Assert.assertTrue(cache.has("asd"));
	}

	@Test
	public void testSimpleOnNullKey() {
		BitmapLruCache cache = new BitmapLruCache(DEFAULT_SIZE);
		Assert.assertFalse(cache.has(null));
	}

	@Test
	public void testCacheIsEmpty() {
		BitmapLruCache cache = new BitmapLruCache(DEFAULT_SIZE);
		Assert.assertFalse(cache.has("asd"));
		Assert.assertEquals(0, cache.getCurrentSize());
	}

	@Test
	public void testCacheDeletes() {
		BitmapLruCache cache = new BitmapLruCache(DEFAULT_SIZE);
		cache.put("asd", Bitmap.createBitmap(200, 200, Bitmap.Config.ARGB_8888));
		Assert.assertTrue(cache.has("asd"));
// Path: library/src/test/java/com/climate/mirage/RobolectricTest.java
// @RunWith(RobolectricTestRunner.class)
// @Config(constants = BuildConfig.class)
// abstract public class RobolectricTest {
// 
//     @Before
//     public void __setup() {
//         Mirage.set(null);
//     }
// 
// 
//     public Application getApp() {
//         return RuntimeEnvironment.application;
//     }
// }


// Path: library/src/test/java/com/climate/mirage/cache/memory/BitmapLruCacheTest.java
import android.graphics.Bitmap;
import com.climate.mirage.BuildConfig;
import com.climate.mirage.RobolectricTest;
import junit.framework.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.Config;

package com.climate.mirage.cache.memory;





public class BitmapLruCacheTest extends RobolectricTest {

	private static final int DEFAULT_SIZE = 15 * 1024 * 1024;

	@Test
	public void testSimpleAdd() {
		BitmapLruCache cache = new BitmapLruCache(DEFAULT_SIZE);
		cache.put("asd", Bitmap.createBitmap(200, 200, Bitmap.Config.ARGB_8888));
		Assert.assertTrue(cache.has("asd"));
	}

	@Test
	public void testSimpleOnNullKey() {
		BitmapLruCache cache = new BitmapLruCache(DEFAULT_SIZE);
		Assert.assertFalse(cache.has(null));
	}

	@Test
	public void testCacheIsEmpty() {
		BitmapLruCache cache = new BitmapLruCache(DEFAULT_SIZE);
		Assert.assertFalse(cache.has("asd"));
		Assert.assertEquals(0, cache.getCurrentSize());
	}

	@Test
	public void testCacheDeletes() {
		BitmapLruCache cache = new BitmapLruCache(DEFAULT_SIZE);
		cache.put("asd", Bitmap.createBitmap(200, 200, Bitmap.Config.ARGB_8888));
		Assert.assertTrue(cache.has("asd"));
		cache.remove("asd");