Home
last modified time | relevance | path

Searched refs:expectedSize (Results 1 – 8 of 8) 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/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/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.java268 int expectedSize) { in sliceResultAsserter() argument
277 assertEquals(actual.size(), expectedSize); in sliceResultAsserter() local
287 int expectedSize,
299 testSliceMulti(data, expectedSize, ms);
304 int expectedSize,
311 .resultAsserter(sliceResultAsserter(data, expectedSize))
313 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()