Home
last modified time | relevance | path

Searched refs:multibinder (Results 1 – 3 of 3) sorted by relevance

/external/guice/extensions/multibindings/test/com/google/inject/multibindings/
DMultibinderTest.java106 Multibinder<String> multibinder = Multibinder.newSetBinder(binder(), String.class); in testMultibinderAggregatesMultipleModules()
107 multibinder.addBinding().toInstance("A"); in testMultibinderAggregatesMultipleModules()
108 multibinder.addBinding().toInstance("B"); in testMultibinderAggregatesMultipleModules()
109 multibinder.addBinding().toInstance("C"); in testMultibinderAggregatesMultipleModules()
114 Multibinder<String> multibinder = Multibinder.newSetBinder(binder(), String.class); in testMultibinderAggregatesMultipleModules()
115 multibinder.addBinding().toInstance("D"); in testMultibinderAggregatesMultipleModules()
116 multibinder.addBinding().toInstance("E"); in testMultibinderAggregatesMultipleModules()
133 Multibinder<String> multibinder in testMultibinderAggregationForAnnotationInstance()
135 multibinder.addBinding().toInstance("A"); in testMultibinderAggregationForAnnotationInstance()
136 multibinder.addBinding().toInstance("B"); in testMultibinderAggregationForAnnotationInstance()
[all …]
DMapBinderTest.java168 MapBinder<String, String> multibinder = MapBinder.newMapBinder( in testMapBinderAggregatesMultipleModules()
170 multibinder.addBinding("a").toInstance("A"); in testMapBinderAggregatesMultipleModules()
171 multibinder.addBinding("b").toInstance("B"); in testMapBinderAggregatesMultipleModules()
172 multibinder.addBinding("c").toInstance("C"); in testMapBinderAggregatesMultipleModules()
177 MapBinder<String, String> multibinder = MapBinder.newMapBinder( in testMapBinderAggregatesMultipleModules()
179 multibinder.addBinding("d").toInstance("D"); in testMapBinderAggregatesMultipleModules()
180 multibinder.addBinding("e").toInstance("E"); in testMapBinderAggregatesMultipleModules()
199 MapBinder<String, String> multibinder = MapBinder.newMapBinder( in testMapBinderAggregationForAnnotationInstance()
201 multibinder.addBinding("a").toInstance("A"); in testMapBinderAggregationForAnnotationInstance()
202 multibinder.addBinding("b").toInstance("B"); in testMapBinderAggregationForAnnotationInstance()
[all …]
DSpiUtils.java446 MultibinderBinding<Set<T>> multibinder = in setInjectorTest() local
448 assertNotNull(multibinder); in setInjectorTest()
449 assertEquals(elementType, multibinder.getElementTypeLiteral()); in setInjectorTest()
450 assertEquals(allowDuplicates, multibinder.permitsDuplicates()); in setInjectorTest()
451 List<Binding<?>> elements = Lists.newArrayList(multibinder.getElements()); in setInjectorTest()
454 + ", but was: " + multibinder.getElements(), in setInjectorTest()
476 Set<Binding> setOfElements = new HashSet<Binding>(multibinder.getElements()); in setInjectorTest()
488 boolean contains = multibinder.containsElement(b); in setInjectorTest()
492 if(visited.equals(multibinder)) { in setInjectorTest()
535 MultibinderBinding<Set<T>> multibinder = null; in setModuleTest() local
[all …]