Case Study

Testing Transactional Behavior

Previous Next
At this point, we have unit tested the objects of the domain model, unit tested the business logic of PetStoreImpl using mocks, and integration tested the data access layer using rolled back transactions. Now we will complete the testing of the back-end functionality of this system with an integration test involving all layers using completed transactions. We will examine the test of the insertOrder method, first by looking at the logic of the test, second by looking at the data used by the test, and finally by understanding how stateless testing is achieved even while committing transactions against the database.
Previous Next