February 2013
Intermediate to advanced
272 pages
5h 45m
English
| Recipe 18 | Drive a Spring + Hibernate Project |
You want use Cucumber to test a Java application using Spring and Hibernate for persistence. You want your tests to be isolated by database transactions so that your data doesn’t leak from test to test.
The Spring application development framework[111]
The Hibernate ORM library[112]
A database system such as HSQLDB[113]
Cucumber-JVM[114] to drive your Java code from Cucumber
Maven[115] to install the libraries you’ll need
Building an app with Spring can save you a lot of time, but you need to coordinate several moving parts: object-relational mappings, database transactions, and so on. In this recipe, we’re going to put together a Cucumber test to drive just one aspect of ...