What steps will reproduce the problem?
1. In Gin Module configuration, add submodule like this :
protected void configure() {
GinModule ginModule = new GinFactoryModuleBuilder().implement( Activity.class, ActivityImpl.class).build( Fact.class);
install( ginModule );
...
}
2. Run a GwtTest which instanciate the GinModule
What is the expected output? What do you see instead?
Test initialization should work fine. Instead, an Exception is thrown :
Caused by: java.lang.UnsupportedOperationException
at java.util.AbstractCollection.add(AbstractCollection.java:221)
at
com.google.gwt.inject.rebind.adapter.BinderAdapter.install(BinderAdapter.java:59
)
at
com.google.gwt.inject.client.AbstractGinModule.install(AbstractGinModule.java:55
)
at
com.appservicer.roombook.client.boot.ScaffoldModule.configure(ScaffoldModule.jav
a:51)
at
com.google.gwt.inject.client.AbstractGinModule.configure(AbstractGinModule.java:
33)
at
com.google.gwt.inject.rebind.adapter.GinModuleAdapter.configure(GinModuleAdapter
.java:49)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
at com.google.inject.spi.Elements.getElements(Elements.java:101)
at
com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:132)
at
com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator
.java:103)
... 36 more
gwt-test-utils GIN supports seems to not be able to configure submodules.
Original issue reported on code.google.com by gael.laz...@gmail.com on 2 Mar 2012 at 9:11
Original issue reported on code.google.com by
gael.laz...@gmail.com
on 2 Mar 2012 at 9:11