Home
last modified time | relevance | path

Searched refs:expectedSize (Results 1 – 10 of 10) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/
DSpliteratorTester.java234 public static <T> void runSizedTests(Spliterator<T> spliterator, int expectedSize) { in runSizedTests() argument
236 assertEquals(expectedSize, spliterator.estimateSize()); in runSizedTests()
237 assertEquals(expectedSize, spliterator.getExactSizeIfKnown()); in runSizedTests()
240 public static <T> void runSizedTests(Iterable<T> spliterable, int expectedSize) { in runSizedTests() argument
241 runSizedTests(spliterable.spliterator(), expectedSize); in runSizedTests() local
249 public static <T> void runSubSizedTests(Spliterator<T> spliterator, int expectedSize) { in runSubSizedTests() argument
251 assertEquals(expectedSize, spliterator.estimateSize()); in runSubSizedTests()
252 assertEquals(expectedSize, spliterator.getExactSizeIfKnown()); in runSubSizedTests()
256 if (expectedSize == 0) { in runSubSizedTests()
258 assertEquals(expectedSize, spliterator.estimateSize()); in runSubSizedTests()
[all …]
/libcore/ojluni/src/test/java/util/BitSet/
DStickySize.java37 static void equalClones(BitSet s, int expectedSize) { in equalClones() argument
38 equal(expectedSize, clone(s).size()); in equalClones()
39 equal(expectedSize, serialClone(s).size()); in equalClones()
40 equal(expectedSize, s.size()); in equalClones()
/libcore/dom/src/test/java/org/w3c/domts/
DDOMTestInnerClass.java61 public void assertSize(String assertID, int expectedSize, NodeList collection) { in assertSize() argument
62 test.assertSize(assertID, expectedSize, collection); in assertSize()
65 public void assertSize(String assertID, int expectedSize, in assertSize() argument
67 test.assertSize(assertID, expectedSize, collection); in assertSize()
70 public void assertSize(String assertID, int expectedSize, in assertSize() argument
72 test.assertSize(assertID, expectedSize, collection); in assertSize()
DDOMTestFramework.java59 int expectedSize, in assertSize() argument
65 int expectedSize, in assertSize() argument
71 int expectedSize, in assertSize() argument
DDOMTestCase.java243 int expectedSize, in assertSize() argument
245 framework.assertSize(this, assertID, expectedSize, collection); in assertSize()
260 int expectedSize, in assertSize() argument
262 framework.assertSize(this, assertID, expectedSize, collection); in assertSize()
277 int expectedSize, in assertSize() argument
279 framework.assertSize(this, assertID, expectedSize, collection); in assertSize()
DJUnitTestCaseAdapter.java226 public void assertSize(DOMTestCase test, String assertID, int expectedSize, NodeList collection) { in assertSize() argument
227 assertEquals(assertID,expectedSize, collection.getLength()); in assertSize()
230 …public void assertSize(DOMTestCase test, String assertID, int expectedSize, NamedNodeMap collectio… in assertSize() argument
231 assertEquals(assertID, expectedSize, collection.getLength()); in assertSize()
234 …public void assertSize(DOMTestCase test, String assertID, int expectedSize, Collection collection)… in assertSize() argument
235 assertEquals(assertID, expectedSize, collection.size()); in assertSize()
/libcore/ojluni/src/test/java/util/Map/
DInPlaceOpsCollisions.java193 int expectedSize = 0; in testComputeIfAbsent() local
206 expectedSize++; in testComputeIfAbsent()
218 expectedSize++; in testComputeIfAbsent()
226 assertEquals(map.size(), expectedSize, in testComputeIfAbsent() local
227 String.format("map expected size m%d != k%d", map.size(), expectedSize)); in testComputeIfAbsent()
355 int expectedSize = 0; in testComputeNull() local
375 expectedSize++; in testComputeNull()
380 assertEquals(map.size(), expectedSize, in testComputeNull() local
381 String.format("map expected size#1 m%d != k%d", map.size(), expectedSize)); in testComputeNull()
430 int expectedSize = 0; in testMergeNull() local
[all …]
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DGroupByOpTest.java102 int expectedSize; field in GroupByOpTest.MapperData
104 MapperData(Function<T, K> m, int expectedSize) { in MapperData() argument
106 this.expectedSize = expectedSize; in MapperData()
147 assertEquals(result.keySet().size(), md.expectedSize); in testOps()
DSliceOpTest.java273 int expectedSize) { in sliceResultAsserter() argument
282 assertEquals(actual.size(), expectedSize); in sliceResultAsserter() local
292 int expectedSize,
304 testSliceMulti(data, expectedSize, ms);
309 int expectedSize,
316 .resultAsserter(sliceResultAsserter(data, expectedSize))
318 assertEquals(sr.size(), expectedSize);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DEnumSetTest.java645 private static void assertSize(int expectedSize, Set<?> set) { in assertSize() argument
646 assertEquals(expectedSize, set.size()); in assertSize()
647 assertEquals(expectedSize == 0, set.isEmpty()); in assertSize()