aspose file tools
The moose likes Spring and the fly likes Simple question about spring-mock Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Spring
Reply 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: 17231
    
    1

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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Simple question about spring-mock
 
Similar Threads
Spring core Exam pattern
Frameworks
WA #1.....word association
Spring Certification
Spring Interview Questions