perwendel/spark — pull request #22 by danieltwagner (2012-06-14 11:56:49+00:00)
Title: Tests no longer depend on execution order

running "mvn test" I see that at least on my installation the testGetBook() test of BooksIntegrationTest is run before testCreateBook(), which means that the "id" field is not yet set. Consequently, the test fails to GET "/books/null".

From what I understand it is not recommended to rely on the execution order of tests. The attached code fixes this in a somewhat crude way that involves only minimal changes.