Home
last modified time | relevance | path

Searched refs:containsEntry (Results 1 – 25 of 71) sorted by relevance

123

/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DMultimapContainsEntryTester.java42 assertTrue(multimap().containsEntry(k0(), v0())); in testContainsEntryYes()
46 assertFalse(multimap().containsEntry(k3(), v3())); in testContainsEntryNo()
52 assertEquals(multimap().get(k).contains(v), multimap().containsEntry(k, v)); in testContainsEntryAgreesWithGet()
61 assertTrue(multimap().containsEntry(null, null)); in testContainsEntryNullYes()
66 assertFalse(multimap().containsEntry(null, null)); in testContainsEntryNullNo()
72 multimap().containsEntry(null, v3()); in testContainsEntryNullDisallowedBecauseKeyQueriesDisallowed()
82 multimap().containsEntry(k3(), null); in testContainsEntryNullDisallowedBecauseValueQueriesDisallowed()
DMultimapGetTester.java77 assertFalse(multimap().containsEntry(k0(), v0())); in testPropagatesRemoveToMultimap()
95 assertTrue(multimap().containsEntry(k0(), v3())); in testPropagatesAddToMultimap()
104 assertTrue(multimap().containsEntry(k0(), v3())); in testPropagatesAddAllToMultimap()
116 assertFalse(multimap().containsEntry(k0(), v0())); in testPropagatesRemoveLastThenAddToMultimap()
125 assertFalse(multimap().containsEntry(k0(), v0())); in testPropagatesRemoveLastThenAddToMultimap()
126 assertTrue(multimap().containsEntry(k0(), v2())); in testPropagatesRemoveLastThenAddToMultimap()
DMultimapAsMapGetTester.java52 assertFalse(multimap().containsEntry(k0(), v0())); in testPropagatesRemoveToMultimap()
78 assertTrue(multimap().containsEntry(k0(), null)); in testAddNullValue()
116 assertFalse(multimap().containsEntry(k0(), v0())); in testPropagatesRemoveThenAddToMultimap()
125 assertFalse(multimap().containsEntry(k0(), v0())); in testPropagatesRemoveThenAddToMultimap()
126 assertTrue(multimap().containsEntry(k0(), v2())); in testPropagatesRemoveThenAddToMultimap()
DMultimapPutAllMultimapTester.java61 assertTrue(multimap().containsEntry(k0(), v3())); in testPutAll()
62 assertTrue(multimap().containsEntry(k3(), v3())); in testPutAll()
69 assertTrue(multimap().containsEntry(k0(), null)); in testPutAllWithNullValue()
76 assertTrue(multimap().containsEntry(null, v0())); in testPutAllWithNullKey()
DMultimapEntriesTester.java81 assertFalse(multimap().containsEntry(k0(), v0())); in testRemovePropagatesToMultimap()
90 assertFalse(multimap().containsEntry(k0(), v0())); in testRemoveAllPropagatesToMultimap()
99 assertTrue(multimap().containsEntry(k0(), v0())); in testRetainAllPropagatesToMultimap()
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/google/
DMultimapContainsEntryTester.java42 assertTrue(multimap().containsEntry(k0(), v0())); in testContainsEntryYes()
46 assertFalse(multimap().containsEntry(k3(), v3())); in testContainsEntryNo()
52 assertEquals(multimap().get(k).contains(v), multimap().containsEntry(k, v)); in testContainsEntryAgreesWithGet()
61 assertTrue(multimap().containsEntry(null, null)); in testContainsEntryNullYes()
66 assertFalse(multimap().containsEntry(null, null)); in testContainsEntryNullNo()
72 multimap().containsEntry(null, v3()); in testContainsEntryNullDisallowedBecauseKeyQueriesDisallowed()
82 multimap().containsEntry(k3(), null); in testContainsEntryNullDisallowedBecauseValueQueriesDisallowed()
DMultimapGetTester.java77 assertFalse(multimap().containsEntry(k0(), v0())); in testPropagatesRemoveToMultimap()
95 assertTrue(multimap().containsEntry(k0(), v3())); in testPropagatesAddToMultimap()
104 assertTrue(multimap().containsEntry(k0(), v3())); in testPropagatesAddAllToMultimap()
116 assertFalse(multimap().containsEntry(k0(), v0())); in testPropagatesRemoveLastThenAddToMultimap()
125 assertFalse(multimap().containsEntry(k0(), v0())); in testPropagatesRemoveLastThenAddToMultimap()
126 assertTrue(multimap().containsEntry(k0(), v2())); in testPropagatesRemoveLastThenAddToMultimap()
DMultimapAsMapGetTester.java52 assertFalse(multimap().containsEntry(k0(), v0())); in testPropagatesRemoveToMultimap()
78 assertTrue(multimap().containsEntry(k0(), null)); in testAddNullValue()
116 assertFalse(multimap().containsEntry(k0(), v0())); in testPropagatesRemoveThenAddToMultimap()
125 assertFalse(multimap().containsEntry(k0(), v0())); in testPropagatesRemoveThenAddToMultimap()
126 assertTrue(multimap().containsEntry(k0(), v2())); in testPropagatesRemoveThenAddToMultimap()
DMultimapPutAllMultimapTester.java61 assertTrue(multimap().containsEntry(k0(), v3())); in testPutAll()
62 assertTrue(multimap().containsEntry(k3(), v3())); in testPutAll()
69 assertTrue(multimap().containsEntry(k0(), null)); in testPutAllWithNullValue()
76 assertTrue(multimap().containsEntry(null, v0())); in testPutAllWithNullKey()
DMultimapEntriesTester.java81 assertFalse(multimap().containsEntry(k0(), v0())); in testRemovePropagatesToMultimap()
90 assertFalse(multimap().containsEntry(k0(), v0())); in testRemoveAllPropagatesToMultimap()
99 assertTrue(multimap().containsEntry(k0(), v0())); in testRetainAllPropagatesToMultimap()
/external/opencensus-java/contrib/monitored_resource_util/src/test/java/io/opencensus/contrib/monitoredresource/util/
DAwsIdentityDocUtilsTest.java53 assertThat(envVarMap).containsEntry("instanceId", "i-1234567890abcdef0"); in testParseAwsIdentityDocument()
54 assertThat(envVarMap).containsEntry("accountId", "123456789012"); in testParseAwsIdentityDocument()
55 assertThat(envVarMap).containsEntry("region", "us-west-2"); in testParseAwsIdentityDocument()
/external/guava/android/guava-tests/test/com/google/common/collect/
DFilteredMultimapTest.java62 assertTrue(filtered.containsEntry("foo", 55556)); in testFilterKeys()
79 assertFalse(filtered.containsEntry("foo", 55556)); in testFilterValues()
80 assertTrue(filtered.containsEntry("badkey", 1)); in testFilterValues()
91 assertTrue(filtered.containsEntry("foo", 1)); in testFilterFiltered()
DLinkedListMultimapTest.java320 assertFalse(multimap.containsEntry("foo", 2)); in testEntriesAfterMultimapUpdate()
321 assertTrue(multimap.containsEntry("foo", 4)); in testEntriesAfterMultimapUpdate()
322 assertTrue(multimap.containsEntry("bar", 3)); in testEntriesAfterMultimapUpdate()
327 assertTrue(multimap.containsEntry("foo", 5)); in testEntriesAfterMultimapUpdate()
328 assertTrue(multimap.containsEntry("foo", 4)); in testEntriesAfterMultimapUpdate()
329 assertTrue(multimap.containsEntry("bar", 3)); in testEntriesAfterMultimapUpdate()
/external/guava/guava-tests/test/com/google/common/collect/
DFilteredMultimapTest.java62 assertTrue(filtered.containsEntry("foo", 55556)); in testFilterKeys()
79 assertFalse(filtered.containsEntry("foo", 55556)); in testFilterValues()
80 assertTrue(filtered.containsEntry("badkey", 1)); in testFilterValues()
91 assertTrue(filtered.containsEntry("foo", 1)); in testFilterFiltered()
DLinkedListMultimapTest.java320 assertFalse(multimap.containsEntry("foo", 2)); in testEntriesAfterMultimapUpdate()
321 assertTrue(multimap.containsEntry("foo", 4)); in testEntriesAfterMultimapUpdate()
322 assertTrue(multimap.containsEntry("bar", 3)); in testEntriesAfterMultimapUpdate()
327 assertTrue(multimap.containsEntry("foo", 5)); in testEntriesAfterMultimapUpdate()
328 assertTrue(multimap.containsEntry("foo", 4)); in testEntriesAfterMultimapUpdate()
329 assertTrue(multimap.containsEntry("bar", 3)); in testEntriesAfterMultimapUpdate()
/external/dagger2/javatests/dagger/functional/
DMultibindingTest.java42 assertThat(map).containsEntry("foo", "foo value"); in map()
43 assertThat(map).containsEntry("bar", "bar value"); in map()
177 assertThat(multibindingComponent.maybeEmptyMap()).containsEntry("key", "foo value"); in maybeEmptyMap()
183 .containsEntry("key", "qualified foo value"); in maybeEmptyQualifiedMap()
/external/icu/tools/cldr/cldr-to-icu/src/test/java/org/unicode/icu/tool/cldrtoicu/localedistance/
DLocaleDistanceMapperTest.java198 assertThat(matchTrie).containsEntry("yue-zh", 10); // Encapsulated language in testEndToEnd()
199 assertThat(matchTrie).containsEntry("zh-zh-Hant-Hant-*-*", 5); in testEndToEnd()
203 assertThat(matchTrie).containsEntry("en-en", 128); in testEndToEnd()
252 assertThat(matchTrie).containsEntry(key, distance); in assertEnDistanceForRegions()
254 assertThat(matchTrie).containsEntry("en-en-*-*", distance); in assertEnDistanceForRegions()
/external/dagger2/javatests/dagger/producers/internal/
DMapProducerTest.java41 assertThat(map).containsEntry(15, "fifteen"); in success()
42 assertThat(map).containsEntry(42, "forty two"); in success()
/external/downloader/src/test/java/com/google/android/downloader/
DMockWebServerUrlEngineTestHelper.java97 .containsEntry(HttpHeaders.CONTENT_TYPE, ImmutableList.of(encoding)); in executeRequest_normalResponse_succeeds()
101 .containsEntry(HttpHeaders.CACHE_CONTROL, ImmutableList.of("no-cache")); in executeRequest_normalResponse_succeeds()
141 .containsEntry(HttpHeaders.CONTENT_TYPE, ImmutableList.of(encoding)); in executeRequest_responseThrottled_succeeds()
145 .containsEntry(HttpHeaders.CACHE_CONTROL, ImmutableList.of("no-cache")); in executeRequest_responseThrottled_succeeds()
189 .containsEntry(HttpHeaders.CONTENT_TYPE, ImmutableList.of(encoding)); in executeRequest_largeResponse_succeeds()
193 .containsEntry(HttpHeaders.CACHE_CONTROL, ImmutableList.of("no-cache")); in executeRequest_largeResponse_succeeds()
/external/opencensus-java/exporters/trace/stackdriver/src/test/java/io/opencensus/exporter/trace/stackdriver/
DStackdriverV2ExporterHandlerProtoTest.java298 .containsEntry(ATTRIBUTE_KEY_1, AttributeValue.newBuilder().setIntValue(10L).build()); in generateSpan()
300 .containsEntry(ATTRIBUTE_KEY_2, AttributeValue.newBuilder().setBoolValue(true).build()); in generateSpan()
396 assertThat(attributes).containsEntry("/http/host", toStringAttributeValueProto("host")); in mapHttpAttributes()
397 assertThat(attributes).containsEntry("/http/method", toStringAttributeValueProto("method")); in mapHttpAttributes()
398 assertThat(attributes).containsEntry("/http/path", toStringAttributeValueProto("path")); in mapHttpAttributes()
399 assertThat(attributes).containsEntry("/http/route", toStringAttributeValueProto("route")); in mapHttpAttributes()
401 .containsEntry("/http/user_agent", toStringAttributeValueProto("user_agent")); in mapHttpAttributes()
403 .containsEntry("/http/status_code", AttributeValue.newBuilder().setIntValue(200L).build()); in mapHttpAttributes()
/external/dagger2/javatests/dagger/functional/producers/multibindings/
DMultibindingTest.java96 assertThat(map).containsEntry(15, "fifteen"); in mapBinding()
97 assertThat(map).containsEntry(42, "forty two"); in mapBinding()
98 assertThat(map).containsEntry(3, "provided three"); in mapBinding()
/external/guava/android/guava/src/com/google/common/collect/
DForwardingMultimap.java59 public boolean containsEntry(@NullableDecl Object key, @NullableDecl Object value) { in containsEntry() method in ForwardingMultimap
60 return delegate().containsEntry(key, value); in containsEntry()
/external/guava/guava/src/com/google/common/collect/
DForwardingMultimap.java59 public boolean containsEntry(@Nullable Object key, @Nullable Object value) { in containsEntry() method in ForwardingMultimap
60 return delegate().containsEntry(key, value); in containsEntry()
/external/jimfs/jimfs/src/test/java/com/google/common/jimfs/
DUrlTest.java85 assertThat(conn.getHeaderFields()).containsEntry("content-length", ImmutableList.of("3")); in headers()
87 .containsEntry("content-type", ImmutableList.of("application/octet-stream")); in headers()
/external/opencensus-java/contrib/log_correlation/stackdriver/src/test/java/io/opencensus/contrib/logcorrelation/stackdriver/
DOpenCensusTraceLoggingEnhancerTest.java85 assertThat(logEntry.getLabels()).containsEntry("opencensusTraceSampled", "true"); in enhanceLogEntry_AddSampledSpanToLogEntryWithSampledSpans()
102 assertThat(logEntry.getLabels()).containsEntry("opencensusTraceSampled", "true"); in enhanceLogEntry_AddSampledSpanToLogEntryWithAllSpans()
147 assertThat(logEntry.getLabels()).containsEntry("opencensusTraceSampled", "false"); in enhanceLogEntry_AddNonSampledSpanToLogEntryWithAllSpans()

123