Searched refs:optionalOfString (Results 1 – 2 of 2) sorted by relevance
91 final TypeLiteral<Optional<String>> optionalOfString = new TypeLiteral<Optional<String>>() {}; field in OptionalBinderTest161 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 …]
90 final TypeLiteral<Optional<String>> optionalOfString = new TypeLiteral<Optional<String>>() {}; field in MultibinderTest1335 assertEquals(Optional.of("D"), injector.getInstance(Key.get(optionalOfString))); in testSetAndMapValueAreDistinct()1365 Binding<Optional<String>> optionalbinding = injector.getBinding(Key.get(optionalOfString)); in testSetAndMapValueAreDistinctInSpi()