Skip to content
This repository has been archived by the owner on Feb 9, 2019. It is now read-only.

Commit

Permalink
Update guice/README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ph2734 committed May 14, 2012
1 parent 0b0c5d9 commit 0619701
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions guice/README.md
Expand Up @@ -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

Expand Down

0 comments on commit 0619701

Please sign in to comment.