Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Simple question about spring-mock

 
Nicolas Conde
Greenhorn
Posts: 3
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Nicolas Conde
Greenhorn
Posts: 3
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Mark, so, I was right. I use Mockito for backend . thanks again.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic