|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpositron.harness.DatabaseFixture
public class DatabaseFixture
Constructor Summary | |
---|---|
DatabaseFixture(Instrumentation instrumentation)
|
Method Summary | |
---|---|
void |
backup()
Backup all databases in the target context. |
void |
backup(String database)
Back up the given database by copying its defining file out of the way. |
void |
execSql(String database,
int... scriptsAsRawResources)
Execute Sql scripts loaded from a raw resources. |
void |
restore()
Restore all databases that have backups in the target context. |
void |
restore(String database)
Restore the given database by copying the backup file back in place. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DatabaseFixture(Instrumentation instrumentation)
Method Detail |
---|
public void backup()
public void restore()
public void backup(String database)
database
- The database to back up.public void restore(String database)
database
- The database to restore.public void execSql(String database, int... scriptsAsRawResources)
database
- The database to execute the sql.scriptsAsRawResources
- A varargs of R.raw.XXX resource ids of scripts to execute.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |