com.tddinaction.fit.fixtures.ReviewsDoFixture

setup book data
title
edition
ISBN
authors
JUnit Recipes
1 1932394230 J.B. Rainsberger, Scott Stirling
Spring in Action
1 1932394354 Craig Walls, Ryan Breidenbach
Ajax in Action
1 1932394613 Dave Crane, Eric Pascarello, Darren James

setup review data
title
edition
review date
review text

go to front page
ensure
text present
Found reviews for 0 books

setup review data
title
edition
review date
review text
JUnit Recipes
1 2005-01-05 First review of JUnit Recipes
JUnit Recipes
1 2005-08-10 Second review of JUnit Recipes
Spring in Action 1 2005-05-28 Review of Spring in Action
Ajax in Action 1 2006-02-08 Most recent review

Note that there are four reviews in all, but two of them are for the same book!

go to front page
ensure
text present
Found reviews for 3 books
ensure
text present
JUnit Recipes
ensure
text present
Spring in Action
ensure
text present
Ajax in Action

Check that the books with most recent reviews are listed before the ones with older reviews.

verify that
Ajax in Action
is before
JUnit Recipes
verify that
JUnit Recipes
is before
Spring in Action