OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:hasSize
(Results
1 - 25
of
90
) sorted by null
1
2
3
4
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/collection/
IsCollectionWithSizeTest.java
12
import static org.hamcrest.collection.IsCollectionWithSize.
hasSize
;
19
return
hasSize
(7);
23
assertMatches("correct size",
hasSize
(equalTo(2)), asList(null, null));
24
assertMismatchDescription("collection size was <3>",
hasSize
(equalTo(2)), asList(null, null, null));
29
assertMatches("correct size",
hasSize
(equalTo(2)), list);
30
assertMismatchDescription("collection size was <2>",
hasSize
(equalTo(3)), list);
35
assertMatches("correct size",
hasSize
(equalTo(2)), list);
36
assertMismatchDescription("collection size was <2>",
hasSize
(equalTo(3)), list);
41
assertMatches("correct size",
hasSize
(equalTo(2)), list);
42
assertMismatchDescription("collection size was <2>",
hasSize
(equalTo(3)), list)
[
all
...]
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/collection/
IsCollectionWithSize.java
27
* <pre>assertThat(Arrays.asList("foo", "bar"),
hasSize
(equalTo(2)))</pre>
32
public static <E> Matcher<Collection<? extends E>>
hasSize
(Matcher<? super Integer> sizeMatcher) {
40
* <pre>assertThat(Arrays.asList("foo", "bar"),
hasSize
(2))</pre>
46
public static <E> Matcher<Collection<? extends E>>
hasSize
(int size) {
47
return (Matcher)IsCollectionWithSize.
hasSize
(equalTo(size));
/external/dagger2/compiler/src/it/functional-tests/src/test/java/test/subcomponent/
SubcomponentTest.java
75
assertThat(parentObjectSet).
hasSize
(2);
77
assertThat(childObjectSet).
hasSize
(3);
80
assertThat(grandchildObjectSet).
hasSize
(4);
81
assertThat(intersection(parentObjectSet, childObjectSet)).
hasSize
(1);
82
assertThat(intersection(parentObjectSet, grandchildObjectSet)).
hasSize
(1);
83
assertThat(intersection(childObjectSet, grandchildObjectSet)).
hasSize
(1);
/external/mockito/src/test/java/org/mockitousage/bugs/
ArgumentCaptorDontCapturePreviouslyVerifiedTest.java
24
assertThat(argument.getAllValues()).
hasSize
(1);
30
assertThat(argument.getAllValues()).
hasSize
(2);
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowEventLogTest.java
39
assertThat(events).
hasSize
(1);
57
assertThat(events).
hasSize
(1);
75
assertThat(events).
hasSize
(1);
93
assertThat(events).
hasSize
(1);
111
assertThat(events).
hasSize
(1);
125
assertThat(events).
hasSize
(1);
137
assertThat(events).
hasSize
(1);
150
assertThat(events).
hasSize
(1);
162
assertThat(events).
hasSize
(1);
177
assertThat(events).
hasSize
(1)
[
all
...]
ShadowGeocoderTest.java
46
assertThat(geocoder.getFromLocation(90.0,90.0,1)).
hasSize
(0);
57
assertThat(result).
hasSize
(1);
60
assertThat(result).
hasSize
(2);
63
assertThat(result).
hasSize
(2);
ShadowTelecomManagerTest.java
47
assertThat(shadowOf(telecomService).getAllPhoneAccounts()).
hasSize
(0);
54
assertThat(shadowOf(telecomService).getAllPhoneAccounts()).
hasSize
(1);
55
assertThat(telecomService.getAllPhoneAccountHandles()).
hasSize
(1);
62
assertThat(shadowOf(telecomService).getAllPhoneAccounts()).
hasSize
(0);
63
assertThat(telecomService.getAllPhoneAccountHandles()).
hasSize
(0);
145
assertThat(shadowOf(telecomService).getAllIncomingCalls()).
hasSize
(1);
152
assertThat(shadowOf(telecomService).getAllUnknownCalls()).
hasSize
(1);
ShadowShortcutManagerTest.java
37
assertThat(shortcutManager.getDynamicShortcuts()).
hasSize
(2);
44
assertThat(shortcutManager.getDynamicShortcuts()).
hasSize
(1);
55
assertThat(shortcutManager.getDynamicShortcuts()).
hasSize
(1);
57
assertThat(shortcutManager.getDynamicShortcuts()).
hasSize
(1);
69
assertThat(shortcutManager.getDynamicShortcuts()).
hasSize
(1);
71
assertThat(shortcutManager.getDynamicShortcuts()).
hasSize
(1);
79
assertThat(shortcutManager.getDynamicShortcuts()).
hasSize
(2);
91
assertThat(shortcutManager.getDynamicShortcuts()).
hasSize
(2);
160
assertThat(shortcutManager.getDynamicShortcuts()).
hasSize
(2);
ShadowAudioEffectTest.java
21
assertThat(descriptors).asList().
hasSize
(1);
ShadowAlarmManagerTest.java
186
assertThat(shadowAlarmManager.getScheduledAlarms()).
hasSize
(1);
195
assertThat(shadowAlarmManager.getScheduledAlarms()).
hasSize
(1);
204
assertThat(shadowAlarmManager.getScheduledAlarms()).
hasSize
(1);
261
assertThat(shadowAlarmManager.getScheduledAlarms()).
hasSize
(2);
268
assertThat(shadowAlarmManager.getScheduledAlarms()).
hasSize
(1);
277
assertThat(shadowAlarmManager.getScheduledAlarms()).
hasSize
(1);
280
assertThat(shadowAlarmManager.getScheduledAlarms()).
hasSize
(1);
283
assertThat(shadowAlarmManager.getScheduledAlarms()).
hasSize
(0);
295
assertThat(shadowAlarmManager.getScheduledAlarms()).
hasSize
(2);
307
assertThat(shadowAlarmManager.getScheduledAlarms()).
hasSize
(2)
[
all
...]
/external/junit-params/src/test/java/junitparams/
FilterableTest.java
48
assertThat(description.getChildren()).
hasSize
(1);
49
assertThat(description.getChildren().get(0).getChildren()).
hasSize
(0);
58
assertThat(description.getChildren()).
hasSize
(1);
59
assertThat(description.getChildren().get(0).getChildren()).
hasSize
(2);
/external/turbine/javatests/com/google/turbine/binder/bytecode/
BytecodeBoundClassTest.java
62
assertThat(rawInterfaces.interfaceTypes()).
hasSize
(1);
68
assertThat(genericInterfaces.interfaceTypes()).
hasSize
(1);
72
.
hasSize
(1);
96
assertThat(m.tyParams()).
hasSize
(3);
97
assertThat(m.parameters().get(0).annotations()).
hasSize
(1);
99
assertThat(m.exceptions()).
hasSize
(2);
112
assertThat(c.methods()).
hasSize
(2);
/external/grpc-grpc-java/core/src/test/java/io/grpc/
AttributesTest.java
37
assertThat(attrs.keysForTest()).
hasSize
(1);
48
assertThat(attrs.keysForTest()).
hasSize
(2);
61
assertThat(attrs.keysForTest()).
hasSize
(2);
/external/dagger2/compiler/src/it/functional-tests/src/test/java/test/cycle/
CycleTest.java
83
assertThat(cycleMapComponent.y().mapOfProvidersOfX).
hasSize
(1);
87
assertThat(cycleMapComponent.y().mapOfProvidersOfY.get("Y").get().mapOfProvidersOfX).
hasSize
(1);
88
assertThat(cycleMapComponent.y().mapOfProvidersOfY.get("Y").get().mapOfProvidersOfY).
hasSize
(1);
89
assertThat(cycleMapComponent.y().mapOfProvidersOfY).
hasSize
(1);
/external/robolectric-shadows/shadows/supportv4/src/test/java/org/robolectric/shadows/support/v4/
NotificationCompatBuilderTest.java
22
assertThat(notification.actions).asList().
hasSize
(1);
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/
RobolectricTestRunnerMultiApiTest.java
100
assertThat(runner.getChildren()).
hasSize
(2);
121
assertThat(runListener.finished).
hasSize
(numSupportedApis);
133
assertThat(runListener.finished).
hasSize
(2);
145
assertThat(runListener.finished).
hasSize
(2);
157
assertThat(runListener.finished).
hasSize
(sdksAfterAndIncludingLollipop);
169
assertThat(runListener.finished).
hasSize
(sdksUpToAndIncludingLollipop);
182
assertThat(runListener.finished).
hasSize
(sdksInclusivelyBetweenJellyBeanMr2AndLollipop);
194
assertThat(runListener.finished).
hasSize
(sdksAfterAndIncludingLollipop);
206
assertThat(runListener.finished).
hasSize
(sdksUpToAndIncludingLollipop);
218
assertThat(runListener.finished).
hasSize
(sdksInclusivelyBetweenJellyBeanMr2AndLollipop)
[
all
...]
/external/dagger2/compiler/src/it/functional-tests/src/test/java/test/
MultibindingTest.java
47
assertThat(map).
hasSize
(2);
54
assertThat(map).
hasSize
(2);
63
assertThat(mapOfProviders).
hasSize
(2);
/cts/tests/autofillservice/src/android/autofillservice/cts/
WebViewMultiScreenLoginActivityTest.java
111
assertThat(fillRequest1.contexts).
hasSize
(1);
137
assertThat(saveRequest1.contexts).
hasSize
(1);
160
assertThat(fillRequest2.contexts).
hasSize
(1);
185
assertThat(saveRequest2.contexts).
hasSize
(1);
214
assertThat(fillRequest1.contexts).
hasSize
(1);
259
assertThat(fillRequest2.contexts).
hasSize
(2);
MultiScreenDifferentActivitiesTest.java
78
assertThat(saveRequest.contexts).
hasSize
(1);
126
assertThat(saveRequest.contexts).
hasSize
(2);
/external/mockito/src/test/java/org/mockito/internal/util/reflection/
GenericMetadataSupportTest.java
76
assertThat(inferFrom(GenericsNest.class).actualTypeArguments().keySet()).
hasSize
(1).extracting("name").contains("K");
78
assertThat(inferFrom(ListOfAnyNumbers.class).actualTypeArguments().keySet()).
hasSize
(1).extracting("name").contains("N");
79
assertThat(inferFrom(Map.class).actualTypeArguments().keySet()).
hasSize
(2).extracting("name").contains("K", "V");
93
assertThat(inferFrom(GenericsNest.class.getGenericInterfaces()[0]).actualTypeArguments().keySet()).
hasSize
(2).extracting("name").contains("K", "V");
94
assertThat(inferFrom(ListOfAnyNumbers.class.getGenericInterfaces()[0]).actualTypeArguments().keySet()).
hasSize
(1).extracting("name").contains("E");
95
assertThat(inferFrom(Integer.class.getGenericInterfaces()[0]).actualTypeArguments().keySet()).
hasSize
(1).extracting("name").contains("T");
/developers/build/prebuilts/gradle/AutofillFramework/afservice/src/androidTest/java/com/example/android/autofill/service/data/source/local/
AutofillDaoTest.java
42
import static org.hamcrest.Matchers.
hasSize
;
93
assertThat(loadedDatasets,
hasSize
(1));
/developers/samples/android/input/autofill/AutofillFramework/afservice/src/androidTest/java/com/example/android/autofill/service/data/source/local/
AutofillDaoTest.java
42
import static org.hamcrest.Matchers.
hasSize
;
93
assertThat(loadedDatasets,
hasSize
(1));
/developers/samples/android/notification/Bubbles/app/src/test/java/com/example/android/bubbles/ui/chat/
ChatViewModelTest.kt
60
assertThat(viewModel.messages.observedValue()).
hasSize
(2)
69
assertThat(messages).
hasSize
(4)
/external/dagger2/producers/src/test/java/dagger/producers/internal/
SetOfProducedProducerTest.java
70
assertThat(results.failures).
hasSize
(1);
83
assertThat(results.failures).
hasSize
(1);
95
assertThat(results.failures).
hasSize
(1);
107
assertThat(results.failures).
hasSize
(1);
/external/turbine/javatests/com/google/turbine/bytecode/
ClassReaderTest.java
79
assertThat(classFile.methods()).
hasSize
(3);
133
assertThat(classFile.annotations()).
hasSize
(1);
136
assertThat(annotation.elementValuePairs()).
hasSize
(1);
168
assertThat(classFile.fields()).
hasSize
(3);
204
assertThat(classFile.innerClasses()).
hasSize
(2);
279
assertThat(module.requires()).
hasSize
(3);
293
assertThat(module.exports()).
hasSize
(3);
307
assertThat(module.opens()).
hasSize
(3);
325
assertThat(module.provides()).
hasSize
(2);
Completed in 629 milliseconds
1
2
3
4