/external/opencensus-java/exporters/stats/prometheus/src/test/java/io/opencensus/exporter/stats/prometheus/ |
D | PrometheusExportUtilsTest.java | 75 BucketBoundaries.create(Arrays.asList(-5.0, 0.0, 5.0)); 97 DistributionData.create(4.4, 5, -3.2, 15.7, 135.22, Arrays.asList(0L, 2L, 2L, 1L)); 102 VIEW_NAME_1, DESCRIPTION, MEASURE_DOUBLE, COUNT, Arrays.asList(K1, K2), CUMULATIVE); 104 View.create(VIEW_NAME_2, DESCRIPTION, MEASURE_DOUBLE, MEAN, Arrays.asList(K3), CUMULATIVE); 107 VIEW_NAME_3, DESCRIPTION, MEASURE_DOUBLE, DISTRIBUTION, Arrays.asList(K1), CUMULATIVE); 109 View.create(VIEW_NAME_4, DESCRIPTION, MEASURE_DOUBLE, COUNT, Arrays.asList(K1), INTERVAL); 116 Arrays.asList(K1, TAG_KEY_LE), 166 convertToLabelNames(Arrays.asList(K1, K2)), in getSamples() 167 Arrays.asList(V1, V2), in getSamples() 171 new Sample(SAMPLE_NAME, Arrays.asList("k1", "k2"), Arrays.asList("v1", "v2"), -5.5)); in getSamples() [all …]
|
D | PrometheusStatsCollectorTest.java | 56 BucketBoundaries.create(Arrays.asList(-5.0, 0.0, 5.0)); 68 DistributionData.create(4.4, 5, -3.2, 15.7, 135.22, Arrays.asList(0L, 2L, 2L, 1L)); 71 VIEW_NAME, DESCRIPTION, MEASURE_DOUBLE, DISTRIBUTION, Arrays.asList(K1, K2), CUMULATIVE); 78 Arrays.asList(K1, LE_TAG_KEY), 84 VIEW, ImmutableMap.of(Arrays.asList(V1, V2), DISTRIBUTION_DATA), CUMULATIVE_DATA); 88 ImmutableMap.of(Arrays.asList(V1, V2), DISTRIBUTION_DATA), 110 Arrays.asList( in testCollect() 113 Arrays.asList("k1", "k2", "le"), in testCollect() 114 Arrays.asList("v1", "v2", "-5.0"), in testCollect() 118 Arrays.asList("k1", "k2", "le"), in testCollect() [all …]
|
/external/opencensus-java/contrib/grpc_metrics/src/main/java/io/opencensus/contrib/grpc/metrics/ |
D | RpcViewConstants.java | 84 Arrays.asList( 104 Arrays.asList( 112 Arrays.asList( 121 Arrays.asList( 172 Arrays.asList(RPC_STATUS, RPC_METHOD), 188 Arrays.asList(RPC_METHOD), 204 Arrays.asList(RPC_METHOD), 220 Arrays.asList(RPC_METHOD), 236 Arrays.asList(RPC_METHOD), 252 Arrays.asList(RPC_METHOD), [all …]
|
/external/guava/guava-tests/test/com/google/common/primitives/ |
D | BooleansTest.java | 161 Arrays.asList( in testLexicographicalComparator() 214 List<Boolean> none = Arrays.<Boolean>asList(); in testToArray() 217 List<Boolean> one = Arrays.asList(false); in testToArray() 222 List<Boolean> three = Arrays.asList(false, false, true); in testToArray() 225 assertTrue(Arrays.equals(array, Booleans.toArray(Booleans.asList(array)))); in testToArray() 235 List<Boolean> list = Booleans.asList(VALUES).subList(0, i); in testToArray_threadSafe() 248 List<Boolean> list = Arrays.asList(false, true, null); in testToArray_withNull() 257 assertTrue(Booleans.asList(EMPTY).isEmpty()); in testAsListIsEmpty() 258 assertFalse(Booleans.asList(ARRAY_FALSE).isEmpty()); in testAsListIsEmpty() 262 assertEquals(0, Booleans.asList(EMPTY).size()); in testAsListSize() [all …]
|
/external/guava/android/guava-tests/test/com/google/common/primitives/ |
D | BooleansTest.java | 161 Arrays.asList( in testLexicographicalComparator() 214 List<Boolean> none = Arrays.<Boolean>asList(); in testToArray() 217 List<Boolean> one = Arrays.asList(false); in testToArray() 222 List<Boolean> three = Arrays.asList(false, false, true); in testToArray() 225 assertTrue(Arrays.equals(array, Booleans.toArray(Booleans.asList(array)))); in testToArray() 235 List<Boolean> list = Booleans.asList(VALUES).subList(0, i); in testToArray_threadSafe() 248 List<Boolean> list = Arrays.asList(false, true, null); in testToArray_withNull() 257 assertTrue(Booleans.asList(EMPTY).isEmpty()); in testAsListIsEmpty() 258 assertFalse(Booleans.asList(ARRAY_FALSE).isEmpty()); in testAsListIsEmpty() 262 assertEquals(0, Booleans.asList(EMPTY).size()); in testAsListSize() [all …]
|
/external/guava/android/guava-tests/test/com/google/common/collect/ |
D | MultisetsTest.java | 81 Multiset<String> toRetain = HashMultiset.create(Arrays.asList("a", "b", "a")); in testRetainOccurrencesEmpty() 88 Iterable<String> toRemove = Arrays.asList("a", "b", "a"); in testRemoveOccurrencesIterableEmpty() 95 Multiset<String> toRemove = HashMultiset.create(Arrays.asList("a", "b", "a")); in testRemoveOccurrencesMultisetEmpty() 101 Multiset<String> ms1 = HashMultiset.create(Arrays.asList("a", "b", "a")); in testUnion() 102 Multiset<String> ms2 = HashMultiset.create(Arrays.asList("a", "b", "b", "c")); in testUnion() 107 Multiset<String> ms1 = HashMultiset.create(Arrays.asList("a", "b", "a")); in testUnionEqualMultisets() 108 Multiset<String> ms2 = HashMultiset.create(Arrays.asList("a", "b", "a")); in testUnionEqualMultisets() 114 Multiset<String> ms2 = HashMultiset.create(Arrays.asList("a", "b", "a")); in testUnionEmptyNonempty() 119 Multiset<String> ms1 = HashMultiset.create(Arrays.asList("a", "b", "a")); in testUnionNonemptyEmpty() 126 Multiset<String> ms2 = HashMultiset.create(Arrays.asList("a", "b", "a")); in testIntersectEmptyNonempty() [all …]
|
D | ImmutableMultisetTest.java | 21 import static java.util.Arrays.asList; 96 return ImmutableMultiset.copyOf(elements).asList(); in suite() 133 return elementSet.asList(); in suite() 154 assertEquals(HashMultiset.create(asList("a")), multiset); in testCreation_oneElement() 159 assertEquals(HashMultiset.create(asList("a", "b")), multiset); in testCreation_twoElements() 164 assertEquals(HashMultiset.create(asList("a", "b", "c")), multiset); in testCreation_threeElements() 169 assertEquals(HashMultiset.create(asList("a", "b", "c", "d")), multiset); in testCreation_fourElements() 174 assertEquals(HashMultiset.create(asList("a", "b", "c", "d", "e")), multiset); in testCreation_fiveElements() 179 assertEquals(HashMultiset.create(asList("a", "b", "c", "d", "e", "f")), multiset); in testCreation_sixElements() 184 assertEquals(HashMultiset.create(asList("a", "b", "c", "d", "e", "f", "g")), multiset); in testCreation_sevenElements() [all …]
|
D | ImmutableSortedMultisetTest.java | 19 import static java.util.Arrays.asList; 78 return ImmutableSortedMultiset.copyOf(elements).asList(); in suite() 105 return builder.build().elementSet().asList(); in suite() 131 assertEquals(HashMultiset.create(asList("a")), multiset); in testCreation_oneElement() 136 assertEquals(HashMultiset.create(asList("a", "b")), multiset); in testCreation_twoElements() 141 assertEquals(HashMultiset.create(asList("a", "b", "c")), multiset); in testCreation_threeElements() 146 assertEquals(HashMultiset.create(asList("a", "b", "c", "d")), multiset); in testCreation_fourElements() 151 assertEquals(HashMultiset.create(asList("a", "b", "c", "d", "e")), multiset); in testCreation_fiveElements() 156 assertEquals(HashMultiset.create(asList("a", "b", "c", "d", "e", "f")), multiset); in testCreation_sixElements() 161 assertEquals(HashMultiset.create(asList("a", "b", "c", "d", "e", "f", "g")), multiset); in testCreation_sevenElements() [all …]
|
D | LinkedHashMultimapTest.java | 25 import static java.util.Arrays.asList; 117 multimap.putAll("foo", Arrays.asList(-1, 2, 4)); in testToString() 118 multimap.putAll("bar", Arrays.asList(2, 3)); in testToString() 192 assertThat(multimap.replaceValues("foo", asList(6, 7))).containsExactly(5, 3).inOrder(); in testOrderingUpdates() 283 newLinkedHashSet(asList(2, 3, 4, 7, 8)), in testGetIteration() 290 multimap.putAll("foo", asList(2, 3, 4)); in testGetIteration() 291 multimap.putAll("bar", asList(5, 6)); in testGetIteration() 292 multimap.putAll("foo", asList(7, 8)); in testGetIteration() 308 asList( in testEntriesIteration() 322 multimap.putAll("foo", asList(2, 3)); in testEntriesIteration() [all …]
|
D | ComparatorsTest.java | 19 import static java.util.Arrays.asList; 56 assertFalse(Comparators.isInOrder(asList(5, 3, 0, 9), Ordering.natural())); in testIsInOrder() 57 assertFalse(Comparators.isInOrder(asList(0, 5, 3, 9), Ordering.natural())); in testIsInOrder() 58 assertTrue(Comparators.isInOrder(asList(0, 3, 5, 9), Ordering.natural())); in testIsInOrder() 59 assertTrue(Comparators.isInOrder(asList(0, 0, 3, 3), Ordering.natural())); in testIsInOrder() 60 assertTrue(Comparators.isInOrder(asList(0, 3), Ordering.natural())); in testIsInOrder() 66 assertFalse(Comparators.isInStrictOrder(asList(5, 3, 0, 9), Ordering.natural())); in testIsInStrictOrder() 67 assertFalse(Comparators.isInStrictOrder(asList(0, 5, 3, 9), Ordering.natural())); in testIsInStrictOrder() 68 assertTrue(Comparators.isInStrictOrder(asList(0, 3, 5, 9), Ordering.natural())); in testIsInStrictOrder() 69 assertFalse(Comparators.isInStrictOrder(asList(0, 0, 3, 3), Ordering.natural())); in testIsInStrictOrder() [all …]
|
D | LinkedListMultimapTest.java | 26 import static java.util.Arrays.asList; 122 assertTrue(multimap.replaceValues("foo", Arrays.asList(2, 4)) instanceof RandomAccess); in testReplaceValuesRandomAccess() 123 assertTrue(multimap.replaceValues("bar", Arrays.asList(2, 4)) instanceof RandomAccess); in testReplaceValuesRandomAccess() 212 map.replaceValues("bar", asList(1, 2)); in testLinkedReplaceValues() 224 assertEquals(asList(1, 2), foos); in testLinkedClear() 298 entry.setValue(Arrays.<Integer>asList()); in testLinkedAsMapEntries() 358 multimap.putAll("foo", asList(2, 3)); in testEntriesIteration() 359 multimap.putAll("bar", asList(4, 5)); in testEntriesIteration() 384 multimap.putAll("foo", asList(2, 3)); in testKeysIteration() 385 multimap.putAll("bar", asList(4, 5)); in testKeysIteration() [all …]
|
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/runtime/ |
D | CommandLineSupportTest.java | 52 assertEquals("", CommandLineSupport.quote(Arrays.<String> asList())); in testQuoteList1() 57 assertEquals("a", CommandLineSupport.quote(Arrays.asList("a"))); in testQuoteList2() 63 CommandLineSupport.quote(Arrays.asList("a", "b", "c"))); in testQuoteList3() 69 CommandLineSupport.quote(Arrays.asList("a", "b b", "c"))); in testQuoteList4() 74 assertEquals(Arrays.asList(), CommandLineSupport.split(null)); in testSplit1() 79 assertEquals(Arrays.asList(), CommandLineSupport.split("")); in testSplit2() 84 assertEquals(Arrays.asList("abc"), CommandLineSupport.split("abc")); in testSplit3() 89 assertEquals(Arrays.asList("aa", "bbbb", "cccccc"), in testSplit4() 95 assertEquals(Arrays.asList("a a", "b b "), in testSplit5() 101 assertEquals(Arrays.asList("a\"c"), CommandLineSupport.split("a\\\"c")); in testSplit6() [all …]
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | MultisetsTest.java | 83 Multiset<String> toRetain = HashMultiset.create(Arrays.asList("a", "b", "a")); in testRetainOccurrencesEmpty() 90 Iterable<String> toRemove = Arrays.asList("a", "b", "a"); in testRemoveOccurrencesIterableEmpty() 97 Multiset<String> toRemove = HashMultiset.create(Arrays.asList("a", "b", "a")); in testRemoveOccurrencesMultisetEmpty() 103 Multiset<String> ms1 = HashMultiset.create(Arrays.asList("a", "b", "a")); in testUnion() 104 Multiset<String> ms2 = HashMultiset.create(Arrays.asList("a", "b", "b", "c")); in testUnion() 109 Multiset<String> ms1 = HashMultiset.create(Arrays.asList("a", "b", "a")); in testUnionEqualMultisets() 110 Multiset<String> ms2 = HashMultiset.create(Arrays.asList("a", "b", "a")); in testUnionEqualMultisets() 116 Multiset<String> ms2 = HashMultiset.create(Arrays.asList("a", "b", "a")); in testUnionEmptyNonempty() 121 Multiset<String> ms1 = HashMultiset.create(Arrays.asList("a", "b", "a")); in testUnionNonemptyEmpty() 128 Multiset<String> ms2 = HashMultiset.create(Arrays.asList("a", "b", "a")); in testIntersectEmptyNonempty() [all …]
|
D | ImmutableSortedMultisetTest.java | 19 import static java.util.Arrays.asList; 84 return ImmutableSortedMultiset.copyOf(elements).asList(); in suite() 111 return builder.build().elementSet().asList(); in suite() 137 assertEquals(HashMultiset.create(asList("a")), multiset); in testCreation_oneElement() 142 assertEquals(HashMultiset.create(asList("a", "b")), multiset); in testCreation_twoElements() 147 assertEquals(HashMultiset.create(asList("a", "b", "c")), multiset); in testCreation_threeElements() 152 assertEquals(HashMultiset.create(asList("a", "b", "c", "d")), multiset); in testCreation_fourElements() 157 assertEquals(HashMultiset.create(asList("a", "b", "c", "d", "e")), multiset); in testCreation_fiveElements() 162 assertEquals(HashMultiset.create(asList("a", "b", "c", "d", "e", "f")), multiset); in testCreation_sixElements() 167 assertEquals(HashMultiset.create(asList("a", "b", "c", "d", "e", "f", "g")), multiset); in testCreation_sevenElements() [all …]
|
D | ComparatorsTest.java | 19 import static java.util.Arrays.asList; 61 assertFalse(Comparators.isInOrder(asList(5, 3, 0, 9), Ordering.natural())); in testIsInOrder() 62 assertFalse(Comparators.isInOrder(asList(0, 5, 3, 9), Ordering.natural())); in testIsInOrder() 63 assertTrue(Comparators.isInOrder(asList(0, 3, 5, 9), Ordering.natural())); in testIsInOrder() 64 assertTrue(Comparators.isInOrder(asList(0, 0, 3, 3), Ordering.natural())); in testIsInOrder() 65 assertTrue(Comparators.isInOrder(asList(0, 3), Ordering.natural())); in testIsInOrder() 71 assertFalse(Comparators.isInStrictOrder(asList(5, 3, 0, 9), Ordering.natural())); in testIsInStrictOrder() 72 assertFalse(Comparators.isInStrictOrder(asList(0, 5, 3, 9), Ordering.natural())); in testIsInStrictOrder() 73 assertTrue(Comparators.isInStrictOrder(asList(0, 3, 5, 9), Ordering.natural())); in testIsInStrictOrder() 74 assertFalse(Comparators.isInStrictOrder(asList(0, 0, 3, 3), Ordering.natural())); in testIsInStrictOrder() [all …]
|
D | LinkedHashMultimapTest.java | 25 import static java.util.Arrays.asList; 118 multimap.putAll("foo", Arrays.asList(-1, 2, 4)); in testToString() 119 multimap.putAll("bar", Arrays.asList(2, 3)); in testToString() 193 assertThat(multimap.replaceValues("foo", asList(6, 7))).containsExactly(5, 3).inOrder(); in testOrderingUpdates() 284 newLinkedHashSet(asList(2, 3, 4, 7, 8)), in testGetIteration() 291 multimap.putAll("foo", asList(2, 3, 4)); in testGetIteration() 292 multimap.putAll("bar", asList(5, 6)); in testGetIteration() 293 multimap.putAll("foo", asList(7, 8)); in testGetIteration() 309 asList( in testEntriesIteration() 323 multimap.putAll("foo", asList(2, 3)); in testEntriesIteration() [all …]
|
D | LinkedListMultimapTest.java | 26 import static java.util.Arrays.asList; 122 assertTrue(multimap.replaceValues("foo", Arrays.asList(2, 4)) instanceof RandomAccess); in testReplaceValuesRandomAccess() 123 assertTrue(multimap.replaceValues("bar", Arrays.asList(2, 4)) instanceof RandomAccess); in testReplaceValuesRandomAccess() 212 map.replaceValues("bar", asList(1, 2)); in testLinkedReplaceValues() 224 assertEquals(asList(1, 2), foos); in testLinkedClear() 298 entry.setValue(Arrays.<Integer>asList()); in testLinkedAsMapEntries() 358 multimap.putAll("foo", asList(2, 3)); in testEntriesIteration() 359 multimap.putAll("bar", asList(4, 5)); in testEntriesIteration() 384 multimap.putAll("foo", asList(2, 3)); in testKeysIteration() 385 multimap.putAll("bar", asList(4, 5)); in testKeysIteration() [all …]
|
D | ImmutableMultisetTest.java | 21 import static java.util.Arrays.asList; 118 return ImmutableMultiset.copyOf(elements).asList(); in suite() 155 return elementSet.asList(); in suite() 176 assertEquals(HashMultiset.create(asList("a")), multiset); in testCreation_oneElement() 181 assertEquals(HashMultiset.create(asList("a", "b")), multiset); in testCreation_twoElements() 186 assertEquals(HashMultiset.create(asList("a", "b", "c")), multiset); in testCreation_threeElements() 191 assertEquals(HashMultiset.create(asList("a", "b", "c", "d")), multiset); in testCreation_fourElements() 196 assertEquals(HashMultiset.create(asList("a", "b", "c", "d", "e")), multiset); in testCreation_fiveElements() 201 assertEquals(HashMultiset.create(asList("a", "b", "c", "d", "e", "f")), multiset); in testCreation_sixElements() 206 assertEquals(HashMultiset.create(asList("a", "b", "c", "d", "e", "f", "g")), multiset); in testCreation_sevenElements() [all …]
|
/external/opencensus-java/api/src/test/java/io/opencensus/metrics/export/ |
D | TimeSeriesTest.java | 54 Arrays.asList(LABEL_VALUE_1, LABEL_VALUE_2), Arrays.asList(POINT_1), TIMESTAMP_1); in testGet_TimeSeries() 71 List<LabelValue> labelValues = Arrays.asList(LABEL_VALUE_1, null); in create_WithNullLabelValue() 86 List<Point> points = Arrays.asList(POINT_1, null); in create_WithNullPoint() 96 Arrays.asList(LABEL_VALUE_1, LABEL_VALUE_2), POINT_1, TIMESTAMP_1); in testGet_WithOnePointTimeSeries() 113 List<LabelValue> labelValues = Arrays.asList(LABEL_VALUE_1, null); in createWithOnePoint_WithNullLabelValue() 131 Arrays.asList(LABEL_VALUE_1, LABEL_VALUE_2), Arrays.asList(POINT_1), TIMESTAMP_1), in testEquals() 133 Arrays.asList(LABEL_VALUE_1, LABEL_VALUE_2), Arrays.asList(POINT_1), TIMESTAMP_1)) in testEquals() 136 Arrays.asList(LABEL_VALUE_1, LABEL_VALUE_2), Arrays.asList(POINT_1), null), in testEquals() 138 Arrays.asList(LABEL_VALUE_1, LABEL_VALUE_2), Arrays.asList(POINT_1), null)) in testEquals() 141 Arrays.asList(LABEL_VALUE_1, LABEL_VALUE_2), Arrays.asList(POINT_1), TIMESTAMP_2)) in testEquals() [all …]
|
D | DistributionTest.java | 82 List<Double> bucketBounds = Arrays.asList(1.0, 2.0, 3.0); in createAndGet_ExplicitBuckets() 110 BucketOptions.explicitOptions(Arrays.asList(1.0, null, 3.0)); in createAndGet_PreventNullExplicitBuckets() 134 List<Double> bucketBounds = Arrays.asList(1.0, 5.0, 2.0); in createBucketOptions_UnorderedBucketBounds() 149 List<Double> bucketBounds = Arrays.asList(1.0, 2.0, 5.0); in createAndGet_Distribution() 152 Arrays.asList( in createAndGet_Distribution() 209 List<Double> bucketBounds = Arrays.asList(1.0, 2.0, 5.0); in createDistribution_NegativeCount() 213 Arrays.asList(Bucket.create(3), Bucket.create(1), Bucket.create(2), Bucket.create(4)); in createDistribution_NegativeCount() 221 List<Double> bucketBounds = Arrays.asList(1.0, 2.0, 5.0); in createDistribution_NegativeSumOfSquaredDeviations() 225 Arrays.asList(Bucket.create(0), Bucket.create(0), Bucket.create(0), Bucket.create(0)); in createDistribution_NegativeSumOfSquaredDeviations() 233 List<Double> bucketBounds = Arrays.asList(1.0, 2.0, 5.0); in createDistribution_ZeroCountAndPositiveMean() [all …]
|
/external/testng/src/test/java/org/testng/remote/strprotocol/ |
D | TestResultMessageTest.java | 20 { null, new Class[] { null }, Arrays.asList() }, in getP() 22 new Class[] { byte[].class }, Arrays.asList("[1]") }, in getP() 24 new Class[] { short[].class }, Arrays.asList("[1]") }, in getP() 26 new Class[] { long[].class }, Arrays.asList("[1]") }, in getP() 28 new Class[] { int[].class }, Arrays.asList("[1,2,3]") }, in getP() 31 Arrays.asList("[true,false]") }, in getP() 33 new Class[] { int[].class }, Arrays.asList("[a,b,c]") }, in getP() 36 Arrays.asList("[1.1,2.2,3.3]") }, in getP() 39 Arrays.asList("[1.1,2.2,3.3]") }, in getP() 42 Arrays.asList("[this is a string,false]") }, in getP() [all …]
|
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/collection/ |
D | IsIterableContainingInRelativeOrderTest.java | 10 import static java.util.Arrays.asList; 25 assertMatches("Single item iterable", containsInRelativeOrder(1), asList(1)); in testMatchingSingleItemIterable() 29 assertMatches("Multiple item iterable", containsInRelativeOrder(1, 2, 3), asList(1, 2, 3)); in testMatchingMultipleItemIterable() 33 … assertMatches("More elements at beginning", containsInRelativeOrder(2, 3, 4), asList(1, 2, 3, 4)); in testMatchesWithMoreElementsThanExpectedAtBeginning() 37 assertMatches("More elements at end", containsInRelativeOrder(1, 2, 3), asList(1, 2, 3, 4)); in testMatchesWithMoreElementsThanExpectedAtEnd() 41 assertMatches("More elements in between", containsInRelativeOrder(1, 3), asList(1, 2, 3)); in testMatchesWithMoreElementsThanExpectedInBetween() 45 assertMatches("Sub section of iterable", containsInRelativeOrder(2, 3), asList(1, 2, 3, 4)); in testMatchesSubSection() 49 … single gaps without a first or last match", containsInRelativeOrder(2, 4), asList(1, 2, 3, 4, 5)); in testMatchesWithSingleGapAndNotFirstOrLast() 53 …"Sub section with many gaps iterable", containsInRelativeOrder(2, 4, 6), asList(1, 2, 3, 4, 5, 6, … in testMatchingSubSectionWithManyGaps() 57 List<WithValue> valueList = asList(make(1), make(2)); in testDoesNotMatchWithFewerElementsThanExpected() [all …]
|
D | IsCollectionWithSizeTest.java | 11 import static java.util.Arrays.asList; 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() 28 Collection<Object> list = asList(null, null); in testMatchesCollectionWhenSizeIsCorrectUsingObjectElementType() 34 Collection<String> list = asList("a", "b"); in testMatchesCollectionWhenSizeIsCorrectUsingStringElementType() 40 Collection<?> list = asList("a", "b"); in testMatchesCollectionWhenSizeIsCorrectUsingWildcardElementType() 46 List<Object> list = asList(null, null); in testMatchesListWhenSizeIsCorrectUsingObjectElementType() 52 List<String> list = asList("a", "b"); in testMatchesListWhenSizeIsCorrectUsingStringElementType() 58 List<?> list = asList("a", "b"); in testMatchesListWhenSizeIsCorrectUsingWildcardElementType() 64 assertMatches("correct size", hasSize(2), asList(null, null)); in testProvidesConvenientShortcutForHasSizeEqualTo() [all …]
|
/external/mockito/src/test/java/org/mockitousage/internal/junit/ |
D | UnusedStubbingsFinderTest.java | 17 import static java.util.Arrays.asList; 37 assertEquals(0, finder.getUnusedStubbings((List) asList(mock1, mock2)).size()); in no_interactions() 38 assertEquals(0, finder.getUnusedStubbingsByLocation((List) asList(mock1, mock2)).size()); in no_interactions() 47 assertEquals(0, finder.getUnusedStubbings((List) asList(mock1, mock2)).size()); in no_stubbings() 48 assertEquals(0, finder.getUnusedStubbingsByLocation((List) asList(mock1, mock2)).size()); in no_stubbings() 58 assertEquals(0, finder.getUnusedStubbings((List) asList(mock1, mock2)).size()); in no_unused_stubbings() 59 assertEquals(0, finder.getUnusedStubbingsByLocation((List) asList(mock1, mock2)).size()); in no_unused_stubbings() 68 assertEquals(1, finder.getUnusedStubbings((List) asList(mock1, mock2)).size()); in unused_stubbings() 69 assertEquals(1, finder.getUnusedStubbingsByLocation((List) asList(mock1, mock2)).size()); in unused_stubbings() 81 UnusedStubbings stubbings = finder.getUnusedStubbings((List) asList(mock1, mock2)); in some_unused_stubbings() [all …]
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/ |
D | SerializingExecutorTest.java | 87 assertEquals(Arrays.asList(1), runs); in serial() 90 assertEquals(Arrays.asList(1), runs); in serial() 92 assertEquals(Arrays.asList(1, 2), runs); in serial() 102 assertEquals(Arrays.asList(1, 2, 3), runs); in parallel() 116 assertEquals(Arrays.asList(1, 2, 3), runs); in reentrant() 134 assertEquals(Arrays.asList(1, 2, 3), runs); in testFirstRunnableThrows() 151 assertEquals(Arrays.asList(1, 2, 3), runs); in lastRunnableThrows() 155 assertEquals(Arrays.asList(1, 2, 3), runs); in lastRunnableThrows() 157 assertEquals(Arrays.asList(1, 2, 3, 4), runs); in lastRunnableThrows() 183 assertEquals(Arrays.asList(2, 3), runs); in firstExecuteThrows() [all …]
|