If you create the injector in Stage.TOOL and requireExplicitBindings() that
should be enough to assert everything is bound properly.

Dhanji.

On Wed, May 19, 2010 at 1:02 PM, AB <[email protected]> wrote:

> I am looking for some way to demonstrate, perhaps at test time or app
> startup, that all dependencies are satisfied with bindings. Once could
> of course do this will a complete set of functional tests that
> exersize every part of the system but I am looking for something that
> runs faster and doesnt require writing Selenium (or whatever) for a
> large webapp. I was thinking that one could load every class on the
> classpath (perhaps limited to specific packages of code that we
> wrote), inspect every field and setter for @Inject tag and verify
> there is a binding. Or perhaps just attempt to inject every class. For
> my purposes, we can ignore dynamically loaded classes not known at
> compile time.
>
> I want to believe someone out there has solved this.  Does anyone have
> any ideas?
>
> --
> You received this message because you are subscribed to the Google Groups
> "google-guice" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-guice%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-guice?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en.

Reply via email to