|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.appengine.tools.development.testing.LocalRdbmsServiceTestConfig
public class LocalRdbmsServiceTestConfig
Config for accessing the local rdbms service in tests.
Default behavior is to configure the local service to use an in-memory
database. tearDown()
does not wipe out data or tables.
TODO(maxr): Implement subclasses that wipe out data and/or tables.
Constructor Summary | |
---|---|
LocalRdbmsServiceTestConfig()
|
Method Summary | |
---|---|
java.lang.String |
getDriverClass()
|
java.lang.String |
getJdbcConnectionStringFormat()
|
static LocalRdbmsService |
getLocalRdbmsService()
|
LocalRdbmsServiceTestConfig |
setDriverClass(java.lang.String driverClass)
Sets the class of the driver used by the LocalRdbmsService . |
LocalRdbmsServiceTestConfig |
setJdbcConnectionStringFormat(java.lang.String jdbcConnectionStringFormat)
Sets the format of the connection string that the jdbc driver will use. |
void |
setUp()
Set up the local service. |
void |
tearDown()
Tear down the local service. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalRdbmsServiceTestConfig()
Method Detail |
---|
public void setUp()
LocalServiceTestConfig
setUp
in interface LocalServiceTestConfig
public void tearDown()
LocalServiceTestConfig
tearDown
in interface LocalServiceTestConfig
public static LocalRdbmsService getLocalRdbmsService()
public java.lang.String getDriverClass()
public LocalRdbmsServiceTestConfig setDriverClass(java.lang.String driverClass)
LocalRdbmsService
.
driverClass
- The driver class. Must be the fully-qualified name
of a class that implements java.sql.Driver
.
this
(for chaining)public java.lang.String getJdbcConnectionStringFormat()
public LocalRdbmsServiceTestConfig setJdbcConnectionStringFormat(java.lang.String jdbcConnectionStringFormat)
String.format(String, Object...)
with the database instance as the
second argument to form the full jdbc connection string. For example, if
the value of this property is "jdbc:somevendor:%s" and the database
instance is "test" then the full jdbc connection string will be
"jdbc:somevendor:test".
jdbcConnectionStringFormat
- the connection string format
this
(for chaining)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |