This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Spring Testing Book or Tutorial" Watch "Spring Testing Book or Tutorial" New topic
Author

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.

Thanks
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30138
    
150

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring Testing Book or Tutorial
 
Similar Threads
hi, i am a very very beginner of spring framework. So, Please give some suggestion.
Testing with Spring
Spring in action - Testing part
Book to learn Web Application development with Spring
Need sample source skeleton