Jala Test

Class jala.Test.DatabaseMgr

Object
   |
   +--jala.Test.DatabaseMgr

class jala.Test.DatabaseMgr


Instances of this class allow managing test databases and switching a running application to an in-memory test database to use within a unit test.
Defined in Global/jala.Test.js


Field Summary
 Object databases
          Map containing all test databases
 Object dbSourceProperties
          Map containing the original datasource properties that were temporarily deactivated by activating a test database
 
Constructor Summary
jala.Test.DatabaseMgr ()
            Returns a newly created DatabaseMgr instance
 
Method Summary
 jala.db.RamDatabase startDatabase(<String> dbSourceName, <Boolean> copyTables, <Array> tables)
           Switches the application datasource with the given name to a newly created in-memory database.
 void stopAll()
           Stops all registered test databases and and reverts the application to its original datasource(s) as defined in db.properties file.
 Object toString()
          

Field Detail

databases

Object databases

dbSourceProperties

Object dbSourceProperties

Constructor Detail

jala.Test.DatabaseMgr

jala.Test.DatabaseMgr()

Method Detail

startDatabase

jala.db.RamDatabase startDatabase(<String> dbSourceName, <Boolean> copyTables, <Array> tables)

stopAll

void stopAll()

toString

Object toString()

Jala Test

Documentation generated by JSDoc on Tue Jan 8 15:50:17 2008