Searched refs:optionalBinder (Results 1 – 3 of 3) sorted by relevance
668 OptionalBinderBinding<Optional<T>> optionalBinder = in optionalInjectorTest() local670 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 …]
300 OptionalBinder<String> optionalBinder = in testSetBindingOverridesDefault()302 optionalBinder.setDefault().toInstance("a"); in testSetBindingOverridesDefault()303 optionalBinder.setBinding().toInstance("b"); in testSetBindingOverridesDefault()
208 RealOptionalBinder<T> optionalBinder = new RealOptionalBinder<T>(binder, type); in newRealOptionalBinder() local209 binder.install(optionalBinder); in newRealOptionalBinder()210 return optionalBinder; in newRealOptionalBinder()