Closed GoogleCodeExporter closed 9 years ago
Will you paste here the BarGenGuiceBerryEnv.java class itself?
Original comment by zorze...@gmail.com
on 2 Sep 2010 at 6:30
I strongly suspect you are not installing the required GuiceBerryModule (or its
old incarnation, BasicJunit3Module). That being the case, the error message is
lousy (I'll fix that), but you do need to install it...
Original comment by zorze...@gmail.com
on 2 Sep 2010 at 6:41
public class BarGuiceBerryEnv extends GuiceBerryJunit3Env {
public static final String NAME =
"com.foo.testing.guiceberry.BarGuiceBerryEnv";
@Override
protected void configure() {
install(override(new FooTwoModule()).with(new MockFooTwoModule()));
bind(FakeClock.class).asEagerSingleton();
bind(Clock.class).to(FakeClock.class);
install(new TemplateServicesModule());
install(new BareratorModule());
install(new SampleBarerationModule());
}
}
So, I don't have the GuiceBerryModule, but I do extend GuiceBerryJunit3Env.
Original comment by mschein5...@gmail.com
on 2 Sep 2010 at 8:26
You want to call
super.configure();
at the beginning of your configure.
Original comment by zorze...@gmail.com
on 7 Sep 2010 at 4:44
Ok, I'll try that. Thanks :-).
Original comment by mschein5...@gmail.com
on 7 Sep 2010 at 5:57
The issue itself was invalid, but it brought to my attention the lack of a
helpful error message, which is addressed by:
http://code.google.com/p/guiceberry/source/detail?r=259
Original comment by zorze...@gmail.com
on 3 Nov 2010 at 12:08
all looks good, Z.
Original comment by ffa...@google.com
on 3 Nov 2010 at 1:22
Original issue reported on code.google.com by
mschein5...@gmail.com
on 2 Sep 2010 at 6:20