Home
last modified time | relevance | path

Searched refs:hasSize (Results 1 – 25 of 181) sorted by relevance

12345678

/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/collection/
DIsCollectionWithSizeTest.java12 import static org.hamcrest.collection.IsCollectionWithSize.hasSize;
19 return hasSize(7); in createMatcher()
23 assertMatches("correct size", hasSize(equalTo(2)), asList(null, null)); in testMatchesWhenSizeIsCorrect()
24 …assertMismatchDescription("collection size was <3>", hasSize(equalTo(2)), asList(null, null, null)… in testMatchesWhenSizeIsCorrect()
29 assertMatches("correct size", hasSize(equalTo(2)), list); in testMatchesCollectionWhenSizeIsCorrectUsingObjectElementType()
30 assertMismatchDescription("collection size was <2>", hasSize(equalTo(3)), list); in testMatchesCollectionWhenSizeIsCorrectUsingObjectElementType()
35 assertMatches("correct size", hasSize(equalTo(2)), list); in testMatchesCollectionWhenSizeIsCorrectUsingStringElementType()
36 assertMismatchDescription("collection size was <2>", hasSize(equalTo(3)), list); in testMatchesCollectionWhenSizeIsCorrectUsingStringElementType()
41 assertMatches("correct size", hasSize(equalTo(2)), list); in testMatchesCollectionWhenSizeIsCorrectUsingWildcardElementType()
42 assertMismatchDescription("collection size was <2>", hasSize(equalTo(3)), list); in testMatchesCollectionWhenSizeIsCorrectUsingWildcardElementType()
[all …]
/external/turbine/javatests/com/google/turbine/binder/bytecode/
DBytecodeBoundClassTest.java64 assertThat(rawInterfaces.interfaceTypes()).hasSize(1); in interfaceTypes()
70 assertThat(genericInterfaces.interfaceTypes()).hasSize(1); in interfaceTypes()
74 .hasSize(1); in interfaceTypes()
102 assertThat(m.tyParams()).hasSize(3); in methodTypes()
103 assertThat(m.parameters().get(0).annotations()).hasSize(1); in methodTypes()
105 assertThat(m.exceptions()).hasSize(2); in methodTypes()
111 assertThat(b.exceptions()).hasSize(1); in methodTypes()
124 assertThat(c.methods()).hasSize(2); in voidAnno()
142 assertThat(Iterables.getLast(((ClassTy) f.type()).classes()).targs()).hasSize(1); in fieldTypes()
143 assertThat(f.annotations()).hasSize(1); in fieldTypes()
[all …]
/external/dagger2/javatests/dagger/functional/binds/
DBindsTest.java52 assertThat(component.foosOfNumbers()).hasSize(2); in multibindings()
53 assertThat(component.objects()).hasSize(3); in multibindings()
54 assertThat(component.charSequences()).hasSize(5); in multibindings()
58 assertThat(component.integerProviderOfObjectMap()).hasSize(3); in multibindings()
63 assertThat(component.qualifiedIntegerObjectMap()).hasSize(1); in multibindings()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowEventLogTest.java39 assertThat(events).hasSize(1); in testAddEvent_testStringLog()
57 assertThat(events).hasSize(1); in testAddEvent_testIntLog()
75 assertThat(events).hasSize(1); in testAddEvent_testLongLog()
93 assertThat(events).hasSize(1); in testAddEvent_testFloatLog()
111 assertThat(events).hasSize(1); in testAddEvent_testListLog()
125 assertThat(events).hasSize(1); in testWriteEvent_string()
137 assertThat(events).hasSize(1); in testWriteEvent_nullString()
150 assertThat(events).hasSize(1); in testWriteEvent_int()
162 assertThat(events).hasSize(1); in testWriteEvent_list()
177 assertThat(events).hasSize(1); in testWriteEvent_nullList()
[all …]
DShadowShortcutManagerTest.java37 assertThat(shortcutManager.getDynamicShortcuts()).hasSize(2); in testDynamicShortcuts_twoAdded()
44 assertThat(shortcutManager.getDynamicShortcuts()).hasSize(1); in testDynamicShortcuts_duplicateGetsDeduped()
55 assertThat(shortcutManager.getDynamicShortcuts()).hasSize(1); in testDynamicShortcuts_immutableShortcutDoesntGetUpdated()
57 assertThat(shortcutManager.getDynamicShortcuts()).hasSize(1); in testDynamicShortcuts_immutableShortcutDoesntGetUpdated()
69 assertThat(shortcutManager.getDynamicShortcuts()).hasSize(1); in testShortcutWithIdenticalIdGetsUpdated()
71 assertThat(shortcutManager.getDynamicShortcuts()).hasSize(1); in testShortcutWithIdenticalIdGetsUpdated()
79 assertThat(shortcutManager.getDynamicShortcuts()).hasSize(2); in testRemoveAllDynamicShortcuts()
91 assertThat(shortcutManager.getDynamicShortcuts()).hasSize(2); in testRemoveDynamicShortcuts()
160 assertThat(shortcutManager.getDynamicShortcuts()).hasSize(2); in testPinningExistingDynamicShortcut()
DShadowAlarmManagerTest.java186 assertThat(shadowAlarmManager.getScheduledAlarms()).hasSize(1); in set_shouldReplaceAlarmsWithSameIntentReceiver()
195 assertThat(shadowAlarmManager.getScheduledAlarms()).hasSize(1); in set_shouldReplaceDuplicates()
204 assertThat(shadowAlarmManager.getScheduledAlarms()).hasSize(1); in setRepeating_shouldReplaceDuplicates()
261 assertThat(shadowAlarmManager.getScheduledAlarms()).hasSize(2); in cancel_removesMatchingPendingIntents()
268 assertThat(shadowAlarmManager.getScheduledAlarms()).hasSize(1); in cancel_removesMatchingPendingIntents()
277 assertThat(shadowAlarmManager.getScheduledAlarms()).hasSize(1); in cancel_removesMatchingPendingIntentsWithActions()
280 assertThat(shadowAlarmManager.getScheduledAlarms()).hasSize(1); in cancel_removesMatchingPendingIntentsWithActions()
283 assertThat(shadowAlarmManager.getScheduledAlarms()).hasSize(0); in cancel_removesMatchingPendingIntentsWithActions()
295 assertThat(shadowAlarmManager.getScheduledAlarms()).hasSize(2); in schedule_useRequestCodeToMatchExistingPendingIntents()
307 assertThat(shadowAlarmManager.getScheduledAlarms()).hasSize(2); in cancel_useRequestCodeToMatchExistingPendingIntents()
[all …]
DShadowGeocoderTest.java46 assertThat(geocoder.getFromLocation(90.0,90.0,1)).hasSize(0); in getFromLocationReturnsAnEmptyArrayByDefault()
57 assertThat(result).hasSize(1); in getFromLocationReturnsTheOverwrittenListLimitingByMaxResults()
60 assertThat(result).hasSize(2); in getFromLocationReturnsTheOverwrittenListLimitingByMaxResults()
63 assertThat(result).hasSize(2); in getFromLocationReturnsTheOverwrittenListLimitingByMaxResults()
DShadowTelecomManagerTest.java47 assertThat(shadowOf(telecomService).getAllPhoneAccounts()).hasSize(0); in registerAndUnRegister()
54 assertThat(shadowOf(telecomService).getAllPhoneAccounts()).hasSize(1); in registerAndUnRegister()
55 assertThat(telecomService.getAllPhoneAccountHandles()).hasSize(1); in registerAndUnRegister()
62 assertThat(shadowOf(telecomService).getAllPhoneAccounts()).hasSize(0); in registerAndUnRegister()
63 assertThat(telecomService.getAllPhoneAccountHandles()).hasSize(0); in registerAndUnRegister()
145 assertThat(shadowOf(telecomService).getAllIncomingCalls()).hasSize(1); in testAddNewIncomingCall()
152 assertThat(shadowOf(telecomService).getAllUnknownCalls()).hasSize(1); in testAddUnknownCall()
/external/guava/guava-tests/test/com/google/common/graph/
DGraphMutationTest.java68 assertThat(graph.nodes()).hasSize(NUM_NODES); in testGraphMutation()
69 assertThat(graph.edges()).hasSize(NUM_EDGES); in testGraphMutation()
79 assertThat(graph.nodes()).hasSize(NUM_NODES); in testGraphMutation()
80 assertThat(graph.edges()).hasSize(NUM_EDGES - numEdgesToRemove); in testGraphMutation()
89 assertThat(graph.nodes()).hasSize(NUM_NODES - numNodesToRemove); in testGraphMutation()
110 assertThat(graph.nodes()).hasSize(NUM_NODES); in testGraphMutation()
111 assertThat(graph.edges()).hasSize(NUM_EDGES); in testGraphMutation()
DNetworkMutationTest.java73 assertThat(network.nodes()).hasSize(NUM_NODES); in testNetworkMutation()
74 assertThat(network.edges()).hasSize(NUM_EDGES); in testNetworkMutation()
84 assertThat(network.nodes()).hasSize(NUM_NODES); in testNetworkMutation()
85 assertThat(network.edges()).hasSize(NUM_EDGES - numEdgesToRemove); in testNetworkMutation()
94 assertThat(network.nodes()).hasSize(NUM_NODES - numNodesToRemove); in testNetworkMutation()
118 assertThat(network.nodes()).hasSize(NUM_NODES); in testNetworkMutation()
119 assertThat(network.edges()).hasSize(NUM_EDGES); in testNetworkMutation()
/external/guava/android/guava-tests/test/com/google/common/graph/
DGraphMutationTest.java68 assertThat(graph.nodes()).hasSize(NUM_NODES); in testGraphMutation()
69 assertThat(graph.edges()).hasSize(NUM_EDGES); in testGraphMutation()
79 assertThat(graph.nodes()).hasSize(NUM_NODES); in testGraphMutation()
80 assertThat(graph.edges()).hasSize(NUM_EDGES - numEdgesToRemove); in testGraphMutation()
89 assertThat(graph.nodes()).hasSize(NUM_NODES - numNodesToRemove); in testGraphMutation()
110 assertThat(graph.nodes()).hasSize(NUM_NODES); in testGraphMutation()
111 assertThat(graph.edges()).hasSize(NUM_EDGES); in testGraphMutation()
DNetworkMutationTest.java73 assertThat(network.nodes()).hasSize(NUM_NODES); in testNetworkMutation()
74 assertThat(network.edges()).hasSize(NUM_EDGES); in testNetworkMutation()
84 assertThat(network.nodes()).hasSize(NUM_NODES); in testNetworkMutation()
85 assertThat(network.edges()).hasSize(NUM_EDGES - numEdgesToRemove); in testNetworkMutation()
94 assertThat(network.nodes()).hasSize(NUM_NODES - numNodesToRemove); in testNetworkMutation()
118 assertThat(network.nodes()).hasSize(NUM_NODES); in testNetworkMutation()
119 assertThat(network.edges()).hasSize(NUM_EDGES); in testNetworkMutation()
/external/icu/tools/cldr/cldr-to-icu/src/test/java/org/unicode/icu/tool/cldrtoicu/mapper/
DLocaleMapperTest.java42 assertThat(icuData).getPaths().hasSize(1); in testSimple()
57 assertThat(icuData).getPaths().hasSize(1); in testCorrectLocaleIsUsed()
75 assertThat(icuData).getPaths().hasSize(1); in testInheritedValuesNotIncludedByDefault()
96 assertThat(icuData).getPaths().hasSize(1); in testInheritedValuesIncludedWhenSameResourceBundle()
121 assertThat(icuData).getPaths().hasSize(1); in testChildPathsNotIncludedByDefault()
140 assertThat(icuData).getPaths().hasSize(1); in testParentPathsNotIncludedByDefault()
174 assertThat(icuData).getPaths().hasSize(2); in testHiddenLabelsIncludeParentPaths()
242 assertThat(icuData).getPaths().hasSize(1); in testHiddenLabelsAreNotIncludedAutomatically()
249 assertThat(icuData).getPaths().hasSize(1); in testDefaultCalendar()
295 assertThat(icuData).getPaths().hasSize(1); in testDateTimeHack()
DCollationMapperTest.java39 assertThat(rootData).getPaths().hasSize(2); in testEmpty()
51 assertThat(icuData).getPaths().hasSize(1); in testDefault()
71 assertThat(icuData).getPaths().hasSize(2); in testLastAltRuleOverridesExisting()
122 assertThat(icuData).getPaths().hasSize(2); in testEmoji()
144 assertThat(icuData).getPaths().hasSize(2); in testSpecials()
DTransformsMapperTest.java74 assertThat(icuData).getPaths().hasSize(DEFAULT_PATH_COUNT); in testDefaultContent()
96 assertThat(icuData).getPaths().hasSize(DEFAULT_PATH_COUNT + 5); in testForward()
107 assertThat(fileMap).hasSize(1); in testForward()
126 assertThat(icuData).getPaths().hasSize(DEFAULT_PATH_COUNT + 5); in testBackward()
138 assertThat(fileMap).hasSize(1); in testBackward()
158 assertThat(icuData).getPaths().hasSize(DEFAULT_PATH_COUNT + 6); in testBoth()
180 assertThat(fileMap).hasSize(1); in testBoth()
/external/dagger2/javatests/dagger/functional/subcomponent/
DSubcomponentTest.java78 assertThat(parentObjectSet).hasSize(2); in multibindingContributions()
80 assertThat(childObjectSet).hasSize(3); in multibindingContributions()
83 assertThat(grandchildObjectSet).hasSize(4); in multibindingContributions()
84 assertThat(intersection(parentObjectSet, childObjectSet)).hasSize(1); in multibindingContributions()
85 assertThat(intersection(parentObjectSet, grandchildObjectSet)).hasSize(1); in multibindingContributions()
86 assertThat(intersection(childObjectSet, grandchildObjectSet)).hasSize(1); in multibindingContributions()
/external/dagger2/javatests/dagger/functional/producers/binds/
DBindsProducersTest.java54 assertThat(component.foosOfNumbers().get()).hasSize(2); in multibindings()
55 assertThat(component.objects().get()).hasSize(3); in multibindings()
56 assertThat(component.charSequences().get()).hasSize(5); in multibindings()
64 assertThat(integerProducerOfObjectMap).hasSize(4); in multibindings()
77 assertThat(component.qualifiedIntegerObjectMap().get()).hasSize(1); in multibindings()
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/collection/
DIsCollectionWithSize.java32 … public static <E> Matcher<Collection<? extends E>> hasSize(Matcher<? super Integer> sizeMatcher) { in hasSize() method in IsCollectionWithSize
46 public static <E> Matcher<Collection<? extends E>> hasSize(int size) { in hasSize() method in IsCollectionWithSize
47 return (Matcher)IsCollectionWithSize.hasSize(equalTo(size)); in hasSize()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/
DRobolectricTestRunnerMultiApiTest.java100 assertThat(runner.getChildren()).hasSize(2); in withEnabledSdks_createChildrenForEachSupportedSdk()
121 assertThat(runListener.finished).hasSize(numSupportedApis); in noConfig()
133 assertThat(runListener.finished).hasSize(2); in classConfigWithSdkGroup()
145 assertThat(runListener.finished).hasSize(2); in methodConfigWithSdkGroup()
157 assertThat(runListener.finished).hasSize(sdksAfterAndIncludingLollipop); in classConfigMinSdk()
169 assertThat(runListener.finished).hasSize(sdksUpToAndIncludingLollipop); in classConfigMaxSdk()
182 assertThat(runListener.finished).hasSize(sdksInclusivelyBetweenJellyBeanMr2AndLollipop); in classConfigWithMinSdkAndMaxSdk()
194 assertThat(runListener.finished).hasSize(sdksAfterAndIncludingLollipop); in methodConfigMinSdk()
206 assertThat(runListener.finished).hasSize(sdksUpToAndIncludingLollipop); in methodConfigMaxSdk()
218 assertThat(runListener.finished).hasSize(sdksInclusivelyBetweenJellyBeanMr2AndLollipop); in methodConfigWithMinSdkAndMaxSdk()
/external/junit-params/src/test/java/junitparams/
DFilterableTest.java48 assertThat(description.getChildren()).hasSize(1); in shouldReturnOneDescriptionForSimpleTestCase()
49 assertThat(description.getChildren().get(0).getChildren()).hasSize(0); in shouldReturnOneDescriptionForSimpleTestCase()
58 assertThat(description.getChildren()).hasSize(1); in shouldReturnParametrizedDescriptionsForParametrizedTestCase()
59 assertThat(description.getChildren().get(0).getChildren()).hasSize(2); in shouldReturnParametrizedDescriptionsForParametrizedTestCase()
/external/dagger2/javatests/dagger/functional/producers/multibindings/
DMultibindingTest.java87 assertThat(failures).hasSize(1); in setBindingOfProducedWithFailures()
95 assertThat(map).hasSize(3); in mapBinding()
105 assertThat(map).hasSize(3); in mapOfProducerBinding()
118 assertThat(map).hasSize(3); in mapOfProducedBinding()
143 assertThat(map).hasSize(2); in mapOfProducerBindingWithFailures()
161 assertThat(map).hasSize(2); in mapOfProducedBindingWithFailures()
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/common/statsd/
DTextClassifierEventLoggerTest.java108 assertThat(atoms).hasSize(1); in writeEvent_textSelectionEvent()
125 assertThat(atoms).hasSize(1); in writeEvent_textSelectionEvent_autoToSingle()
143 assertThat(atoms).hasSize(1); in writeEvent_textSelectionEvent_autoToMulti()
161 assertThat(atoms).hasSize(1); in writeEvent_textSelectionEvent_keepAuto()
195 assertThat(atoms).hasSize(1); in writeEvent_textLinkifyEvent()
229 assertThat(atoms).hasSize(1); in writeEvent_textConversationActionEvent()
260 assertThat(atoms).hasSize(1); in writeEvent_languageDetectionEvent()
/external/turbine/javatests/com/google/turbine/bytecode/
DClassReaderTest.java80 assertThat(classFile.methods()).hasSize(3); in methods()
134 assertThat(classFile.annotations()).hasSize(1); in annotationDeclaration()
137 assertThat(annotation.elementValuePairs()).hasSize(1); in annotationDeclaration()
170 assertThat(classFile.fields()).hasSize(3); in fields()
178 assertThat(x.annotations()).hasSize(1); in fields()
209 assertThat(classFile.innerClasses()).hasSize(2); in innerClass()
284 assertThat(module.requires()).hasSize(3); in module()
298 assertThat(module.exports()).hasSize(3); in module()
312 assertThat(module.opens()).hasSize(3); in module()
330 assertThat(module.provides()).hasSize(2); in module()
/external/dagger2/javatests/dagger/functional/cycle/
DCycleTest.java85 assertThat(cycleMapComponent.y().mapOfProvidersOfX).hasSize(1); in providerMapIndirectionCycle()
89 assertThat(cycleMapComponent.y().mapOfProvidersOfY.get("Y").get().mapOfProvidersOfX).hasSize(1); in providerMapIndirectionCycle()
90 assertThat(cycleMapComponent.y().mapOfProvidersOfY.get("Y").get().mapOfProvidersOfY).hasSize(1); in providerMapIndirectionCycle()
91 assertThat(cycleMapComponent.y().mapOfProvidersOfY).hasSize(1); in providerMapIndirectionCycle()
/external/icu/tools/cldr/cldr-to-icu/src/test/java/org/unicode/icu/tool/cldrtoicu/regex/
DRegexTransformerTest.java100 assertThat(results).hasSize(3); in testMultipleResults()
130 assertThat(results).hasSize(3); in testImplicitArgumentSplitting()
149 assertThat(results).hasSize(3); in testImplicitArgumentSplitting()
214 assertThat(results).hasSize(3); in testResultFunctionCalling()
291 assertThat(fallbacks).hasSize(2); in testFallbacks_simple()
521 assertThat(results).hasSize(1); in transformSingleResult()
526 assertThat(results).hasSize(1); in assertSingleResult()

12345678