Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring In Action Code question related to dependancy injection

 
Vishal Hegde
Ranch Hand
Posts: 1077
Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I am having confusion reading the above code the very first doubt is for the line

Is this a predefined or user defined.

In the below code Quest is stated as an Interface, but from where does mock comes from and what is mock(Quest.class) implies?

 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well first of all when posting code please use proper indentation. There should also be a space between static and org i.e.



If you are asing what is a static import? Then that question would be better suited for the Beginning Java Forum.

Basically it allows you to say



instead of


What do you mean user defined or predefined?

If you are asking if Mockito is something written for the book it is not. It is a testing framework see here:

http://code.google.com/p/mockito/


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic