// Path: test/src/test/java/com/danikula/videocache/BaseTest.java
// @RunWith(RobolectricTestRunner.class)
// @Config(constants = BuildConfig.class)
// public abstract class BaseTest {
// 
//     static {
//         System.setProperty("org.slf4j.simpleLogger.defaultLogLevel", "trace");
//     }
// 
// }
// 
// Path: library/src/main/java/com/danikula/videocache/SourceInfo.java
// public class SourceInfo {
// 
//     public final String url;
//     public final long length;
//     public final String mime;
// 
//     public SourceInfo(String url, long length, String mime) {
//         this.url = url;
//         this.length = length;
//         this.mime = mime;
//     }
// 
//     @Override
//     public String toString() {
//         return "SourceInfo{" +
//                 "url='" + url + '\'' +
//                 ", length=" + length +
//                 ", mime='" + mime + '\'' +
//                 '}';
//     }
// }


import com.danikula.videocache.BaseTest;
import com.danikula.videocache.SourceInfo;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.robolectric.RuntimeEnvironment;
import static org.fest.assertions.api.Assertions.assertThat;
import static org.fest.assertions.api.Assertions.fail;
package com.danikula.videocache.sourcestorage;




/**
 * Tests for {@link SourceInfoStorage}.
 *
 * @author Alexey Danilov (danikula@gmail.com).
 */
public class SourceInfoStorageTest extends BaseTest {

    private SourceInfoStorage storage;

    @Before
    public void setUp() throws Exception {
        storage = SourceInfoStorageFactory.newSourceInfoStorage(RuntimeEnvironment.application);
    }

    @After
    public void tearDown() throws Exception {
        storage.release();
    }

    @Test
    public void testGetAbsent() throws Exception {
// Path: test/src/test/java/com/danikula/videocache/BaseTest.java
// @RunWith(RobolectricTestRunner.class)
// @Config(constants = BuildConfig.class)
// public abstract class BaseTest {
// 
//     static {
//         System.setProperty("org.slf4j.simpleLogger.defaultLogLevel", "trace");
//     }
// 
// }
// 
// Path: library/src/main/java/com/danikula/videocache/SourceInfo.java
// public class SourceInfo {
// 
//     public final String url;
//     public final long length;
//     public final String mime;
// 
//     public SourceInfo(String url, long length, String mime) {
//         this.url = url;
//         this.length = length;
//         this.mime = mime;
//     }
// 
//     @Override
//     public String toString() {
//         return "SourceInfo{" +
//                 "url='" + url + '\'' +
//                 ", length=" + length +
//                 ", mime='" + mime + '\'' +
//                 '}';
//     }
// }


// Path: test/src/test/java/com/danikula/videocache/sourcestorage/SourceInfoStorageTest.java
import com.danikula.videocache.BaseTest;
import com.danikula.videocache.SourceInfo;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.robolectric.RuntimeEnvironment;
import static org.fest.assertions.api.Assertions.assertThat;
import static org.fest.assertions.api.Assertions.fail;

package com.danikula.videocache.sourcestorage;




/**
 * Tests for {@link SourceInfoStorage}.
 *
 * @author Alexey Danilov (danikula@gmail.com).
 */
public class SourceInfoStorageTest extends BaseTest {

    private SourceInfoStorage storage;

    @Before
    public void setUp() throws Exception {
        storage = SourceInfoStorageFactory.newSourceInfoStorage(RuntimeEnvironment.application);
    }

    @After
    public void tearDown() throws Exception {
        storage.release();
    }

    @Test
    public void testGetAbsent() throws Exception {
        SourceInfo sourceInfo = storage.get(":-)");