Home
last modified time | relevance | path

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

/external/guice/extensions/multibindings/test/com/google/inject/multibindings/
DSpiUtils.java668 OptionalBinderBinding<Optional<T>> optionalBinder = in optionalInjectorTest() local
670 assertNotNull(optionalBinder); in optionalInjectorTest()
671 assertEquals(optionalKey, optionalBinder.getKey()); in optionalInjectorTest()
683 assertNull("did not expect a default binding", optionalBinder.getDefaultBinding()); in optionalInjectorTest()
689 + optionalBinder.getDefaultBinding(), in optionalInjectorTest()
690 matches(optionalBinder.getDefaultBinding(), expectedDefault)); in optionalInjectorTest()
699 assertNull(optionalBinder.getActualBinding()); in optionalInjectorTest()
705 + optionalBinder.getActualBinding(), in optionalInjectorTest()
706 matches(optionalBinder.getActualBinding(), expectedActual)); in optionalInjectorTest()
714 + optionalBinder.getActualBinding(), in optionalInjectorTest()
[all …]
DOptionalBinderTest.java300 OptionalBinder<String> optionalBinder = in testSetBindingOverridesDefault()
302 optionalBinder.setDefault().toInstance("a"); in testSetBindingOverridesDefault()
303 optionalBinder.setBinding().toInstance("b"); in testSetBindingOverridesDefault()
/external/guice/extensions/multibindings/src/com/google/inject/multibindings/
DOptionalBinder.java208 RealOptionalBinder<T> optionalBinder = new RealOptionalBinder<T>(binder, type); in newRealOptionalBinder() local
209 binder.install(optionalBinder); in newRealOptionalBinder()
210 return optionalBinder; in newRealOptionalBinder()