Home
last modified time | relevance | path

Searched refs:setOf (Results 1 – 12 of 12) sorted by relevance

/external/guice/core/test/com/google/inject/internal/
DMultibinderTest.java126 Set<String> results = setOf("A", "B", "C", "D", "E"); in testMultibinderAggregatesMultipleModules()
132 setOf(abc, de), in testMultibinderAggregatesMultipleModules()
161 Set<String> results = setOf("A", "B", "C"); in testMultibinderAggregationForAnnotationInstance()
166 setOf(module), in testMultibinderAggregationForAnnotationInstance()
193 Set<String> results = setOf("A", "B", "C"); in testMultibinderAggregationForAnnotationType()
198 setOf(module), in testMultibinderAggregationForAnnotationType()
230 Set<String> abcResults = setOf("A", "B", "C"); in testMultibinderWithMultipleAnnotationValueSets()
232 Set<String> deResults = setOf("D", "E"); in testMultibinderWithMultipleAnnotationValueSets()
237 setOf(module), in testMultibinderWithMultipleAnnotationValueSets()
245 deSetKey, stringType, setOf(module), BOTH, false, 1, instance("D"), instance("E")); in testMultibinderWithMultipleAnnotationValueSets()
[all …]
DMapBinderTest.java140 Key.get(Types.mapOf(String.class, Types.setOf(String.class))), in testAllBindings()
142 Key.get(Types.mapOf(String.class, Types.setOf(Types.providerOf(String.class)))), in testAllBindings()
145 Types.mapOf(String.class, Types.setOf(Types.javaxProviderOf(String.class)))), in testAllBindings()
154 Key.get(Types.setOf(mapEntryOf(String.class, Types.providerOf(String.class)))), in testAllBindings()
156 Key.get(Types.setOf(mapEntryOf(String.class, Types.javaxProviderOf(String.class)))), in testAllBindings()
217 setOf(abc, de), in testMapBinderAggregatesMultipleModules()
256 setOf(module), in testMapBinderAggregationForAnnotationInstance()
292 setOf(module), in testMapBinderAggregationForAnnotationType()
334 setOf(module), in testMapBinderWithMultipleAnnotationValueSets()
345 setOf(module), in testMapBinderWithMultipleAnnotationValueSets()
[all …]
DOptionalBinderTest.java171 assertOptionalVisitor(stringKey, setOf(module), VisitType.BOTH, 0, null, null, null); in testOptionalIsAbsentByDefault()
213 stringKey, setOf(module), VisitType.BOTH, 0, null, null, providerInstance("foo")); in testUsesUserBoundValue()
255 stringKey, setOf(module), VisitType.BOTH, 0, null, null, providerInstance(null)); in testUsesUserBoundValueNullProvidersMakeAbsent()
367 assertOptionalVisitor(stringKey, setOf(module), VisitType.BOTH, 0, instance("a"), null, null); in testSetDefault()
408 assertOptionalVisitor(stringKey, setOf(module), VisitType.BOTH, 0, null, instance("a"), null); in testSetBinding()
453 stringKey, setOf(module), VisitType.BOTH, 0, instance("a"), instance("b"), null); in testSetBindingOverridesDefault()
511 setOf(module1, module2, module3), in testSpreadAcrossModules()
562 assertOptionalVisitor(stringKey, setOf(module), VisitType.BOTH, 0, instance("a"), null, null); in testExactSameBindingCollapses_defaults()
608 assertOptionalVisitor(stringKey, setOf(module), VisitType.BOTH, 0, null, instance("a"), null); in testExactSameBindingCollapses_actual()
754 setOf(module1, module2, module3), in testQualifiedAggregatesTogether()
[all …]
DSpiUtils.java30 import static com.google.inject.internal.RealMultibinder.setOf;
200 Key<?> mapOfSet = mapKey.ofType(mapOf(keyType, setOf(valueType))); in mapInjectorTest()
201 Key<?> setOfEntry = mapKey.ofType(setOf(entryOfProviderOf(keyType, valueType))); in mapInjectorTest()
202 Key<?> setOfJavaxEntry = mapKey.ofType(setOf(entryOfJavaxProviderOf(keyType, valueType))); in mapInjectorTest()
377 Key<?> mapOfSet = mapKey.ofType(mapOf(keyType, setOf(valueType))); in mapModuleTest()
378 Key<?> setOfEntry = mapKey.ofType(setOf(entryOfProviderOf(keyType, valueType))); in mapModuleTest()
379 Key<?> setOfJavaxEntry = mapKey.ofType(setOf(entryOfJavaxProviderOf(keyType, valueType))); in mapModuleTest()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DTestUtil.java23 public static <T> Set<T> setOf(T... elements) { in setOf() method in TestUtil
24 return setOf(Arrays.asList(elements)); in setOf()
27 public static <T> Set<T> setOf(Collection<T> elements) { in setOf() method in TestUtil
DCertificatePinnerTest.java25 import static com.squareup.okhttp.TestUtil.setOf;
226 Set<ByteString> expectedPins = setOf(certA1PinBase64, certB1PinBase64); in successfulFindMatchingPins()
239 Set<ByteString> expectedPins = setOf(certA1PinBase64, certB1PinBase64); in successfulFindMatchingPinsForWildcardAndDirectCertificates()
/external/guice/core/test/com/google/inject/
DTypeLiteralTypeResolutionTest.java25 import static com.google.inject.util.Types.setOf;
65 setOf(newParameterizedTypeWithOwner(Map.class, Map.Entry.class, String.class, Integer.class));
173 assertEquals(setOf(arrayOf(Short.class)), resolver.getReturnType(getSetOfArray).getType()); in testArrays()
297 typeResolver = TypeLiteral.get(Types.setOf(Integer.class)); in testOnObject()
/external/guice/core/src/com/google/inject/util/
DTypes.java113 public static ParameterizedType setOf(Type elementType) { in setOf() method in Types
/external/guice/core/src/com/google/inject/internal/
DRealMultibinder.java62 static <T> TypeLiteral<Set<T>> setOf(TypeLiteral<T> elementType) { in setOf() method in RealMultibinder
63 Type type = Types.setOf(elementType.getType()); in setOf()
335 this.setKey = key.ofType(setOf(key.getTypeLiteral())); in BindingSelection()
DRealMapBinder.java7 import static com.google.inject.internal.RealMultibinder.setOf;
147 Types.mapOf(keyType.getType(), Types.setOf(Types.providerOf(valueType.getType())))); in mapOfSetOfProviderOf()
156 keyType.getType(), Types.setOf(Types.javaxProviderOf(valueType.getType())))); in mapOfSetOfJavaxProviderOf()
207 TypeLiteral.get(Types.setOf(entryOfJavaxProviderOf(keyType, valueType).getType())); in setOfEntryOfJavaxProviderOf()
591 local = multimapKey = mapKey.ofType(mapOf(keyType, setOf(valueType))); in getMultimapKey()
/external/guice/core/test/com/google/inject/util/
DTypesTest.java72 assertEqualsBothWays(setString, Types.setOf(String.class)); in testListSetMap()
/external/guice/core/test/com/google/inject/spi/
DProviderMethodsTest.java238 ImmutableSet.of("A", "B"), injector.getInstance(Key.get(Types.setOf(String.class))));
242 assertEquals(ImmutableSet.of(1, 2), injector.getInstance(Key.get(Types.setOf(Integer.class))));