You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to atunit
I'm a bit confused on how to best set up my tests that can leverage an
existing guice module..
public class MyGuiceModule extends AbstractModule {
@Override
protected void configure() {
//my stuff
}
}
I'm looking at the examples provided and I see an example where I can
implement Module, but I don't want to have to implement configure, I
just want to use my already defined GuiceModule. What's the best way
to do this? (I'm not using JMock either.)
Thanks
Logan Johnson
unread,
Mar 3, 2009, 9:37:28 PM3/3/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to atu...@googlegroups.com
Implement Module, and in configure() install your own Module:
@RunWith(AtUnit.class)
@Container(Container.Option.GUICE)
public class MyTest implements Module {
public void configure(Binder b) {
b.install(new MyGuiceModule());
}
}
Rick
unread,
Mar 3, 2009, 9:39:23 PM3/3/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to atu...@googlegroups.com
Cool thanks. I'll just do that it in a BaseTest class that my Test
classes extend.