Home
last modified time | relevance | path

Searched refs:DatabaseConfig (Results 1 – 17 of 17) sorted by relevance

/external/robolectric/src/test/java/com/xtremelabs/robolectric/util/
DDatabaseConfigTest.java4 import com.xtremelabs.robolectric.util.DatabaseConfig.DatabaseMap;
5 import com.xtremelabs.robolectric.util.DatabaseConfig.NullDatabaseMapException;
20 DatabaseConfig.setDatabaseMap(new H2Map()); in setup()
25 … assertThat(DatabaseConfig.getDatabaseMap().getClass().getName(), equalTo(H2Map.class.getName())); in testSettingDatabaseMapLoadsCorrectly()
26 assertThat(DatabaseConfig.isMapLoaded(), equalTo(false)); in testSettingDatabaseMapLoadsCorrectly()
27 DatabaseConfig.getMemoryConnection(); //load map in testSettingDatabaseMapLoadsCorrectly()
28 assertThat(DatabaseConfig.isMapLoaded(), equalTo(true)); in testSettingDatabaseMapLoadsCorrectly()
29 assertThat(DatabaseConfig.getResultSetType(), equalTo(ResultSet.TYPE_SCROLL_INSENSITIVE)); in testSettingDatabaseMapLoadsCorrectly()
32 DatabaseConfig.setDatabaseMap(ForwardOnlyMap); in testSettingDatabaseMapLoadsCorrectly()
33 assertThat(DatabaseConfig.isMapLoaded(), equalTo(false)); in testSettingDatabaseMapLoadsCorrectly()
[all …]
DNullDatabaseMapTest.java4 import com.xtremelabs.robolectric.util.DatabaseConfig.CannotLoadDatabaseMapDriverException;
5 import com.xtremelabs.robolectric.util.DatabaseConfig.UsingDatabaseMap;
23 Assert.assertTrue(DatabaseConfig.getDatabaseMap().getClass().getName() in CanChangeDatabaseMapUsingAnnotation()
25 Assert.assertTrue(DatabaseConfig.getDatabaseMap().getConnectionString() == null); in CanChangeDatabaseMapUsingAnnotation()
26 Assert.assertTrue(DatabaseConfig.getDatabaseMap() in CanChangeDatabaseMapUsingAnnotation()
28 …Assert.assertTrue(DatabaseConfig.getDatabaseMap().getDriverClassName() == "com.xtremelabs.robolect… in CanChangeDatabaseMapUsingAnnotation()
33 Assert.assertTrue(DatabaseConfig.getDatabaseMap().getClass().getName() in MapIsSetButIsNotLoaded()
36 Assert.assertFalse(DatabaseConfig.isMapLoaded()); in MapIsSetButIsNotLoaded()
41 Assert.assertFalse(DatabaseConfig.isMapLoaded()); in MapLoadsButConnectionFails()
47 connection = DatabaseConfig.getMemoryConnection(); in MapLoadsButConnectionFails()
[all …]
DNullDatabaseMap.java3 import com.xtremelabs.robolectric.util.DatabaseConfig.DatabaseMap;
DH2Test.java16 @DatabaseConfig.UsingDatabaseMap(H2Map.class)
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DH2DatabaseTest.java4 import com.xtremelabs.robolectric.util.DatabaseConfig;
12 @DatabaseConfig.UsingDatabaseMap(H2Map.class)
17 assertThat(DatabaseConfig.getDatabaseMap().getClass().getName(), in shouldUseH2DatabaseMap()
DSQLiteDatabaseTest.java5 import com.xtremelabs.robolectric.util.DatabaseConfig;
18 @DatabaseConfig.UsingDatabaseMap(SQLiteMap.class)
24 assertThat(DatabaseConfig.getDatabaseMap().getClass().getName(), in shouldUseSQLiteDatabaseMap()
DCursorAdapterTest.java28 import com.xtremelabs.robolectric.util.DatabaseConfig;
38 Connection connection = DatabaseConfig.getMemoryConnection(); in setUp()
54 …statement = connection.createStatement(DatabaseConfig.getResultSetType(), ResultSet.CONCUR_READ_ON… in setUp()
DSQLiteCursorTest.java7 import com.xtremelabs.robolectric.util.DatabaseConfig;
31 connection = DatabaseConfig.getMemoryConnection(); in setUp()
340 …Statement statement = connection.createStatement(DatabaseConfig.getResultSetType(), ResultSet.CONC… in setupCursor()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowSQLiteDatabase.java11 import com.xtremelabs.robolectric.util.DatabaseConfig;
67 connection = DatabaseConfig.getMemoryConnection(); in openDatabase()
128 …Statement statement = connection.createStatement(DatabaseConfig.getResultSetType(), ResultSet.CONC… in query()
189 String scrubbedSql= DatabaseConfig.getScrubSQL(sql); in execSQL()
203 String scrubbedSql= DatabaseConfig.getScrubSQL(sql); in execSQL()
348 String scrubbedSql= DatabaseConfig.getScrubSQL(sql);
/external/robolectric/src/main/java/com/xtremelabs/robolectric/util/
DH2Map_TypeForwardOnly.java6 public class H2Map_TypeForwardOnly extends H2Map implements DatabaseConfig.DatabaseMap {
DSQLiteMap.java5 public class SQLiteMap implements DatabaseConfig.DatabaseMap {
DH2Map.java9 public class H2Map implements DatabaseConfig.DatabaseMap {
DDatabaseConfig.java13 public class DatabaseConfig { class
DSQLite.java42 String sql = DatabaseConfig.getScrubSQL(sb.toString()); in buildInsertString()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/internal/
DRobolectricTestRunnerInterface.java4 import com.xtremelabs.robolectric.util.DatabaseConfig.DatabaseMap;
/external/robolectric/src/main/java/com/xtremelabs/robolectric/
DRobolectricTestRunner.java38 import com.xtremelabs.robolectric.util.DatabaseConfig;
39 import com.xtremelabs.robolectric.util.DatabaseConfig.DatabaseMap;
40 import com.xtremelabs.robolectric.util.DatabaseConfig.UsingDatabaseMap;
403 DatabaseConfig.setDatabaseMap(this.databaseMap);//Set static DatabaseMap in DBConfig
/external/robolectric/src/test/java/com/xtremelabs/robolectric/
DWithTestDefaultsRunner.java9 import com.xtremelabs.robolectric.util.DatabaseConfig.DatabaseMap;