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 Spring and the fly likes Simple question about spring-mock 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 » Frameworks » Spring
Bookmark "Simple question about spring-mock" Watch "Simple question about spring-mock" New topic
Author

Simple question about spring-mock

Nicolas Conde
Greenhorn

Joined: Feb 24, 2011
Posts: 3

Good afternoon, wanted to know if spring-mock can be used to generate backend test and pojos, because in all the examples I found are web applications ,servlets, etc.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Maybe because the Spring-mock library is for mocking out Web stuff.

But for the middle tier stuff just use regular Mocks and Stubs. You can use EasyMock for mocking, and stubbing is just you implementing fake interface implementations to stand in for the dependencies.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Nicolas Conde
Greenhorn

Joined: Feb 24, 2011
Posts: 3

Thanks Mark, so, I was right. I use Mockito for backend . thanks again.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Simple question about spring-mock
 
Similar Threads
Frameworks
Spring Certification
WA #1.....word association
Spring core Exam pattern
Spring Interview Questions