Home
last modified time | relevance | path

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

/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/dagger2/compiler/src/it/functional-tests/src/test/java/test/subcomponent/
DSubcomponentTest.java75 assertThat(parentObjectSet).hasSize(2); in multibindingContributions()
77 assertThat(childObjectSet).hasSize(3); in multibindingContributions()
80 assertThat(grandchildObjectSet).hasSize(4); in multibindingContributions()
81 assertThat(intersection(parentObjectSet, childObjectSet)).hasSize(1); in multibindingContributions()
82 assertThat(intersection(parentObjectSet, grandchildObjectSet)).hasSize(1); in multibindingContributions()
83 assertThat(intersection(childObjectSet, grandchildObjectSet)).hasSize(1); in multibindingContributions()
DSubcomponentMultibindingsTest.java75 .hasSize(1); in testOverriddenMultibindingsInSubcomponents()
/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/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/compiler/src/it/functional-tests/src/test/java/test/cycle/
DCycleTest.java83 assertThat(cycleMapComponent.y().mapOfProvidersOfX).hasSize(1); in providerMapIndirectionCycle()
87 assertThat(cycleMapComponent.y().mapOfProvidersOfY.get("Y").get().mapOfProvidersOfX).hasSize(1); in providerMapIndirectionCycle()
88 assertThat(cycleMapComponent.y().mapOfProvidersOfY.get("Y").get().mapOfProvidersOfY).hasSize(1); in providerMapIndirectionCycle()
89 assertThat(cycleMapComponent.y().mapOfProvidersOfY).hasSize(1); in providerMapIndirectionCycle()
/external/mockito/src/test/java/org/mockito/internal/util/reflection/
DGenericMetadataSupportTest.java76 …assertThat(inferFrom(GenericsNest.class).actualTypeArguments().keySet()).hasSize(1).extracting("na… in can_get_type_variables_from_Class()
78 …assertThat(inferFrom(ListOfAnyNumbers.class).actualTypeArguments().keySet()).hasSize(1).extracting… in can_get_type_variables_from_Class()
79 …assertThat(inferFrom(Map.class).actualTypeArguments().keySet()).hasSize(2).extracting("name").cont… in can_get_type_variables_from_Class()
93 …icsNest.class.getGenericInterfaces()[0]).actualTypeArguments().keySet()).hasSize(2).extracting("na… in can_get_type_variables_from_ParameterizedType()
94 …Numbers.class.getGenericInterfaces()[0]).actualTypeArguments().keySet()).hasSize(1).extracting("na… in can_get_type_variables_from_ParameterizedType()
95 …Integer.class.getGenericInterfaces()[0]).actualTypeArguments().keySet()).hasSize(1).extracting("na… in can_get_type_variables_from_ParameterizedType()
DSuperTypesLastSorterTest.java131 assertThat(results).hasSize(1); in assertSortConsistently()
/external/dagger2/producers/src/test/java/dagger/producers/internal/
DSetOfProducedProducerTest.java70 assertThat(results.failures).hasSize(1); in delegateSetNpe()
83 assertThat(results.failures).hasSize(1); in oneOfDelegateSetNpe()
95 assertThat(results.failures).hasSize(1); in delegateElementNpe()
107 assertThat(results.failures).hasSize(1); in oneOfDelegateElementNpe()
/external/mockito/src/test/java/org/mockitousage/bugs/
DArgumentCaptorDontCapturePreviouslyVerifiedTest.java20 assertThat(argument.getAllValues()).hasSize(1); in previous_verified_invocation_should_still_capture_args()
26 assertThat(argument.getAllValues()).hasSize(2); in previous_verified_invocation_should_still_capture_args()
/external/dagger2/compiler/src/it/functional-tests/src/test/java/test/
DMultibindingTest.java47 assertThat(map).hasSize(2); in map()
54 assertThat(map).hasSize(2); in mapOfArrays()
63 assertThat(mapOfProviders).hasSize(2); in mapOfProviders()
/external/dagger2/compiler/src/it/producers-functional-tests/src/test/java/producerstest/monitoring/
DMonitoringTest.java75 assertThat(componentMonitor.monitors).hasSize(3); in basicMonitoring()
115 assertThat(componentMonitor.monitors).hasSize(3); in basicMonitoringWithFailure()
/external/dagger2/compiler/src/it/producers-functional-tests/src/test/java/producerstest/
DMultibindingTest.java70 assertThat(failures).hasSize(1); in setBindingOfProducedWithFailures()
/external/mockito/src/test/java/org/mockitousage/matchers/
DInvalidUseOfMatchersTest.java112 assertThat(run.getFailures()).hasSize(2); in should_mention_matcher_when_misuse_detected()
/external/mockito/src/test/java/org/mockito/internal/creation/
DMockSettingsImplTest.java112 Assertions.assertThat(mockSettingsImpl.getInvocationListeners()).hasSize(1); in shouldAddVerboseLoggingListenerOnlyOnce()
/external/mockito/src/test/java/org/mockito/internal/creation/bytebuddy/
DTypeCachingMockBytecodeGeneratorTest.java126 assertThat(cache).hasSize(1); in validate_simple_code_idea_where_weakhashmap_with_classloader_as_key_get_GCed_when_no_more_references()
/external/clang/unittests/ASTMatchers/
DASTMatchersNodeTest.cpp26 EXPECT_TRUE(Finder.addDynamicMatcher(constantArrayType(hasSize(42)), in TEST()
1102 EXPECT_TRUE(matches("int a[42];", constantArrayType(hasSize(42)))); in TEST()
1103 EXPECT_TRUE(matches("int b[2*21];", constantArrayType(hasSize(42)))); in TEST()
1104 EXPECT_TRUE(notMatches("int c[41], d[43];", constantArrayType(hasSize(42)))); in TEST()
DASTMatchersNarrowingTest.cpp1143 StatementMatcher Literal = stringLiteral(hasSize(4)); in TEST()
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/
DMatchers.java783 …public static <E> org.hamcrest.Matcher<java.util.Collection<? extends E>> hasSize(org.hamcrest.Mat… in hasSize() method in Matchers
784 return org.hamcrest.collection.IsCollectionWithSize.<E>hasSize(sizeMatcher); in hasSize()
796 public static <E> org.hamcrest.Matcher<java.util.Collection<? extends E>> hasSize(int size) { in hasSize() method in Matchers
797 return org.hamcrest.collection.IsCollectionWithSize.<E>hasSize(size); in hasSize()
/external/clang/lib/ASTMatchers/Dynamic/
DRegistry.cpp255 REGISTER_MATCHER(hasSize); in RegistryMaps()
/external/clang/include/clang/ASTMatchers/
DASTMatchersInternal.h1663 static bool hasSize(const Ty &Node, unsigned int N) {
1669 inline bool HasSizeMatcher<StringLiteral>::hasSize(
DASTMatchers.h4466 AST_POLYMORPHIC_MATCHER_P(hasSize, in AST_POLYMORPHIC_MATCHER_P() argument
4470 return internal::HasSizeMatcher<NodeType>::hasSize(Node, N); in AST_POLYMORPHIC_MATCHER_P()