org.spicefactory.pimento.test
Interface DbUnitService

All Known Implementing Classes:
DbUnitServiceImpl

@CinnamonService
public interface DbUnitService

Remote service that can be used in integration tests to prepare the database in a setUp method. This service can be exposed for clients in the Spring configuration like any other Cinnamon 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.

Author:
Jens Halm

Method Summary
 void prepareTables(String data)
          Prepares the database according to the specified XML.
 

Method Detail

prepareTables

void prepareTables(String data)
Prepares the database according to the specified XML. The XML has to be in the "XML Data Set" format supported by DbUnit. The "Flat XML Data Set" is currently not supported.

Parameters:
data - the XML to populate the database from as a String