This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Simple question about spring-mock" Watch "Simple question about spring-mock" New topic

Simple question about spring-mock

Nicolas Conde

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

Joined: Feb 05, 2001
Posts: 17249

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.


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

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:
subject: Simple question about spring-mock
Similar Threads
Spring Certification
WA #1.....word association
Spring core Exam pattern
Spring Interview Questions