public void testBindConstantWithMultipleTargetsAddsError() {
checkModule(
new AbstractModule() {
protected void configure() {
ConstantBindingBuilder cbb = bindConstant().annotatedWith(SampleAnnotation.class);
cbb.to("A");
cbb.to("B");
}
},
new FailingElementVisitor() {
@Override public <T> Void visit(Binding<T> command) {