HomeSort by relevance Sort by last modified time
    Searched refs:DatabaseConfig (Results 1 - 17 of 17) sorted by null

  /external/robolectric/src/test/java/com/xtremelabs/robolectric/util/
DatabaseConfigTest.java 4 import com.xtremelabs.robolectric.util.DatabaseConfig.DatabaseMap;
5 import com.xtremelabs.robolectric.util.DatabaseConfig.NullDatabaseMapException;
20 DatabaseConfig.setDatabaseMap(new H2Map());
25 assertThat(DatabaseConfig.getDatabaseMap().getClass().getName(), equalTo(H2Map.class.getName()));
26 assertThat(DatabaseConfig.isMapLoaded(), equalTo(false));
27 DatabaseConfig.getMemoryConnection(); //load map
28 assertThat(DatabaseConfig.isMapLoaded(), equalTo(true));
29 assertThat(DatabaseConfig.getResultSetType(), equalTo(ResultSet.TYPE_SCROLL_INSENSITIVE));
32 DatabaseConfig.setDatabaseMap(ForwardOnlyMap);
33 assertThat(DatabaseConfig.isMapLoaded(), equalTo(false))
    [all...]
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()
25 Assert.assertTrue(DatabaseConfig.getDatabaseMap().getConnectionString() == null);
26 Assert.assertTrue(DatabaseConfig.getDatabaseMap()
28 Assert.assertTrue(DatabaseConfig.getDatabaseMap().getDriverClassName() == "com.xtremelabs.robolectric.util.NullDatabaseMap");
33 Assert.assertTrue(DatabaseConfig.getDatabaseMap().getClass().getName()
36 Assert.assertFalse(DatabaseConfig.isMapLoaded());
41 Assert.assertFalse(DatabaseConfig.isMapLoaded());
47 connection = DatabaseConfig.getMemoryConnection()
    [all...]
NullDatabaseMap.java 3 import com.xtremelabs.robolectric.util.DatabaseConfig.DatabaseMap;
H2Test.java 16 @DatabaseConfig.UsingDatabaseMap(H2Map.class)
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
H2DatabaseTest.java 4 import com.xtremelabs.robolectric.util.DatabaseConfig;
12 @DatabaseConfig.UsingDatabaseMap(H2Map.class)
17 assertThat(DatabaseConfig.getDatabaseMap().getClass().getName(),
SQLiteDatabaseTest.java 5 import com.xtremelabs.robolectric.util.DatabaseConfig;
18 @DatabaseConfig.UsingDatabaseMap(SQLiteMap.class)
24 assertThat(DatabaseConfig.getDatabaseMap().getClass().getName(),
CursorAdapterTest.java 28 import com.xtremelabs.robolectric.util.DatabaseConfig;
38 Connection connection = DatabaseConfig.getMemoryConnection();
54 statement = connection.createStatement(DatabaseConfig.getResultSetType(), ResultSet.CONCUR_READ_ONLY);
SQLiteCursorTest.java 7 import com.xtremelabs.robolectric.util.DatabaseConfig;
31 connection = DatabaseConfig.getMemoryConnection();
340 Statement statement = connection.createStatement(DatabaseConfig.getResultSetType(), ResultSet.CONCUR_READ_ONLY);
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/util/
H2Map_TypeForwardOnly.java 6 public class H2Map_TypeForwardOnly extends H2Map implements DatabaseConfig.DatabaseMap {
SQLiteMap.java 5 public class SQLiteMap implements DatabaseConfig.DatabaseMap {
H2Map.java 9 public class H2Map implements DatabaseConfig.DatabaseMap {
DatabaseConfig.java 13 public class DatabaseConfig {
48 if (isMapNull()) throw new NullDatabaseMapException("Error in DatabaseConfig: DatabaseMap has not been set.");
52 throw new CannotLoadDatabaseMapDriverException("Error in DatabaseConfig: SQLite driver could not be instantiated;", e);
54 throw new CannotLoadDatabaseMapDriverException("Error in DatabaseConfig: SQLite driver could not be accessed;", e);
56 throw new CannotLoadDatabaseMapDriverException("Error in DatabaseConfig: SQLite driver class could not be found;", e);
71 throw new CannotLoadDatabaseMapDriverException("Error in DatabaseConfig, could not retrieve connection to in memory database.", e);
SQLite.java 42 String sql = DatabaseConfig.getScrubSQL(sb.toString());
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/internal/
RobolectricTestRunnerInterface.java 4 import com.xtremelabs.robolectric.util.DatabaseConfig.DatabaseMap;
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/
WithTestDefaultsRunner.java 9 import com.xtremelabs.robolectric.util.DatabaseConfig.DatabaseMap;
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowSQLiteDatabase.java 11 import com.xtremelabs.robolectric.util.DatabaseConfig;
67 connection = DatabaseConfig.getMemoryConnection();
128 Statement statement = connection.createStatement(DatabaseConfig.getResultSetType(), ResultSet.CONCUR_READ_ONLY);
189 String scrubbedSql= DatabaseConfig.getScrubSQL(sql);
203 String scrubbedSql= DatabaseConfig.getScrubSQL(sql);
348 String scrubbedSql= DatabaseConfig.getScrubSQL(sql);
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/
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

Completed in 678 milliseconds