Home
last modified time | relevance | path

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

/external/guice/core/test/com/google/inject/internal/
DSpiUtils.java823 OptionalBinderBinding<Optional<T>> optionalBinder = in optionalInjectorTest() local
825 assertNotNull(optionalBinder); in optionalInjectorTest()
826 assertEquals(optionalKey, optionalBinder.getKey()); in optionalInjectorTest()
839 assertNull("did not expect a default binding", optionalBinder.getDefaultBinding()); in optionalInjectorTest()
848 + optionalBinder.getDefaultBinding(), in optionalInjectorTest()
849 matches(optionalBinder.getDefaultBinding(), expectedDefault)); in optionalInjectorTest()
861 assertNull(optionalBinder.getActualBinding()); in optionalInjectorTest()
870 + optionalBinder.getActualBinding(), in optionalInjectorTest()
871 matches(optionalBinder.getActualBinding(), expectedActual)); in optionalInjectorTest()
885 + optionalBinder.getActualBinding(), in optionalInjectorTest()
[all …]
DOptionalBinderTest.java430 OptionalBinder<String> optionalBinder = in testSetBindingOverridesDefault()
432 optionalBinder.setDefault().toInstance("a"); in testSetBindingOverridesDefault()
433 optionalBinder.setBinding().toInstance("b"); in testSetBindingOverridesDefault()
/external/guice/core/src/com/google/inject/internal/
DRealOptionalBinder.java62 RealOptionalBinder<T> optionalBinder = new RealOptionalBinder<>(binder, type); in newRealOptionalBinder() local
63 binder.install(optionalBinder); in newRealOptionalBinder()
64 return optionalBinder; in newRealOptionalBinder()