OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:DatabaseConfig
(Results
1 - 3
of
3
) 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
...]
/external/robolectric/src/main/java/com/xtremelabs/robolectric/util/
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);
Completed in 31 milliseconds