@@ -0,0 +1,1293 @@
+package com.activeandroid.test;%0A%0Aimport com.activeandroid.Configuration;%0Aimport com.activeandroid.Model;%0Aimport com.activeandroid.annotation.Table;%0A%0Aimport android.test.AndroidTestCase;%0A%0Aimport java.io.IOException;%0Aimport java.util.List;%0A%0Apublic class ConfigurationTest extends AndroidTestCase %7B%0A%0A    public void testDefaultValue() throws IOException, ClassNotFoundException %7B%0A        Configuration conf = new Configuration.Builder(getContext()).create();%0A        assertNotNull(conf.getContext());%0A        assertEquals(1024, conf.getCacheSize());%0A        assertEquals(%22Application.db%22, conf.getDatabaseName());%0A        assertEquals(1, conf.getDatabaseVersion());%0A        assertNull(conf.getModelClasses());%0A        assertFalse(conf.isValid());%0A        assertNull(conf.getTypeSerializers());%0A    %7D%0A%0A    public void testCreateConfigurationWithMockModel() %7B%0A        Configuration conf = new Configuration.Builder(getContext())%0A                .addModelClass(ConfigurationTestModel.class)%0A                .create();%0A        List%3CClass%3C? extends Model%3E%3E modelClasses = conf.getModelClasses();%0A        assertEquals(1, modelClasses.size());%0A        assertTrue(conf.isValid());%0A    %7D%0A%0A    @Table(name = %22ConfigurationTestModel%22)%0A    private static class ConfigurationTestModel extends Model %7B%0A    %7D%0A%7D%0A

Add Configuration test