Home
last modified time | relevance | path

Searched refs:optionalOfString (Results 1 – 2 of 2) sorted by relevance

/external/guice/core/test/com/google/inject/internal/
DOptionalBinderTest.java91 final TypeLiteral<Optional<String>> optionalOfString = new TypeLiteral<Optional<String>>() {}; field in OptionalBinderTest
161 Optional<String> optional = injector.getInstance(Key.get(optionalOfString)); in testOptionalIsAbsentByDefault()
202 Optional<String> optional = injector.getInstance(Key.get(optionalOfString)); in testUsesUserBoundValue()
244 Optional<String> optional = injector.getInstance(Key.get(optionalOfString)); in testUsesUserBoundValueNullProvidersMakeAbsent()
354 Optional<String> optional = injector.getInstance(Key.get(optionalOfString)); in testSetDefault()
395 Optional<String> optional = injector.getInstance(Key.get(optionalOfString)); in testSetBinding()
439 Optional<String> optional = injector.getInstance(Key.get(optionalOfString)); in testSetBindingOverridesDefault()
496 Optional<String> optional = injector.getInstance(Key.get(optionalOfString)); in testSpreadAcrossModules()
549 Optional<String> optional = injector.getInstance(Key.get(optionalOfString)); in testExactSameBindingCollapses_defaults()
595 Optional<String> optional = injector.getInstance(Key.get(optionalOfString)); in testExactSameBindingCollapses_actual()
[all …]
DMultibinderTest.java90 final TypeLiteral<Optional<String>> optionalOfString = new TypeLiteral<Optional<String>>() {}; field in MultibinderTest
1335 assertEquals(Optional.of("D"), injector.getInstance(Key.get(optionalOfString))); in testSetAndMapValueAreDistinct()
1365 Binding<Optional<String>> optionalbinding = injector.getBinding(Key.get(optionalOfString)); in testSetAndMapValueAreDistinctInSpi()