Searched refs:DatabaseConfig (Results 1 – 17 of 17) sorted by relevance
/external/robolectric/src/test/java/com/xtremelabs/robolectric/util/ |
D | DatabaseConfigTest.java | 4 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 …]
|
D | NullDatabaseMapTest.java | 4 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 …]
|
D | NullDatabaseMap.java | 3 import com.xtremelabs.robolectric.util.DatabaseConfig.DatabaseMap;
|
D | H2Test.java | 16 @DatabaseConfig.UsingDatabaseMap(H2Map.class)
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | H2DatabaseTest.java | 4 import com.xtremelabs.robolectric.util.DatabaseConfig; 12 @DatabaseConfig.UsingDatabaseMap(H2Map.class) 17 assertThat(DatabaseConfig.getDatabaseMap().getClass().getName(), in shouldUseH2DatabaseMap()
|
D | SQLiteDatabaseTest.java | 5 import com.xtremelabs.robolectric.util.DatabaseConfig; 18 @DatabaseConfig.UsingDatabaseMap(SQLiteMap.class) 24 assertThat(DatabaseConfig.getDatabaseMap().getClass().getName(), in shouldUseSQLiteDatabaseMap()
|
D | CursorAdapterTest.java | 28 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()
|
D | SQLiteCursorTest.java | 7 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/ |
D | ShadowSQLiteDatabase.java | 11 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/ |
D | H2Map_TypeForwardOnly.java | 6 public class H2Map_TypeForwardOnly extends H2Map implements DatabaseConfig.DatabaseMap {
|
D | SQLiteMap.java | 5 public class SQLiteMap implements DatabaseConfig.DatabaseMap {
|
D | H2Map.java | 9 public class H2Map implements DatabaseConfig.DatabaseMap {
|
D | DatabaseConfig.java | 13 public class DatabaseConfig { class
|
D | SQLite.java | 42 String sql = DatabaseConfig.getScrubSQL(sb.toString()); in buildInsertString()
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/internal/ |
D | RobolectricTestRunnerInterface.java | 4 import com.xtremelabs.robolectric.util.DatabaseConfig.DatabaseMap;
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/ |
D | RobolectricTestRunner.java | 38 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/ |
D | WithTestDefaultsRunner.java | 9 import com.xtremelabs.robolectric.util.DatabaseConfig.DatabaseMap;
|