• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Spring In Action Code question related to dependancy injection

 
Ranch Hand
Posts: 1087
Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?

 
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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/


reply
    Bookmark Topic Watch Topic
  • New Topic