This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
The moose likes Testing and the fly likes Spring Testing Book or Tutorial Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Spring Testing Book or Tutorial" Watch "Spring Testing Book or Tutorial" New topic

Spring Testing Book or Tutorial

Charles Owen
Ranch Hand

Joined: Aug 31, 2009
Posts: 61
I'm seeking a good book and/or tutorial on unit testing for Spring Controllers/Views. Some books will discuss testing but then give you very simplistic examples that you couldn't use in a real project. I guess a focus I'd like to see a focus on a strategy for interacting with other application layers, such as mock objects you're accessing from the database/hibernate layer. How do I get at the request, response, and session, etc to test whether certain objects or values are present.

Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32844

Good testing techniques aren't specific to Spring. Either you are unit testing (in which case the technology doesn't matter) or integration testing through a UI (in which case the browser is the technology.)

"Test Driven" is an excellent read with non trivial examples in both spaces.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: Spring Testing Book or Tutorial
It's not a secret anymore!