|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.spicefactory.pimento.test.DbUnitServiceImpl
public class DbUnitServiceImpl
Default implementation for the DbUnitService.
This implementation supports a testMode property that
can be used to explicitly enable this service.
This service must never be exposed in a production environment since it would allow anyone to wipe out the entire database if the service would not be protected. For this reason it is disabled by default.
| Constructor Summary | |
|---|---|
DbUnitServiceImpl(DataSource dataSource)
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
prepareTables(String data)
Prepares the database according to the specified XML. |
void |
setTestMode(boolean testMode)
Sets whether this service is enabled |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DbUnitServiceImpl(DataSource dataSource)
dataSource - the DataSource to use to populate the database| Method Detail |
|---|
public void setTestMode(boolean testMode)
testMode - true if this service should be enabledpublic void prepareTables(String data)
DbUnitService
prepareTables in interface DbUnitServicedata - the XML to populate the database from as a String
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||