org.iternine.jeppetto.testsupport
Interface DatabaseProvider

All Known Implementing Classes:
JdbcDatabaseProvider, MongoDatabaseProvider

public interface DatabaseProvider

Interface implemented by classes that provide a database to a test context.


Method Summary
 Database getDatabase(Properties properties, org.springframework.context.ApplicationContext applicationContext)
          Create and initialize the database.
 Properties modifyProperties(Properties properties)
          Optionally make any property modifications before refreshing the application context.
 

Method Detail

modifyProperties

Properties modifyProperties(Properties properties)
Optionally make any property modifications before refreshing the application context.

Parameters:
properties - properties
Returns:
modified properties

getDatabase

Database getDatabase(Properties properties,
                     org.springframework.context.ApplicationContext applicationContext)
Create and initialize the database.

Parameters:
properties - app properties
applicationContext - app context
Returns:
new initialized database


Copyright © 2012. All Rights Reserved.