Permalink
Browse files

Update guice/README.md

  • Loading branch information...
1 parent 0b0c5d9 commit 0619701e6e757c95d60becd13f03085e6207a9e0 @pk11 pk11 committed May 14, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 guice/README.md
View
5 guice/README.md
@@ -46,13 +46,14 @@ play.Play.application().plugin(InjectPlugin.class).getInstance(MyServiceInterfac
# Testing
-* testing can be achieved two ways:
+* testing can be achieved two ways in case of using field injection:
* making the injected dependencies anything but private
* injected dependencies can be private in which case a new constructor (alongside with an empty default one) could be added to controllers which could be used to inject the mocked dependencies
+ (I would recommend the former solution)
-I would recommend the former solution
+* testing is trivial in case of using constructor injection.
# Sample

0 comments on commit 0619701

Please sign in to comment.