Saving and retrieving shelfs

There are multiple ways of storing a bookshelf. The system provides a JDBC-connection to javadb, XML, and a flat file format.

fitgoodies.ActionFixture
start ${groupId}.SaveTest
press savedb
waitFor is saved 60000 1000

The databases must contain all saved books.

TableFixture table=STORE
ISBN AUTHOR TITLE PRICE
1930110995 Vincent Massol, Ted Husted JUnit in Action 26.37
193239480X Steve Loughran, Erik Hatcher Ant in Action 31.49

FileRecords file=demo-output/bookshelf.txt skipEOL=false
5 15 80 50 9
1930110995 JUnit in Action Vincent Massol, Ted Husted 26.37
193239480X Ant in Action Steve Loughran, Erik Hatcher 31.49

It is also possible to store a shelf data in an XML file.

fitgoodies.file.XMLFileFixture file=demo-output/bookshelf.xml
/shelf/book[@id=1]/author Steve Loughran, Erik Hatcher
/shelf/book[1]/isbn 1930110995