Searched refs:optionalBinder (Results 1 – 3 of 3) sorted by relevance
823 OptionalBinderBinding<Optional<T>> optionalBinder = in optionalInjectorTest() local825 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 …]
430 OptionalBinder<String> optionalBinder = in testSetBindingOverridesDefault()432 optionalBinder.setDefault().toInstance("a"); in testSetBindingOverridesDefault()433 optionalBinder.setBinding().toInstance("b"); in testSetBindingOverridesDefault()
62 RealOptionalBinder<T> optionalBinder = new RealOptionalBinder<>(binder, type); in newRealOptionalBinder() local63 binder.install(optionalBinder); in newRealOptionalBinder()64 return optionalBinder; in newRealOptionalBinder()