/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | IterateTest.java | 33 import org.openjdk.testlib.java.util.stream.TestData.Factory; 54 Factory.ofSupplier("ref.empty", () -> Stream.iterate(1, x -> x < 0, x -> x * 2))}, in makeIterateStreamsTestData() 56 Factory.ofSupplier("ref.one", () -> Stream.iterate(1, x -> x < 2, x -> x * 2))}, in makeIterateStreamsTestData() 58 Factory.ofSupplier("ref.ten", () -> Stream.iterate(1, x -> x < 1000, x -> x * 2))}, in makeIterateStreamsTestData() 60 …Factory.ofSupplier("ref.nullCheck", () -> Stream.iterate(10, Objects::nonNull, x -> x > 0 ? x - 1 … in makeIterateStreamsTestData() 62 … Factory.ofIntSupplier("int.empty", () -> IntStream.iterate(1, x -> x < 0, x -> x + 1))}, in makeIterateStreamsTestData() 64 … Factory.ofIntSupplier("int.one", () -> IntStream.iterate(1, x -> x < 2, x -> x + 1))}, in makeIterateStreamsTestData() 66 … Factory.ofIntSupplier("int.ten", () -> IntStream.iterate(1, x -> x <= 10, x -> x + 1))}, in makeIterateStreamsTestData() 68 …Factory.ofIntSupplier("int.divZero", () -> IntStream.iterate(5, x -> x != 0, x -> x - 1/x/2 - 1))}, in makeIterateStreamsTestData() 70 … Factory.ofLongSupplier("long.empty", () -> LongStream.iterate(1L, x -> x < 0, x -> x + 1))}, in makeIterateStreamsTestData() [all …]
|
D | InfiniteStreamWithLimitOpTest.java | 144 return TestData.Factory.ofSupplier( 154 return TestData.Factory.ofIntSupplier( 164 return TestData.Factory.ofLongSupplier( 174 return TestData.Factory.ofDoubleSupplier( 304 return TestData.Factory.ofLongSupplier( 363 TestData.OfRef<Long> generator = TestData.Factory.ofSupplier( 374 TestData.OfInt generator = TestData.Factory.ofIntSupplier( 385 TestData.OfLong generator = TestData.Factory.ofLongSupplier( 396 TestData.OfDouble generator = TestData.Factory.ofDoubleSupplier( 410 TestData.OfRef<Long> iterator = TestData.Factory.ofSupplier( [all …]
|
D | StreamBuilderTest.java | 62 TestData.OfRef<Integer> data = TestData.Factory.ofSupplier("{1}", in testOfNullableWithNonNull() 73 TestData.OfRef<Integer> data = TestData.Factory.ofSupplier("{null})", in testOfNullableWithNull() 84 TestData.OfRef<Integer> data = TestData.Factory.ofSupplier("{1}", in testSingleton() 129 TestData.OfRef<Integer> data = TestData.Factory.ofSupplier(String.format("[0, %d)", size), in testStreamBuilder() 147 TestData.OfInt data = TestData.Factory.ofIntSupplier("{1}", in testIntSingleton() 192 TestData.OfInt data = TestData.Factory.ofIntSupplier(String.format("[0, %d)", size), in testIntStreamBuilder() 210 TestData.OfLong data = TestData.Factory.ofLongSupplier("{1}", in testLongSingleton() 255 TestData.OfLong data = TestData.Factory.ofLongSupplier(String.format("[0, %d)", size), in testLongStreamBuilder() 273 TestData.OfDouble data = TestData.Factory.ofDoubleSupplier("{1}", () -> DoubleStream.of(1)); in testDoubleSingleton() 317 TestData.OfDouble data = TestData.Factory.ofDoubleSupplier(String.format("[0, %d)", size), in testDoubleStreamBuilder()
|
D | RangeTest.java | 52 withData(TestData.Factory.ofSupplier( in testInfiniteRangeFindFirst() 124 return TestData.Factory.ofIntSupplier("int range", () -> IntStream.range(start, end)); in intRangeData() 128 … return TestData.Factory.ofIntSupplier("int rangeClosed", () -> IntStream.rangeClosed(start, end)); in intRangeClosedData() 137 withData(TestData.Factory.ofIntSupplier( in testIntInfiniteRangeLimit() 207 return TestData.Factory.ofLongSupplier("long range", () -> LongStream.range(start, end)); 211 …return TestData.Factory.ofLongSupplier("long rangeClosed", () -> LongStream.rangeClosed(start, end… in longRangeClosedData() 220 withData(TestData.Factory.ofLongSupplier( in testLongInfiniteRangeLimit()
|
D | ForEachOpTest.java | 89 TestData.OfRef<Integer> data = TestData.Factory.ofCollection("[1, 10000]", input); 136 TestData.OfInt data = TestData.Factory.ofIntSupplier("[1, 10000]", 184 TestData.OfLong data = TestData.Factory.ofLongSupplier("[1, 10000]", 232 TestData.OfDouble data = TestData.Factory.ofDoubleSupplier("[1, 10000]",
|
D | ExplodeOpTest.java | 70 … exerciseOps(TestData.Factory.ofArray("stringsArray", stringsArray), s -> s.flatMap(flattenChars)); in testFlatMap() 71 …exerciseOps(TestData.Factory.ofArray("LONG_STRING", new String[] {LONG_STRING}), s -> s.flatMap(fl… in testFlatMap()
|
D | MapMultiOpTest.java | 112 exerciseOps(TestData.Factory.ofArray("stringsArray", in testMapMulti() 114 exerciseOps(TestData.Factory.ofArray("LONG_STRING", in testMapMulti() 132 exerciseOps(TestData.Factory.ofArray("stringsArray", in testDefaultMapMulti() 134 exerciseOps(TestData.Factory.ofArray("LONG_STRING", in testDefaultMapMulti()
|
D | ConcatTest.java | 27 import org.testng.annotations.Factory; 84 @Factory(dataProvider = "cases")
|
D | FlatMapOpTest.java | 78 … exerciseOps(TestData.Factory.ofArray("stringsArray", stringsArray), s -> s.flatMap(flattenChars)); in testFlatMap() 79 …exerciseOps(TestData.Factory.ofArray("LONG_STRING", new String[] {LONG_STRING}), s -> s.flatMap(fl… in testFlatMap()
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | StreamTestDataProvider.java | 170 return new Object[] { description, TestData.Factory.ofArray(description, data)}; in arrayDataDescr() 174 return new Object[] { description, TestData.Factory.ofSupplier(description, supplier)}; in streamDataDescr() 178 return new Object[] { description, TestData.Factory.ofCollection(description, data)}; in collectionDataDescr() 182 return new Object[] { description, TestData.Factory.ofSpinedBuffer(description, data)}; in sbDataDescr()
|
D | LongStreamTestDataProvider.java | 87 TestData.Factory.ofArray("array:" + name, longs)}); in list.add() 94 TestData.Factory.ofSpinedBuffer("SpinedList:" + name, isl)}); in list.add() 140 return new Object[] { description, TestData.Factory.ofLongSupplier(description, s) }; in streamDataDescr()
|
D | IntStreamTestDataProvider.java | 87 name, TestData.Factory.ofArray("array:" + name, ints)}); in list.add() 94 TestData.Factory.ofSpinedBuffer("SpinedList:" + name, isl)}); in list.add() 140 return new Object[] { description, TestData.Factory.ofIntSupplier(description, s) }; in streamDataDescr()
|
D | DoubleStreamTestDataProvider.java | 87 TestData.Factory.ofArray("array:" + name, doubles)}); in list.add() 94 TestData.Factory.ofSpinedBuffer("SpinedList:" + name, isl)}); in list.add()
|
D | OpTestCase.java | 187 …TestData.OfRef<T> data1 = TestData.Factory.ofCollection("Collection of type " + data.getClass().ge… in exerciseOps() 193 …TestData.OfRef<T> data1 = TestData.Factory.ofCollection("Collection of type " + data.getClass().ge… in exerciseOps() 200 return withData(TestData.Factory.ofArray("int array", data)).stream(m).exercise(); in exerciseOps() 204 TestData.OfInt data1 = TestData.Factory.ofArray("int array", data); in exerciseOps() 597 … = TestData.Factory.ofCollection("Collection of type " + data.getClass().getName(), data); in exerciseTerminalOps()
|
/libcore/ojluni/src/main/java/java/lang/reflect/ |
D | WeakCache.java | 122 Factory factory = null; in get() 138 factory = new Factory(key, parameter, subKey, valuesMap); in get() 198 private final class Factory implements Supplier<V> { class in WeakCache 205 Factory(K key, P parameter, Object subKey, in Factory() method in WeakCache.Factory
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | StreamTestDataProvider.java | 176 return new Object[] { description, TestData.Factory.ofArray(description, data)}; in arrayDataDescr() 180 return new Object[] { description, TestData.Factory.ofSupplier(description, supplier)}; in streamDataDescr() 184 return new Object[] { description, TestData.Factory.ofCollection(description, data)}; in collectionDataDescr() 188 return new Object[] { description, TestData.Factory.ofSpinedBuffer(description, data)}; in sbDataDescr()
|
D | IntStreamTestDataProvider.java | 91 name, TestData.Factory.ofArray("array:" + name, ints)}); in list.add() 98 TestData.Factory.ofSpinedBuffer("SpinedList:" + name, isl)}); in list.add() 144 return new Object[] { description, TestData.Factory.ofIntSupplier(description, s) }; in streamDataDescr()
|
D | LongStreamTestDataProvider.java | 91 TestData.Factory.ofArray("array:" + name, longs)}); in list.add() 98 TestData.Factory.ofSpinedBuffer("SpinedList:" + name, isl)}); in list.add() 144 return new Object[] { description, TestData.Factory.ofLongSupplier(description, s) }; in streamDataDescr()
|
D | DoubleStreamTestDataProvider.java | 92 TestData.Factory.ofArray("array:" + name, doubles)}); in list.add() 99 TestData.Factory.ofSpinedBuffer("SpinedList:" + name, isl)}); in list.add()
|
D | OpTestCase.java | 188 …TestData.OfRef<T> data1 = TestData.Factory.ofCollection("Collection of type " + data.getClass().ge… in exerciseOps() 194 …TestData.OfRef<T> data1 = TestData.Factory.ofCollection("Collection of type " + data.getClass().ge… in exerciseOps() 201 return withData(TestData.Factory.ofArray("int array", data)).stream(m).exercise(); in exerciseOps() 205 TestData.OfInt data1 = TestData.Factory.ofArray("int array", data); in exerciseOps() 598 … = TestData.Factory.ofCollection("Collection of type " + data.getClass().getName(), data); in exerciseTerminalOps()
|
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/ |
D | FlagOpTest.java | 110 …TestData<Integer, Stream<Integer>> data = TestData.Factory.ofArray("Array", countTo(10).toArray(ne… in testFlagsClearAllSet() 149 …TestData<Integer, Stream<Integer>> data = TestData.Factory.ofArray("Array", countTo(10).toArray(ne… in testFlagsSetAllClear() 183 …TestData<Integer, Stream<Integer>> data = TestData.Factory.ofArray("Array", countTo(10).toArray(ne… in testFlagsSetSequence() 219 …TestData<Integer, Stream<Integer>> data = TestData.Factory.ofArray("Array", countTo(10).toArray(ne… in testFlagsClearSequence() 245 …TestData<Integer, Stream<Integer>> data = TestData.Factory.ofArray("Array", countTo(10).toArray(ne… in testFlagsSizedOrderedParallelCollect()
|
D | IntNodeTest.java | 153 TestData.OfInt data = TestData.Factory.ofNode("Node", n); in testStreams()
|
/libcore/ojluni/src/test/java/util/Scanner/ |
D | ScannerStreamTest.java | 101 withData(TestData.Factory.ofSupplier(description, ss)) in tokensTest() 144 withData(TestData.Factory.ofSupplier("findAllFileTest", ss)) in findAllFileTest() 201 withData(TestData.Factory.ofSupplier("findAllZeroTest", ss)) in findAllZeroTest()
|
/libcore/ojluni/src/test/java/lang/Boolean/ |
D | Factory.java | 34 public class Factory { class
|
/libcore/ojluni/src/test/java/util/regex/ |
D | PatternStreamTest.java | 154 withData(TestData.Factory.ofSupplier(description, ss)) in testPatternSplitAsStream() 196 withData(TestData.Factory.ofSupplier(description, ss)) in testMatchResults()
|