@@ -0,0 +1,1456 @@
+package com.activeandroid.test;%0A%0Aimport com.activeandroid.ActiveAndroid;%0Aimport com.activeandroid.Cache;%0Aimport com.activeandroid.Configuration;%0Aimport com.activeandroid.Model;%0Aimport com.activeandroid.TableInfo;%0Aimport com.activeandroid.annotation.Table;%0A%0Aimport android.test.AndroidTestCase;%0A%0Aimport java.util.Collection;%0A%0Apublic class CacheTest extends AndroidTestCase %7B%0A%0A    @Override%0A    protected void setUp() %7B%0A        Configuration conf = new Configuration.Builder(getContext())%0A                .addModelClasses(CacheTestModel.class, CacheTestModel2.class)%0A                .create();%0A        ActiveAndroid.initialize(conf, true);%0A    %7D%0A%0A    public void testGetTableInfos() %7B%0A        assertNotNull(Cache.getContext());%0A        Collection%3CTableInfo%3E tableInfos = Cache.getTableInfos();%0A        assertEquals(2, tableInfos.size());%0A%0A        %7B%0A            TableInfo tableInfo = Cache.getTableInfo(CacheTestModel.class);%0A            assertNotNull(tableInfo);%0A            assertEquals(%22CacheTestModel%22, tableInfo.getTableName());%0A        %7D%0A%0A        %7B%0A            TableInfo tableInfo = Cache.getTableInfo(CacheTestModel2.class);%0A            assertNotNull(tableInfo);%0A            assertEquals(%22CacheTestModel2%22, tableInfo.getTableName());%0A        %7D%0A    %7D%0A%0A    @Table(name = %22CacheTestModel%22)%0A    private static class CacheTestModel extends Model %7B%0A    %7D%0A%0A    @Table(name = %22CacheTestModel2%22)%0A    private static class CacheTestModel2 extends Model %7B%0A    %7D%0A%7D%0A

Add Cache test