Here is a Guice-based test-runner I wrote and have been using for years in 
many projects:
https://github.com/timboudreau/giulius-selenium-tests

An example is probably worth two paragraphs of description:

@RunWith(GuiceTest.class)
public class MyTest {

    @TestWith(MyModule.class)
    public void test(ThingToTest injected) { ... }
}

Tthe TestWith annotation can also be on the class, and there is an advanced 
feature of being able to iterate a set of different modules - say, 
different implementations of the same basic thing - and run the test with 
each one, or even with all possible combinations of two lists of modules. 
 And there are provisions for auto-binding the contents of properties files.

-Tim

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to